/* Terrarium Guide - Styles */

/* CSS Variables */
:root {
    --color-primary: #2d5a3d;
    --color-primary-dark: #1e3d29;
    --color-primary-light: #4a8c5f;
    --color-secondary: #8fb996;
    --color-accent: #c4a35a;
    --color-bg: #fafaf8;
    --color-bg-alt: #f0efe9;
    --color-text: #333;
    --color-text-light: #666;
    --color-white: #fff;
    --color-border: #e0ddd5;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

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

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--color-white);
    font-weight: 500;
    opacity: 0.9;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

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

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
    color: var(--color-white);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem;
}

.hero h1 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Buttons */
.cta-btn {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    background: #d4b36a;
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.alt-bg {
    background-color: var(--color-bg-alt);
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
}

.highlight-box h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.highlight-box ul {
    list-style: none;
    padding: 0;
}

.highlight-box li {
    padding-left: 1.5rem;
    position: relative;
}

.highlight-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* Comparison Grid (Types) */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.type-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.type-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.type-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.type-card h4 {
    color: var(--color-primary-dark);
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.type-card ul {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* Materials Grid */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.material-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-primary);
}

.material-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.material-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.material-card .tip {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-style: italic;
}

.product-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent);
}

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

/* Starter Kit Callout */
.starter-kit-callout {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 3rem;
}

.starter-kit-callout h3 {
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.starter-kit-callout p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Steps Container */
.steps-container {
    margin-top: 2rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Pro Tips */
.pro-tips {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}

.pro-tips h3 {
    color: var(--color-primary);
}

.pro-tips ul {
    list-style: none;
    padding: 0;
}

.pro-tips li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.pro-tips li::before {
    content: "💡";
    position: absolute;
    left: 0;
}

/* Plant Grid */
.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.plant-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.plant-card h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.plant-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.plant-specs {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    font-size: 0.85rem;
    background: var(--color-bg-alt);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
}

.plant-specs li {
    margin-bottom: 0.25rem;
}

/* Warning Box */
.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
}

.warning-box h3 {
    color: #856404;
    margin-bottom: 0.75rem;
}

.warning-box ul {
    margin-bottom: 0;
    color: #856404;
}

/* Care Grid */
.care-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.care-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.care-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.care-card h4 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.care-card .tip {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

/* Troubleshoot Grid */
.troubleshoot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.problem-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--color-accent);
}

.problem-card h4 {
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
}

.problem-card p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}

.product-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.product-card h4 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.product-card p {
    flex: 1;
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.product-card .cta-btn {
    text-align: center;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
}

/* FAQ */
.faq-container {
    margin-top: 2rem;
}

.faq-item {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Footer */
footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-white);
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

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

.affiliate-disclosure {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.footer-bottom p:last-child {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

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

    .hero p {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary-dark);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

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

    .nav-links li {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

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

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .section {
        padding: 3rem 0;
    }

    .step {
        flex-direction: column;
        gap: 1rem;
    }

    .comparison-grid,
    .materials-grid,
    .plant-grid,
    .care-grid,
    .troubleshoot-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .highlight-box,
    .starter-kit-callout,
    .pro-tips {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .hero {
        background: none;
        color: var(--color-text);
        min-height: auto;
    }

    .hero h1,
    .hero p {
        color: var(--color-text);
    }

    nav,
    .cta-btn,
    footer {
        display: none;
    }

    .section {
        padding: 1rem 0;
    }
}
