/*
 * Global styles for the 3D Website Builder.
 * This stylesheet defines a modern, responsive layout, pricing cards,
 * forms, and a simple 3D cube preview. It has been tailored to work
 * on shared hosting with no external build steps.
 */

/* Reset browser defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fafafa;
  height: 100%;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

header {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: #fff;
  padding: 2rem 0;
  text-align: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
}

footer {
  background: #f0f0f0;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

/* Buttons */
.button {
  display: inline-block;
  background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
  cursor: pointer;
}

.button:hover {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.pricing-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.plan-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  width: 280px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.plan-card .price {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #2575fc;
}

.plan-card ul {
  list-style: none;
  margin-bottom: 1rem;
}

.plan-card li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.plan-card li::before {
  content: '\2022';
  color: #2575fc;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.plan-card .note {
  margin-top: auto;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
}

.plan-card .note a {
  color: #2575fc;
  text-decoration: none;
}

/* Form styles */
.builder-form {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.form-group label span {
  color: #d9534f;
}

.form-group input,
.form-group textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.generate-button {
  margin-top: 1rem;
  width: 100%;
}

.preview-wrapper {
  margin-top: 2rem;
  text-align: center;
}

.preview-wrapper h3 {
  margin-bottom: 1rem;
}

.rotation-tip {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.export-button {
  margin-top: 1rem;
}

.export-disabled {
  color: #d9534f;
  margin-top: 1rem;
  font-weight: bold;
}

.domain-info {
  margin-top: 2rem;
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 3D cube styles */
#scene {
  width: 320px;
  height: 320px;
  margin: 0 auto;
  perspective: 800px;
  position: relative;
}

#cube {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 1s;
}

.face {
  position: absolute;
  width: 320px;
  height: 320px;
  background: #fff;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.face h1 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: #2575fc;
}

.face p {
  margin-bottom: 0.5rem;
}

.face.front {
  transform: rotateY(0deg) translateZ(160px);
}

.face.right {
  transform: rotateY(90deg) translateZ(160px);
}

.face.back {
  transform: rotateY(180deg) translateZ(160px);
}

@media (min-width: 768px) {
  .plans {
    gap: 2rem;
  }
  .plan-card {
    width: 300px;
  }
  #scene, .face {
    width: 400px;
    height: 400px;
  }
  .face.front { transform: rotateY(0deg) translateZ(200px); }
  .face.right { transform: rotateY(90deg) translateZ(200px); }
  .face.back  { transform: rotateY(180deg) translateZ(200px); }
}