/* ============================================================================
   HerbTruth Premium Custom Stylesheet
   Version: 1.0.0
   Theme: Herbal Emerald, Soft Gold, and Clean Science
   ============================================================================ */

/* CSS Root Variables for Design System */
:root {
    --primary-forest: #0B241E;   /* Deep Forest Green (Heading & Brand logo) */
    --primary-emerald: #14532D;  /* Rich Emerald Green (Primary actions) */
    --primary-mint: #22C55E;     /* Lively Mint Green */
    --accent-gold: #D97706;      /* Rich Gold (Ayurvedic/Traditional touch) */
    --accent-gold-light: #FEF3C7;/* Very soft gold for highlight badges */
    --bg-light: #F8FAFC;         /* Soft light background */
    --bg-card: #FFFFFF;          /* Pure White for cards */
    --text-dark: #0F172A;        /* Deep Slate for primary text */
    --text-muted: #64748B;       /* Soft Gray for descriptions */
    --border-color: #E2E8F0;     /* Border dividers */
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Evidence Colors */
    --evidence-strong: #059669;  /* Strong Green */
    --evidence-moderate: #0284C7;/* Moderate Blue */
    --evidence-limited: #D97706; /* Limited Orange/Amber */
    --evidence-none: #DC2626;    /* No Efficacy Red */
    --evidence-ongoing: #4B5563; /* Research Ongoing Gray */
}

/* Base Body Configuration */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6, .brand-name, .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

p {
    font-size: 1rem;
}

/* Navbar Custom Styles */
.navbar-custom {
    background-color: rgba(11, 36, 30, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-gold);
    transition: all 0.3s ease;
    padding: 0.8rem 0;
}

.brand-logo {
    font-size: 1.8rem;
    color: var(--primary-mint);
    margin-right: 0.5rem;
    display: inline-block;
    animation: pulseLogo 3s infinite ease-in-out;
}

.brand-name {
    font-size: 1.6rem;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.brand-name span {
    color: var(--accent-gold);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.08);
}

.navbar-custom .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.55rem;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem var(--accent-gold);
}

.navbar-custom .navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Dropdown Custom Styles */
.dropdown-menu-custom {
    background-color: var(--primary-forest);
    border: 1px solid var(--accent-gold);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-top: 10px !important;
}

.dropdown-menu-custom .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.6rem 1.2rem;
}

