/* CSS Variables */
:root {
    --primary-color: #2c5530;
    --primary-dark: #1e3d22;
    --secondary-color: #5d8a66;
    --accent-color: #d4a24c;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fafafa;
    --bg-light: #fff;
    --bg-alt: #f0f4f1;
    --border-color: #e0e5e1;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --max-width: 1100px;
}

/* 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, Cantarell, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.3;
    color: var(--primary-dark);
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
}

h3 {
    font-size: 1.4rem;
    margin: 1.75rem 0 0.75rem;
}

h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

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

li {
    margin-bottom: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.3rem;
    opacity: 0.95;
    margin: 0;
}

/* Navigation */
.main-nav {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
    background: var(--bg-alt);
    text-decoration: none;
    border-bottom-color: var(--primary-color);
}

/* Content Sections */
.content-section {
    background: var(--bg-light);
    margin: 2rem 0;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Info Card */
.info-card {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
}

.info-card h3 {
    margin-top: 0;
}

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

.comparison-item {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-top: 4px solid var(--secondary-color);
}

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

/* Spec Explainer */
.spec-explainer {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.spec-explainer h3 {
    margin-top: 0;
    text-align: center;
}

.spec-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.spec-item {
    text-align: center;
}

.spec-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.spec-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

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

/* Activity Cards */
.activity-card {
    background: var(--bg-alt);
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-color);
}

.activity-card h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

/* Top Picks Grid */
.picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pick-card {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.pick-card:hover {
    box-shadow: var(--shadow-hover);
}

.pick-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pick-card h3 {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.pick-specs {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    margin-top: auto;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Care Tips */
.care-tips {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: var(--radius);
}

.care-tips h3 {
    margin-top: 0;
}

.care-tips h3:not(:first-child) {
    margin-top: 2rem;
}

.care-tips ol {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

.care-tips ol li {
    counter-increment: step;
    padding-left: 2.5rem;
    position: relative;
    margin-bottom: 1rem;
}

.care-tips ol li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Reference Table */
.reference-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.reference-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.reference-table th,
.reference-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

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

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

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

/* FAQ Section */
.faq-item {
    background: var(--bg-alt);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    margin: 1rem 0;
}

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

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

.faq-item p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
}

.affiliate-disclosure {
    font-size: 0.85rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0.5rem auto 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .content-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .main-nav a {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .spec-number {
        font-size: 2rem;
    }

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

    .reference-table {
        font-size: 0.9rem;
    }

    .reference-table th,
    .reference-table td {
        padding: 0.75rem 0.5rem;
    }
}

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

    h1 {
        font-size: 1.9rem;
    }

    .main-nav ul {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav a {
        white-space: nowrap;
    }

    .comparison-grid,
    .spec-breakdown {
        grid-template-columns: 1fr;
    }
}

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

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

    .main-nav {
        display: none;
    }

    .content-section {
        box-shadow: none;
        page-break-inside: avoid;
    }

    .cta-button {
        display: none;
    }
}
