/* ============================================================
   AA Design Enhancements 1.3.0 — Homepage Sections
   Research-backed sections: quiz banner, education, discovery,
   reviews carousel, bestsellers carousel with quick-add.
   Palette inherits from aa-enhance.css variables.
   ============================================================ */

/* ---------- Shared ---------- */
.aade-section-eyebrow {
  display: inline-block;
  font-family: var(--aa-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aa-gold-deep);
  margin-bottom: 0.6rem;
}

/* ---------- 1. Quiz Banner ---------- */
.aade-quiz-banner {
  background: linear-gradient(120deg, #221a12 0%, #2e2318 55%, #1d1712 100%);
  border-radius: var(--aa-radius);
  margin: 2.5rem auto;
  max-width: 1200px;
  overflow: hidden;
  position: relative;
}
.aade-quiz-banner-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 3rem 3.5rem;
  position: relative;
  z-index: 1;
}
.aade-quiz-banner-content { flex: 1 1 60%; }
.aade-quiz-banner-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aa-gold);
  margin-bottom: 0.8rem;
}
.aade-quiz-banner-title {
  font-family: var(--aa-serif);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: #fdf8f1;
  margin: 0 0 0.8rem;
  line-height: 1.15;
}
.aade-quiz-banner-subtitle {
  color: rgba(253, 248, 241, 0.78);
  font-size: 1.02rem;
  max-width: 34rem;
  margin: 0 0 1.6rem;
}
.aade-quiz-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--aa-gold);
  color: #1d1712;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.aade-quiz-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 168, 76, 0.35);
  color: #1d1712;
}
.aade-quiz-banner-note {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: rgba(253, 248, 241, 0.55);
}
.aade-quiz-banner-visual {
  flex: 0 0 220px;
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aade-quiz-orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.4);
}
.aade-quiz-orb-1 { width: 200px; height: 200px; animation: aade-spin 24s linear infinite; }
.aade-quiz-orb-2 { width: 150px; height: 150px; animation: aade-spin 18s linear infinite reverse; }
.aade-quiz-orb-3 { width: 100px; height: 100px; background: radial-gradient(circle, rgba(201,168,76,0.25), transparent 70%); border: none; }
.aade-quiz-icon {
  font-size: 3rem;
  color: var(--aa-gold);
  position: relative;
  z-index: 1;
}
@keyframes aade-spin { to { transform: rotate(360deg); } }

/* ---------- 2. Education Section ---------- */
.aade-education {
  background: var(--aa-ivory);
  padding: 4rem 1.5rem;
}
.aade-education-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.aade-education-title {
  font-family: var(--aa-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--aa-espresso);
  margin: 0 0 0.6rem;
}
.aade-education-lead {
  color: var(--aa-espresso-soft);
  font-size: 1.02rem;
  margin: 0 0 2.2rem;
}
.aade-education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
}
.aade-education-card {
  background: #fff;
  border: 1px solid var(--aa-hairline);
  border-radius: var(--aa-radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--aa-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.aade-education-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--aa-shadow-lift);
}
.aade-education-icon {
  display: inline-block;
  color: var(--aa-gold-deep);
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}
.aade-education-card h3 {
  font-family: var(--aa-serif);
  font-size: 1.25rem;
  color: var(--aa-espresso);
  margin: 0 0 0.5rem;
}
.aade-education-card p {
  color: var(--aa-espresso-soft);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
}
.aade-education-link {
  color: var(--aa-gold-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--aa-gold);
  padding-bottom: 2px;
}
.aade-education-link:hover { color: var(--aa-espresso); }

/* ---------- 3. Discovery Sets ---------- */
.aade-discovery {
  background: linear-gradient(135deg, #f7f0e4 0%, #fdf8f1 100%);
  padding: 4rem 1.5rem;
}
.aade-discovery-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: center;
}
.aade-discovery-content { flex: 1 1 40%; }
.aade-discovery-title {
  font-family: var(--aa-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--aa-espresso);
  margin: 0 0 0.7rem;
}
.aade-discovery-subtitle {
  color: var(--aa-espresso-soft);
  margin: 0 0 1.6rem;
  font-size: 1rem;
  line-height: 1.6;
}
.aade-btn-gold {
  display: inline-block;
  background: var(--aa-gold);
  color: #1d1712;
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.aade-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 168, 76, 0.35);
  color: #1d1712;
}
.aade-discovery-products {
  flex: 1 1 60%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.aade-discovery-card {
  background: #fff;
  border-radius: var(--aa-radius);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--aa-hairline);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}