.dropdown-menu-custom .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.btn-search-nav {
    background: linear-gradient(135deg, var(--accent-gold), #B45309);
    color: #FFFFFF !important;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.btn-search-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

/* Hero Section (Homepage Search) */
.hero-section {
    background: linear-gradient(135deg, rgba(11, 36, 30, 0.35), rgba(20, 83, 45, 0.25)), url('images/hero_new.webp') no-repeat center center/cover;
    color: #0b241e;
    padding: 6rem 0;
    position: relative;
    border-bottom: 5px solid var(--accent-gold);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.search-container {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.search-input-group {
    background-color: #FFFFFF;
    border-radius: 30px;
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.search-input-group i {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-left: 0.8rem;
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.btn-search-hero {
    background: linear-gradient(135deg, var(--primary-emerald), #064E3B);
    color: #FFFFFF;
    border: none;
    border-radius: 30px;
    padding: 0.6rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search-hero:hover {
    background: var(--primary-forest);
    box-shadow: 0 4px 15px rgba(20, 83, 45, 0.4);
}

/* Premium Card Designs */
.card-premium {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(20, 83, 45, 0.2);
}

.card-image-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-premium:hover .card-image-wrapper img {
    transform: scale(1.08);
}

.badge-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-gold);
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.card-body-custom {
    padding: 1.5rem;
}

.card-title-custom {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    margin-bottom: 0.3rem;
}

.card-title-custom a {
    color: var(--primary-forest);
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title-custom a:hover {
    color: var(--primary-emerald);
}

.card-scientific-name {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
}

.card-badge-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge-custom-light {
    background-color: var(--accent-gold-light);
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

/* Evidence Engine Display (Circle Score) */
.evidence-score-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: #F8FAFC;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFFFFF 60%, transparent 61%), 
                conic-gradient(var(--evidence-strong) var(--score-degree), var(--border-color) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-forest);
    box-shadow: var(--shadow-sm);
}

/* Fact Check Badges and Layout */
.fact-check-badge {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-strong { background-color: #D1FAE5; color: #065F46; }
.badge-moderate { background-color: #E0F2FE; color: #075985; }
.badge-limited { background-color: #FEF3C7; color: #92400E; }
.badge-none { background-color: #FEE2E2; color: #991B1B; }
.badge-ongoing { background-color: #F3F4F6; color: #374151; }

/* Fact Check Cards */
.fact-check-card {
    background-color: var(--bg-card);
    border-left: 6px solid;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.fact-check-card:hover {
    transform: translateX(5px);
}

.fact-check-card.strong { border-left-color: var(--evidence-strong); }
.fact-check-card.moderate { border-left-color: var(--evidence-moderate); }
.fact-check-card.limited { border-left-color: var(--evidence-limited); }
.fact-check-card.none { border-left-color: var(--evidence-none); }
.fact-check-card.ongoing { border-left-color: var(--evidence-ongoing); }

.claim-quote {
    font-style: italic;
    color: var(--text-muted);
    border-left: 2px solid var(--border-color);
    padding-left: 1rem;
    margin: 1rem 0;
}

/* Footer Custom styling */
.footer-custom {
    background-color: var(--primary-forest);
    color: #FFFFFF;
    padding: 4rem 0 2rem 0;
    border-top: 5px solid var(--accent-gold);
    margin-top: auto !important;
}

.footer-custom .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-custom p {
    color: rgba(255, 255, 255, 0.85);
}

.brand-name-footer {
    font-size: 2rem;
    color: #FFFFFF;
}

.brand-name-footer span {
    color: var(--accent-gold);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.brand-logo-footer {
    font-size: 2.2rem;
    color: var(--primary-mint);
    margin-right: 0.6rem;
}

.footer-social-icons a {
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.05);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-icons a:hover {
    color: #FFFFFF;
    background-color: var(--accent-gold);
    transform: translateY(-3px);
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
    padding-left: 4px;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: #FFFFFF;
}

.text-danger-custom {
    color: var(--accent-gold);
}

/* Animations */
@keyframes pulseLogo {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(34, 197, 94, 0.2));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.6));
    }
}

/* Redesign UI/UX Helpers */
.search-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.2rem;
}

.search-chip {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.search-chip:hover {
    background-color: var(--accent-gold);
    color: #051A16 !important;
    border-color: var(--accent-gold);
    transform: translateY(-1px);
}

.evidence-trust-bar {
    background-color: #0c2b23;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 2px solid var(--accent-gold);
    padding: 0.9rem 0;
}

.trust-bar-item {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.stat-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--accent-gold);
}

.step-num {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 35px;
    height: 35px;
    background-color: var(--accent-gold);
    color: #051A16;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.step-arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.step-arrow {
    color: var(--accent-gold);
    font-size: 1.8rem;
    opacity: 0.5;
}

.disease-card-img {
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.disease-card-img img {
    height: 70%;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: transform 0.3s ease;
}

.card-premium:hover .disease-card-img img {
    transform: scale(1.1) rotate(2deg);
    opacity: 1;
}

/* Table customizations */
.table-custom {
    border-color: var(--border-color) !important;
}

.table-custom th {
    background-color: var(--bg-light) !important;
    color: var(--primary-forest) !important;
    font-weight: 700;
}

.table-custom td {
    vertical-align: middle;
}

.table-custom tr:hover td {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

/* AdSense Ad placeholder styling */
.adsense-placeholder {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Search warning limits modal/alert */
.search-limit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 26, 22, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.search-limit-content {
    background-color: var(--bg-card);
    border: 2px solid var(--accent-gold);
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

/* Light mode adaptations for custom card classes and overlays */
.bg-card {
    background-color: var(--bg-card) !important;
}

.border-white-10 {
    border-color: var(--border-color) !important;
}

/* Ensure text elements inside Hero banner have contrast on light backgrounds */
.hero-section {
    color: #051a16 !important;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.4);
}
.hero-section .hero-subtitle {
    color: #92400e !important; /* Darker brown/gold */
    font-weight: 700 !important;
}
.hero-section .hero-title {
    color: #051a16 !important;
    font-weight: 800 !important;
}
.hero-section .text-white-50 {
    color: #051a16 !important;
    font-weight: 600 !important;
}
.hero-section .text-white {
    color: #051a16 !important;
    font-weight: 600 !important;
}
.hero-section .border-white-10 {
    border-color: rgba(5, 26, 22, 0.3) !important;
}
.hero-section .search-chip {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(5, 26, 22, 0.15) !important;
    color: #051a16 !important;
    font-weight: 600 !important;
}
.hero-section .search-chip:hover {
    background-color: var(--accent-gold) !important;
    color: #051A16 !important;
    border-color: var(--accent-gold) !important;
}
.hero-section .search-container {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(5, 26, 22, 0.2) !important;
    box-shadow: 0 8px 32px rgba(5, 26, 22, 0.1) !important;
}
.hero-section .border-top {
    border-top: none !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(5, 26, 22, 0.12) !important;
    border-radius: 30px;
    padding: 0.5rem 1.8rem !important;
    display: inline-block;
    max-width: 95%;
    margin: 1.5rem auto 0 auto !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(5, 26, 22, 0.08);
}
.hero-section .border-top span,
.hero-section .border-top div,
.hero-section .border-top span i {
    color: #051a16 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

.plant-hero-banner .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}
.plant-hero-banner .text-white {
    color: #FFFFFF !important;
}
.plant-hero-banner .border-white-10 {
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.plant-hero-banner h1 {
    color: #FFFFFF !important;
}

/* Trust bar background and border tweaks for light mode */
.evidence-trust-bar {
    background-color: #0B241E !important; /* Keep trust bar dark for a premium accent strip */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 2px solid var(--accent-gold);
}
.trust-bar-item {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* पूरे पेज पर स्मूथ स्क्रॉल व्यवहार लागू करना (Smooth Scroll) */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* offset for fixed header */
}

/* सामग्री सूची (TOC Accordion) स्टाइल */
details.toc-card {
    border: 1px solid rgba(25, 135, 84, 0.15);
    background-color: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
details.toc-card summary::-webkit-details-marker {
    display: none; /* डिफ़ॉल्ट तीर छुपाएं */
}
details.toc-card summary {
    outline: none;
    user-select: none;
    cursor: pointer;
    background-color: rgba(25, 135, 84, 0.03);
    transition: background-color 0.2s ease;
}
details.toc-card summary:hover {
    background-color: rgba(25, 135, 84, 0.06);
}
details.toc-card .fa-chevron-down {
    transition: transform 0.3s ease;
}
details.toc-card[open] .fa-chevron-down {
    transform: rotate(180deg); /* खोलने पर तीर को घुमाएं */
}
.toc-link {
    transition: all 0.2s ease;
    border-radius: 8px;
}
.toc-link:hover {
    background-color: #f4fbf7;
    color: #198754 !important;
    padding-left: 12px !important;
}
.toc-bullet {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}
.toc-link:hover .toc-bullet {
    transform: scale(1.3);
}

/* "यह भी पढ़ें" (Read Also) प्रीमियम कार्ड */
.read-also-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid #ffc107 !important;
    background-color: rgba(255, 193, 7, 0.03);
    border-radius: 12px;
}
.read-also-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.1) !important;
}
.read-also-card a:focus, .read-also-card a:hover {
    color: #0f5132 !important;
}

/* Ensure headings scrolled to via anchor/TOC links are not covered by the sticky navbar */
[id] {
    scroll-margin-top: 100px !important;
}



