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

:root {
    --color-primary: #f59e0b;
    --color-primary-dark: #d97706;
    --color-secondary: #0ea5e9;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-bg-dark: #111827;
    --color-border: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.site-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-header .tagline {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* Navigation */
.main-nav {
    background-color: var(--color-bg-dark);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    list-style: none;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
main {
    padding: 2rem 0 4rem;
}

/* Sections */
.content-section {
    margin-bottom: 4rem;
    padding-top: 1rem;
}

.intro-section {
    background: linear-gradient(to bottom, var(--color-bg-alt), var(--color-bg));
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 3rem;
}

.intro-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

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

h3 {
    font-size: 1.4rem;
    color: var(--color-text);
    margin: 2rem 0 1rem;
}

h4 {
    font-size: 1.15rem;
    color: var(--color-text);
    margin: 1.5rem 0 0.75rem;
}

p {
    margin-bottom: 1rem;
}

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

li {
    margin-bottom: 0.5rem;
}

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

.spec-card {
    background: var(--color-bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--color-primary);
}

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

.spec-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Type Cards */
.type-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

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

.type-card a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
}

.type-card a:hover {
    text-decoration: underline;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.comparison-table th {
    background: var(--color-bg-dark);
    color: white;
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background: var(--color-bg-alt);
}

.comparison-table tr:hover {
    background: #fef3c7;
}

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

.checklist h4 {
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.checklist ul {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

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

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

.product-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.product-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-dark);
    margin: 0 0 0.5rem;
}

.product-card h4 {
    font-size: 1.25rem;
    margin: 0 0 1rem;
    color: var(--color-text);
}

.product-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.product-specs li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--color-border);
}

.product-specs li:last-child {
    border-bottom: none;
}

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

.cta-button {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.cta-button:hover {
    background: var(--color-primary-dark);
    transform: scale(1.02);
}

/* FAQ */
.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
}

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

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

/* Footer */
.site-footer {
    background: var(--color-bg-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.site-footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

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

    .site-header .tagline {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .main-nav ul {
        gap: 0.25rem 1rem;
    }

    .main-nav a {
        font-size: 0.85rem;
        padding: 0.4rem 0.5rem;
    }

    .comparison-table {
        display: block;
        overflow-x: auto;
    }

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

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

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

    .site-header {
        padding: 2rem 0;
    }

    .site-header h1 {
        font-size: 1.75rem;
    }

    .type-card,
    .product-card {
        padding: 1.5rem;
    }

    .intro-section {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .main-nav,
    .cta-button {
        display: none;
    }

    .site-header {
        background: none;
        color: var(--color-text);
        padding: 1rem 0;
    }

    .product-card,
    .type-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