.aade-discovery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--aa-shadow-lift);
}
.aade-discovery-card img { width: 100%; height: auto; display: block; }
.aade-discovery-card-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--aa-espresso);
  padding: 0.7rem 0.8rem 0.2rem;
  line-height: 1.35;
}
.aade-discovery-card-price {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aa-gold-deep);
  padding: 0 0.8rem 0.8rem;
}

/* ---------- 4. Reviews Carousel ---------- */
.aade-reviews {
  background: #1d1712;
  padding: 4rem 1.5rem;
  overflow: hidden;
}
.aade-reviews-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.aade-reviews .aade-section-eyebrow { color: var(--aa-gold); }
.aade-reviews-title {
  font-family: var(--aa-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: #fdf8f1;
  margin: 0 0 0.5rem;
}
.aade-reviews-subtitle {
  color: rgba(253, 248, 241, 0.65);
  margin: 0 0 2.2rem;
}
.aade-reviews-track {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.aade-review-card {
  flex: 0 0 min(340px, 85vw);
  scroll-snap-align: start;
  background: rgba(253, 248, 241, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--aa-radius);
  padding: 1.8rem 1.6rem;
  margin: 0;
  text-align: left;
}
.aade-review-stars {
  color: var(--aa-gold);
  font-size: 1rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}
.aade-review-text {
  color: rgba(253, 248, 241, 0.88);
  font-size: 0.95rem;
  line-height: 1.65;
  font-style: italic;
  margin: 0 0 1rem;
}
.aade-review-card footer cite {
  color: #fdf8f1;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
}
.aade-review-product {
  display: block;
  color: rgba(253, 248, 241, 0.5);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
.aade-reviews-empty {
  color: rgba(253, 248, 241, 0.6);
  font-style: italic;
}

/* ---------- 5. Bestsellers Carousel ---------- */
.aade-bestsellers {
  background: var(--aa-ivory);
  padding: 4rem 1.5rem;
  overflow: hidden;
}
.aade-bestsellers-inner { max-width: 1200px; margin: 0 auto; }
.aade-bestsellers-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 1.5rem;
}
.aade-bestsellers-title {
  font-family: var(--aa-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--aa-espresso);
  margin: 0 0 0.4rem;
}
.aade-bestsellers-subtitle {
  color: var(--aa-espresso-soft);
  margin: 0;
}
.aade-bestsellers-link {
  color: var(--aa-gold-deep);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--aa-gold);
  padding-bottom: 2px;
}
.aade-bestsellers-track {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.aade-product-card {
  flex: 0 0 min(260px, 70vw);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--aa-hairline);
  border-radius: var(--aa-radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.aade-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--aa-shadow-lift);
}
.aade-product-card-image { display: block; }
.aade-product-card-image img { width: 100%; height: auto; display: block; }
.aade-product-card-body { padding: 1rem 1.1rem 1.2rem; }
.aade-product-card-name {
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0 0 0.4rem;
  line-height: 1.4;
}
.aade-product-card-name a { color: var(--aa-espresso); text-decoration: none; }
.aade-product-card-name a:hover { color: var(--aa-gold-deep); }
.aade-product-card-price {
  font-weight: 600;
  color: var(--aa-gold-deep);
  margin-bottom: 0.8rem;
}
.aade-quick-add {
  width: 100%;
  background: var(--aa-espresso);
  color: #fdf8f1;
  border: none;
  border-radius: 999px;
  padding: 0.7rem;
  font-family: var(--aa-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.aade-quick-add:hover { background: var(--aa-gold-deep); }
.aade-quick-add:disabled { opacity: 0.6; cursor: wait; }
.aade-quick-add.aade-added { background: #2d6a4f; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .aade-quiz-banner-inner { flex-direction: column; padding: 2.2rem 1.8rem; text-align: center; }
  .aade-quiz-banner-visual { display: none; }
  .aade-education-grid { grid-template-columns: 1fr; }
  .aade-discovery-inner { flex-direction: column; }
  .aade-discovery-products { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .aade-bestsellers-head { flex-direction: column; align-items: flex-start; }
}
