/* ============================================================
   GRIMOIRE SEO ARCHITECTURE STYLES
   Full herb pages, category pages, FAQ, pairings, schema
   ============================================================ */

/* ---- HERB FULL PAGE ---- */
.herb-full-page {
  padding: 0;
  color: #e8dcc8;
  font-family: 'Lato', 'Georgia', serif;
  max-width: 100%;
}

.herb-page-hero {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.3), rgba(139, 0, 139, 0.15));
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.herb-page-hero-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(212, 175, 55, 0.4);
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.herb-page-hero-info {
  flex: 1;
  min-width: 0;
}

.herb-page-emoji {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.herb-page-name {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 1.6rem;
  color: #d4af37;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.herb-page-latin {
  color: #c8a8e0;
  font-size: 0.95rem;
  margin: 0 0 0.4rem 0;
  font-style: italic;
}

.herb-page-family,
.herb-page-parts {
  font-size: 0.85rem;
  color: #b8a898;
  margin: 0.2rem 0;
}

.herb-page-family strong,
.herb-page-parts strong {
  color: #d4af37;
}

.herb-page-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

/* ---- SECTIONS ---- */
.herb-page-section {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.herb-page-section:last-child {
  border-bottom: none;
}

.herb-page-section-title {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 1.05rem;
  color: #d4af37;
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.03em;
}

.herb-page-text {
  color: #d4c8b8;
  line-height: 1.75;
  font-size: 0.95rem;
  margin: 0;
}

.herb-page-text-sm {
  color: #b8a898;
  font-size: 0.88rem;
  margin: 0 0 0.75rem 0;
  font-style: italic;
}

.herb-page-short-desc {
  color: #e0d4c0;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  font-style: italic;
}

/* ---- BENEFITS LIST ---- */
.herb-page-benefits,
.herb-page-prep {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.herb-page-benefits li {
  padding: 0.5rem 0.75rem;
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid #d4af37;
  border-radius: 0 6px 6px 0;
  color: #e0d4c0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.herb-page-prep li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #d4c8b8;
  font-size: 0.9rem;
  line-height: 1.5;
}

.herb-page-prep li:last-child {
  border-bottom: none;
}

/* ---- SAFETY ---- */
.herb-page-safety {
  background: rgba(255, 100, 50, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 150, 100, 0.15);
}

.herb-page-disclaimer {
  font-size: 0.78rem;
  color: #a09080;
  margin: 0.75rem 0 0 0;
  font-style: italic;
  line-height: 1.5;
}

/* ---- RELATED PRODUCTS ---- */
.herb-related-products {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.herb-related-product-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(75, 0, 130, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.herb-related-product-card:hover {
  background: rgba(75, 0, 130, 0.35);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateX(4px);
}

.herb-related-product-card img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.herb-related-product-card strong {
  display: block;
  color: #d4af37;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.herb-related-product-card p {
  color: #b8a898;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}

/* ---- HERB PAIRINGS ---- */
.herb-pairings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
}

.herb-pairing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem;
  background: rgba(75, 0, 130, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.herb-pairing-card:hover {
  background: rgba(75, 0, 130, 0.3);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.herb-pairing-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}

.herb-pairing-card span {
  font-size: 0.78rem;
  color: #d4c8b8;
  line-height: 1.3;
}

/* ---- CATEGORY LINKS ---- */
.herb-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.herb-category-link {
  padding: 0.5rem 1rem;
  background: rgba(75, 0, 130, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  color: #d4c8b8;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.herb-category-link:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: #d4af37;
  color: #d4af37;
}

/* ---- FAQ ---- */
.herb-faq {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.herb-faq-item {
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  overflow: hidden;
}

.herb-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(75, 0, 130, 0.15);
  color: #e0d4c0;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  border: none;
  transition: background 0.2s ease;
  gap: 0.5rem;
}

.herb-faq-question:hover {
  background: rgba(75, 0, 130, 0.25);
}

.herb-faq-toggle {
  color: #d4af37;
  font-size: 1.2rem;
  flex-shrink: 0;
  font-weight: 400;
}

.herb-faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  padding: 0 1rem;
  background: rgba(0,0,0,0.2);
}

.herb-faq-answer p {
  padding: 0.85rem 0;
  color: #c8b8a8;
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

/* ---- CATEGORY PAGE MODAL ---- */
.category-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: advisorFadeIn 0.3s ease;
}

.category-modal {
  background: linear-gradient(160deg, #1a0a2e 0%, #0d0618 60%, #1a0a2e 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 40px rgba(75, 0, 130, 0.3);
}

.category-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #e8dcc8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.category-modal-close:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
}

.category-modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.category-modal-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.category-modal-title {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 1.8rem;
  color: #d4af37;
  margin: 0 0 0.75rem 0;
}

.category-modal-desc {
  color: #c8b8a8;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

.category-herbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-herb-card {
  display: flex;
  flex-direction: column;
  background: rgba(75, 0, 130, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.category-herb-card:hover {
  background: rgba(75, 0, 130, 0.3);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.category-herb-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.category-herb-info {
  padding: 0.75rem;
}

.category-herb-info h3 {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 0.9rem;
  color: #d4af37;
  margin: 0 0 0.2rem 0;
}

.category-herb-latin {
  color: #a090c0;
  font-size: 0.78rem;
  margin: 0 0 0.4rem 0;
}

.category-herb-desc {
  color: #b8a898;
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0;
}

.category-modal-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.category-explore-btn {
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #6b21a8, #4b0082);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 25px;
  color: #d4af37;
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.category-explore-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #6b21a8);
  border-color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 33, 168, 0.4);
}

/* ---- SCROLLBAR for modals ---- */
.category-modal::-webkit-scrollbar,
.herb-modal-body::-webkit-scrollbar {
  width: 6px;
}
.category-modal::-webkit-scrollbar-track,
.herb-modal-body::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}
.category-modal::-webkit-scrollbar-thumb,
.herb-modal-body::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 3px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .herb-page-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .herb-page-hero-img {
    width: 120px;
    height: 120px;
  }

  .herb-page-categories {
    justify-content: center;
  }

  .herb-pairings-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-herbs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-modal {
    padding: 1.25rem;
  }

  .category-modal-title {
    font-size: 1.4rem;
  }
}
