/* Bonsai Basics - Styles */

/* Variables */
:root {
    --primary: #2d5a27;
    --primary-dark: #1e3d1a;
    --primary-light: #4a8f42;
    --secondary: #8b5a2b;
    --accent: #d4a76a;
    --bg-light: #f8f6f3;
    --bg-alt: #eef2ea;
    --text: #2c3e2c;
    --text-light: #5a6b5a;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

/* Reset & Base */
*, *::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(--text);
    background: var(--white);
}

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

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 24px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin: 32px 0 16px;
}

h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

p {
    margin-bottom: 16px;
}

/* Navigation */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

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

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 48px 24px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 16px;
}

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

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 16px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

/* Sections */
.section {
    padding: 80px 0;
}

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

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Introduction Grid */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.intro-tips {
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.intro-tips h3 {
    margin-top: 0;
    color: var(--primary);
}

.checklist {
    list-style: none;
    margin: 24px 0;
}

.checklist li {
    padding: 8px 0 8px 32px;
    position: relative;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.tip-cta {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #ddd;
    font-style: italic;
}

/* Species Grid */
.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.species-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.species-header {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.species-header.indoor {
    background: #e3f2fd;
    color: #1565c0;
}

.species-header.outdoor {
    background: #e8f5e9;
    color: #2e7d32;
}

.species-header.both {
    background: #fff3e0;
    color: #e65100;
}

.species-card h3 {
    margin: 0 0 16px;
    font-size: 1.25rem;
}

.species-details {
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.species-details p {
    margin-bottom: 4px;
}

/* Care Guide */
.care-topic {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.care-topic h3 {
    margin-top: 0;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--bg-alt);
    padding-bottom: 16px;
}

.care-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 24px 0;
}

.care-do, .care-dont {
    padding: 24px;
    border-radius: var(--radius);
}

.care-do {
    background: #e8f5e9;
}

.care-dont {
    background: #ffebee;
}

.care-do h4 {
    color: #2e7d32;
}

.care-dont h4 {
    color: #c62828;
}

.care-do ul, .care-dont ul {
    list-style: none;
}

.care-do li, .care-dont li {
    padding: 8px 0 8px 24px;
    position: relative;
}

.care-do li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2e7d32;
}

.care-dont li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #c62828;
}

.care-tip {
    background: #fff8e1;
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-top: 24px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--bg-alt);
}

th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

tr:hover {
    background: var(--bg-light);
}

/* Soil Components */
.soil-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.soil-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
}

.soil-item strong {
    color: var(--primary);
}

/* Product Callouts */
.product-callout {
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 32px 0;
}

.product-callout h4 {
    color: var(--primary);
    margin-bottom: 12px;
}

.product-callout.professional {
    border-color: var(--secondary);
    background: linear-gradient(135deg, #fdf6ed 0%, #fff 100%);
}

/* Tools Section */
.tools-tier {
    margin-bottom: 48px;
}

.tools-tier h3 {
    text-align: center;
    color: var(--primary);
}

.tools-tier > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 24px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tool-card h4 {
    color: var(--primary);
}

.tool-use {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bg-alt);
}

.wire-guide {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.wire-guide h3 {
    text-align: left;
    margin-top: 0;
}

.wire-cta {
    margin-top: 16px;
    font-style: italic;
}

/* Styling Section */
.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.style-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.style-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.style-card h4 {
    color: var(--primary);
    margin-bottom: 12px;
}

.style-species {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 12px;
    font-style: italic;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.principle {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius);
    border-top: 4px solid var(--primary);
}

.principle h4 {
    color: var(--primary);
}

.wiring-steps {
    background: var(--white);
    padding: 24px 24px 24px 48px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.wiring-steps li {
    padding: 8px 0;
}

/* Seasonal Care */
.seasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.season-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.season-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid;
}

.season-card.spring h3 {
    border-color: #81c784;
}

.season-card.summer h3 {
    border-color: #ffb74d;
}

.season-card.fall h3 {
    border-color: #e57373;
}

.season-card.winter h3 {
    border-color: #90caf9;
}

.season-card ul {
    list-style: none;
}

.season-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-alt);
}

.season-card li:last-child {
    border-bottom: none;
}

/* Products Section */
.products-category {
    margin-bottom: 48px;
}

.products-category h3 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--primary);
}

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

.product-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.product-card.featured {
    border: 2px solid var(--accent);
}

.product-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card h4 {
    color: var(--text);
    margin-bottom: 12px;
    padding-right: 60px;
}

.product-card.featured h4 {
    padding-right: 0;
}

.product-link {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 500;
    transition: background var(--transition);
}

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

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    text-align: left;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: 16px;
}

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

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
}

.footer-section a:hover {
    color: var(--accent);
}

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

.affiliate-disclosure {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
    }

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

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

    .nav-container {
        position: relative;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .species-grid,
    .tools-grid,
    .styles-grid,
    .seasons-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 48px 0;
    }

    h2 {
        font-size: 1.75rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 12px 8px;
    }
}

/* Print Styles */
@media print {
    .nav-container,
    .cta-button,
    .product-callout,
    .product-link,
    .footer {
        display: none;
    }

    .section {
        padding: 24px 0;
        page-break-inside: avoid;
    }
}
