/* ==========================================================================
   TopVapeFlavors — Pillar Page Template CSS
   WP Pages with meta _fl_pillar_page
   Flavor Lab DNA: Playfair Display + DM Sans, cream/berry/espresso
   Prefix: .fl-pillar
   ========================================================================== */

.fl-pillar {
  --fl-cream: #FDF6EC;
  --fl-espresso: #2C1810;
  --fl-berry: #8B2252;
  --fl-berry-light: #C4547A;
  --fl-sweet: #E8A87C;
  --fl-cool: #41B3A3;
  --fl-fruit: #C38D9E;
  --fl-tobacco: #8D6E63;
  --fl-cream-note: #F5E6CC;
  --fl-sour: #D4E157;
  --fl-border: #E8DFD0;
  --fl-surface: #FFFFFF;
  --fl-muted: #9C8E7E;
  --fl-gradient-hero: linear-gradient(135deg, #8B2252 0%, #C4547A 50%, #E8A87C 100%);

  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-family: 'DM Sans', sans-serif;
  color: var(--fl-espresso);
  line-height: 1.7;
}

/* --- Headings --- */
.fl-pillar__section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fl-espresso);
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid transparent;
  border-image: var(--fl-gradient-hero) 1;
}

.fl-pillar__section-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--fl-espresso);
  margin: 1.75rem 0 0.75rem;
}

/* ==========================================================================
   Section 1: Flavor Intro
   ========================================================================== */
.fl-pillar__intro {
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.fl-pillar__intro-text {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.fl-pillar__intro-text:last-child {
  margin-bottom: 0;
}

.fl-pillar__intro-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.fl-pillar__intro-stage {
  background: var(--fl-cream);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: center;
}

.fl-pillar__intro-stage-label {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fl-berry);
  margin-bottom: 0.3rem;
}

.fl-pillar__intro-stage-text {
  font-size: 0.88rem;
  color: var(--fl-espresso);
  line-height: 1.55;
}

/* ==========================================================================
   Section 2: Cross-Brand Rating Table
   ========================================================================== */
.fl-pillar__table-wrap {
  overflow-x: auto;
  margin-bottom: 2.5rem;
  -webkit-overflow-scrolling: touch;
}

.fl-pillar__rating-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--fl-border);
  min-width: 640px;
}

.fl-pillar__rating-table th {
  background: var(--fl-espresso);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1rem;
  text-align: center;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  position: relative;
}

.fl-pillar__rating-table th:first-child {
  text-align: left;
}

.fl-pillar__rating-table th .fl-pillar__sort-icon {
  margin-left: 0.3rem;
  font-size: 0.7rem;
  opacity: 0.6;
}

.fl-pillar__rating-table th:hover .fl-pillar__sort-icon {
  opacity: 1;
}

.fl-pillar__rating-table td {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--fl-border);
  text-align: center;
}

.fl-pillar__rating-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.fl-pillar__rating-table td:first-child a {
  color: var(--fl-espresso);
  text-decoration: none;
}

.fl-pillar__rating-table td:first-child a:hover {
  color: var(--fl-berry);
  text-decoration: underline;
}

.fl-pillar__rating-table tr:nth-child(even) td {
  background: var(--fl-cream);
}

.fl-pillar__rating-table tr:last-child td {
  border-bottom: none;
}

.fl-pillar__score-cell {
  font-weight: 600;
}

.fl-pillar__score-cell--high { color: var(--fl-berry); }
.fl-pillar__score-cell--mid  { color: var(--fl-sweet); }
.fl-pillar__score-cell--low  { color: var(--fl-muted); }

/* ==========================================================================
   Section 3: Best by Style
   ========================================================================== */
.fl-pillar__styles {
  margin-bottom: 2.5rem;
}

.fl-pillar__style-card {
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.fl-pillar__style-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fl-berry);
  margin-bottom: 0.6rem;
}

.fl-pillar__style-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.fl-pillar__style-picks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fl-pillar__style-picks li {
  display: inline-block;
  background: var(--fl-cream);
  border: 1px solid var(--fl-border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.fl-pillar__style-picks li a {
  color: var(--fl-espresso);
  text-decoration: none;
}

.fl-pillar__style-picks li a:hover {
  color: var(--fl-berry);
}

/* ==========================================================================
   Section 4: SVG Flavor Wheel Placeholder
   ========================================================================== */
.fl-pillar__wheel-wrap {
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.fl-pillar__wheel-wrap svg {
  width: 100%;
  max-width: 480px;
  height: auto;
}

.fl-pillar__wheel-caption {
  font-size: 0.85rem;
  color: var(--fl-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

/* ==========================================================================
   Section 5: If You Like This, Try...
   ========================================================================== */
.fl-pillar__try-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.fl-pillar__try-card {
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--fl-espresso);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fl-pillar__try-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(44, 24, 16, 0.08);
}

.fl-pillar__try-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.fl-pillar__try-family {
  font-size: 0.8rem;
  color: var(--fl-muted);
  margin-bottom: 0.4rem;
}

.fl-pillar__try-link {
  font-size: 0.8rem;
  color: var(--fl-berry);
  display: inline-block;
}

/* ==========================================================================
   Section 6: FAQ
   ========================================================================== */
.fl-pillar__faq {
  margin-bottom: 2.5rem;
}

.fl-pillar__faq-item {
  border: 1px solid var(--fl-border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--fl-surface);
}

.fl-pillar__faq-item summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--fl-espresso);
  cursor: pointer;
  list-style: none;
}

.fl-pillar__faq-item summary::-webkit-details-marker { display: none; }

.fl-pillar__faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--fl-berry);
  transition: transform 0.25s ease;
}

.fl-pillar__faq-item[open] .fl-pillar__faq-icon {
  transform: rotate(90deg);
}

.fl-pillar__faq-answer {
  padding: 0 1.25rem 1rem 3rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--fl-espresso);
}

/* ==========================================================================
   Section 7: Related Flavors
   ========================================================================== */
.fl-pillar__related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.fl-pillar__related-card {
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--fl-espresso);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fl-pillar__related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(44, 24, 16, 0.08);
}

.fl-pillar__related-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.fl-pillar__related-link {
  font-size: 0.8rem;
  color: var(--fl-berry);
  display: inline-block;
  margin-top: 0.3rem;
}

/* ==========================================================================
   Back navigation
   ========================================================================== */
.fl-pillar__back-nav {
  text-align: center;
  padding: 1.5rem 0 2rem;
}

.fl-pillar__back-nav a {
  color: var(--fl-berry);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.fl-pillar__back-nav a:hover {
  color: var(--fl-berry-light);
  text-decoration: underline;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .fl-pillar__intro-stages {
    grid-template-columns: 1fr;
  }

  .fl-pillar__try-grid,
  .fl-pillar__related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fl-pillar__section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .fl-pillar__try-grid,
  .fl-pillar__related-grid {
    grid-template-columns: 1fr;
  }

  .fl-pillar {
    padding: 0 12px;
  }
}
