/* ===== CSS Variables ===== */
:root {
    --color-primary: #2d5a27;
    --color-primary-light: #4a8b3f;
    --color-primary-dark: #1e3d1a;
    --color-secondary: #8b5a2b;
    --color-accent: #e8b339;
    --color-bg: #fafaf8;
    --color-bg-alt: #f0ede6;
    --color-text: #2c2c2c;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-white: #ffffff;
    --color-border: #e0ddd5;
    --color-success: #27ae60;
    --color-warning: #f39c12;
    --color-error: #e74c3c;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: 'Georgia', serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.4);
    color: var(--color-white);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-amazon {
    background: linear-gradient(135deg, #ff9900 0%, #ffad33 100%);
    color: #111;
    font-weight: 700;
}

.btn-amazon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
    color: #111;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo:hover {
    color: var(--color-primary);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-au {
    color: var(--color-secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text);
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-fast);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 50%, #fff8e1 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(45, 90, 39, 0.08) 0%, transparent 70%);
}

.hero-bg::after {
    content: '🌿';
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20rem;
    opacity: 0.15;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--color-primary-dark);
}

.highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== View Toggle & Filters ===== */
.view-toggle-section {
    padding-top: 80px;
}

.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.view-toggle {
    display: flex;
    background: var(--color-white);
    border-radius: var(--radius-full);
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 500;
    color: var(--color-text-light);
    transition: all var(--transition-fast);
}

.view-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
}

.view-btn:hover:not(.active) {
    background: var(--color-bg-alt);
}

.filter-controls {
    display: flex;
    gap: 12px;
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ===== Products Grid ===== */
.products-section {
    padding-bottom: 80px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: var(--color-accent);
    color: #333;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.product-content {
    padding: 24px;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    margin-bottom: 4px;
}

.product-scientific {
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.product-description {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.stars {
    color: var(--color-accent);
    font-size: 1rem;
}

.rating-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.product-actions {
    display: flex;
    gap: 12px;
}

.product-actions .btn {
    flex: 1;
    padding: 12px 16px;
}

/* ===== Products Table ===== */
.products-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
}

.products-table th {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.products-table td {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.products-table tr:hover {
    background: var(--color-bg-alt);
}

.products-table .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.table-product-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-product-emoji {
    font-size: 2rem;
}

.table-product-info h4 {
    color: var(--color-primary-dark);
    margin-bottom: 2px;
}

.table-product-info span {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-text-muted);
}

/* ===== Quiz Section ===== */
.quiz-section {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    padding: 80px 0;
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-xl);
}

.quiz-header {
    text-align: center;
    margin-bottom: 32px;
}

.quiz-header h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.quiz-header p {
    color: var(--color-text-light);
}

.quiz-progress {
    margin-bottom: 32px;
}

.progress-bar {
    height: 8px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
    width: 20%;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.quiz-question {
    margin-bottom: 24px;
}

.quiz-question h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 20px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quiz-option:hover {
    border-color: var(--color-primary-light);
    background: var(--color-bg-alt);
}

.quiz-option.selected {
    border-color: var(--color-primary);
    background: rgba(45, 90, 39, 0.1);
}

.quiz-option input {
    display: none;
}

.quiz-option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.quiz-option.selected .quiz-option-radio {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.quiz-option.selected .quiz-option-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-white);
    border-radius: 50%;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

.quiz-navigation .btn {
    min-width: 120px;
}

.quiz-result {
    text-align: center;
}

.quiz-result h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
}

.quiz-result-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 24px 0;
}

.quiz-result-emoji {
    font-size: 4rem;
    margin-bottom: 16px;
}

.quiz-result-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.quiz-result-scientific {
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.quiz-result-description {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.quiz-result-match {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-success);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-weight: 600;
    margin-bottom: 16px;
}

/* ===== Compare Section ===== */
.compare-section {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

.compare-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.compare-slot {
    position: relative;
    flex: 1;
    max-width: 280px;
    min-width: 200px;
}

.compare-select {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.compare-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.compare-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: var(--color-text-muted);
    color: var(--color-white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.compare-clear:hover {
    background: var(--color-error);
}

.compare-vs {
    font-weight: 700;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.compare-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
}

.compare-table th {
    padding: 24px 20px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    text-align: center;
    min-width: 180px;
}

.compare-table th:first-child {
    background: var(--color-primary-dark);
    text-align: left;
    min-width: 140px;
}

.compare-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.compare-table td:first-child {
    font-weight: 600;
    color: var(--color-primary-dark);
    background: var(--color-bg);
    text-align: left;
}

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

.compare-product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.compare-product-header .emoji {
    font-size: 2.5rem;
}

.compare-product-header .name {
    font-size: 1rem;
}

/* ===== Featured Section ===== */
.featured-section {
    padding: 80px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.featured-card {
    display: flex;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.featured-image {
    width: 140px;
    min-height: 180px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    flex-shrink: 0;
}

.featured-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.featured-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-accent);
    color: #333;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    margin-bottom: 8px;
    align-self: flex-start;
}

.featured-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.featured-description {
    color: var(--color-text-light);
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 16px;
}

/* ===== SEO Section ===== */
.seo-section {
    padding: 80px 0;
    background: var(--color-white);
}

.seo-content {
    max-width: 800px;
    margin: 0 auto;
}

.seo-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary-dark);
    margin-bottom: 24px;
    text-align: center;
}

.seo-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-primary);
    margin: 32px 0 16px;
}

.seo-content p {
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.8;
}

.seo-content strong {
    color: var(--color-primary-dark);
}

.seo-cta {
    margin-top: 32px;
    padding: 24px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1.1rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-brand .logo:hover {
    color: var(--color-white);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    max-width: 280px;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.affiliate-disclosure {
    font-size: 0.8rem !important;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 32px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .view-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .view-toggle {
        justify-content: center;
    }

    .filter-controls {
        flex-direction: column;
    }

    .quiz-container {
        padding: 32px 24px;
    }

    .compare-selector {
        flex-direction: column;
    }

    .compare-slot {
        max-width: 100%;
    }

    .compare-vs {
        display: none;
    }

    .featured-card {
        flex-direction: column;
    }

    .featured-image {
        width: 100%;
        height: 150px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .product-actions {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease forwards;
}

.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(5) { animation-delay: 0.4s; }
.product-card:nth-child(6) { animation-delay: 0.5s; }
