/* QuizCraft prototype stylesheet */
:root {
  --primary: #305496;
  --primary-dark: #1F3864;
  --accent: #C00000;
  --accent-soft: #E8B5B5;
  --bg: #FAFBFD;
  --surface: #FFFFFF;
  --text: #1A1F2E;
  --muted: #5A6478;
  --line: #E1E6EE;
  --highlight: #EAF1F8;
  --shadow: 0 4px 18px rgba(31, 56, 100, 0.08);
  --shadow-hover: 0 8px 28px rgba(31, 56, 100, 0.15);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* === HEADER === */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}
.brand .accent { color: var(--accent); }
.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}
.btn-cart {
  background: var(--primary);
  color: white !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}
.btn-cart:hover { background: var(--primary-dark); text-decoration: none; }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 80px 24px 90px;
  text-align: center;
}
.hero h1 {
  font-size: 52px;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}
.hero h1 .accent { color: #FFD166; }
.hero .tagline {
  font-size: 22px;
  margin: 0 0 12px;
  font-weight: 400;
  opacity: 0.95;
}
.hero .subtag {
  font-size: 16px;
  margin: 0 auto 36px;
  max-width: 640px;
  opacity: 0.85;
  font-style: italic;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: #FFD166;
  color: var(--primary-dark);
}
.btn-primary:hover {
  background: #FFC233;
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

/* === TRUST BAR === */
.trust-bar {
  background: var(--highlight);
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  text-align: center;
}
.trust-item {
  font-size: 14px;
  color: var(--muted);
}
.trust-item strong {
  display: block;
  color: var(--primary-dark);
  font-size: 16px;
  margin-bottom: 2px;
}

/* === SECTIONS === */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-narrow {
  max-width: 880px;
}
.section h2 {
  font-size: 36px;
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.section h2.center { text-align: center; }
.section .lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 40px;
  text-align: center;
}

/* === GENRE GRID === */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.genre-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
}
.genre-tile:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.genre-tile .icon {
  font-size: 32px;
  margin-bottom: 10px;
  display: block;
}
.genre-tile .count {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

/* === PRODUCT GRID === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 36px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.product-card a { text-decoration: none; color: inherit; }
.product-thumb {
  background: var(--highlight);
  padding: 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.product-thumb img {
  width: 100%;
  max-width: 230px;
  margin: 0 auto;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  border-radius: 3px;
}
.product-thumb.placeholder {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.product-thumb.placeholder .placeholder-icon {
  font-size: 48px;
  margin-bottom: 8px;
}
.product-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-genre {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--primary-dark);
}
.product-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
  flex: 1;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark);
}
.product-btn {
  background: var(--primary);
  color: white;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.product-btn:hover { background: var(--primary-dark); }

/* === HOW IT WORKS === */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.step {
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--primary-dark);
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* === BUILD-YOUR-OWN TEASER === */
.byo-teaser {
  background: linear-gradient(135deg, #FFE4B5 0%, #FFD166 100%);
  padding: 60px 24px;
  text-align: center;
  margin-top: 40px;
  border-radius: var(--radius);
}
.byo-teaser h2 {
  color: var(--primary-dark);
  margin: 0 0 12px;
  font-size: 30px;
}
.byo-teaser p {
  color: var(--primary-dark);
  font-size: 17px;
  margin: 0 0 18px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.byo-teaser .coming-soon {
  background: var(--primary-dark);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
}

/* === FOOTER === */
.site-footer {
  background: var(--primary-dark);
  color: white;
  padding: 50px 24px 28px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}
.footer-brand .accent { color: #FFD166; }
.footer-tag {
  opacity: 0.7;
  font-size: 14px;
  margin: 0 0 12px;
}
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #FFD166;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-bottom: 8px;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
  opacity: 0.7;
  text-align: center;
}

/* === PRODUCT DETAIL PAGE === */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 30px;
}
.product-detail-image {
  background: var(--highlight);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--line);
}
.product-detail-image img {
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.product-detail-info .product-genre { font-size: 13px; }
.product-detail-info h1 {
  font-size: 36px;
  margin: 4px 0 12px;
  color: var(--primary-dark);
  font-weight: 800;
}
.product-detail-info .price {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 12px 0 20px;
}
.product-detail-info .description {
  font-size: 16px;
  margin: 0 0 24px;
  color: var(--text);
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.feature-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 15px;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--primary);
  font-weight: 800;
  font-size: 16px;
}
.btn-buy-large {
  background: var(--primary);
  color: white;
  padding: 16px 32px;
  font-size: 17px;
  border-radius: 8px;
  font-weight: 700;
  width: 100%;
  text-align: center;
  display: block;
  border: none;
  cursor: pointer;
  margin-bottom: 12px;
}
.btn-buy-large:hover { background: var(--primary-dark); text-decoration: none; }
.delivery-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero .tagline { font-size: 18px; }
  .section { padding: 50px 20px; }
  .section h2 { font-size: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .nav { display: none; }
}

/* === PROTOTYPE BANNER === */
.proto-banner {
  background: var(--accent);
  color: white;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
}
