/* ===== CSS Reset & Variables ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #f59e0b;
    --background: #ffffff;
    --surface: #f8fafc;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 16px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
}

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

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

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

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

.btn-secondary {
    background: white;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--secondary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

.btn-cta {
    background: var(--accent);
    color: var(--text);
    font-weight: 700;
    padding: 14px 28px;
}

.btn-cta:hover {
    background: #d97706;
    color: white;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

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

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

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

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

.nav-links a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--surface) 0%, #e0e7ff 100%);
    padding: 80px 0;
    text-align: center;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Categories ===== */
.categories {
    padding: 80px 0;
}

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

.category-card {
    background: var(--surface);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border);
    color: var(--text);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--text);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

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

/* ===== Featured Articles ===== */
.featured-articles {
    padding: 80px 0;
    background: var(--surface);
}

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

.article-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    position: relative;
}

.article-card:hover {
    transform: translateY(-4px);
}

.article-card.featured {
    grid-column: span 1;
}

.article-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: var(--text);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--text);
}

.article-card h3 a:hover {
    color: var(--primary);
}

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

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== Tools Section ===== */
.tools-section {
    padding: 80px 0;
}

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

.tool-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.tool-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.tool-logo {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    margin-bottom: 0.5rem;
}

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

/* ===== Guides Section ===== */
.guides-section {
    padding: 80px 0;
    background: var(--surface);
}

.guides-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.guide-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s;
    color: var(--text);
}

.guide-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
    color: var(--text);
}

.guide-icon {
    font-size: 2rem;
}

.guide-card h3 {
    margin-bottom: 0.25rem;
}

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

/* ===== Newsletter ===== */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 0.5rem;
}

.newsletter-content > p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
}

.newsletter-form button {
    white-space: nowrap;
}

.newsletter-disclaimer {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 1rem;
}

/* ===== About Section ===== */
.about-section {
    padding: 80px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* ===== Footer ===== */
.footer {
    background: var(--text);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
}

.footer-links h4 {
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.affiliate-disclosure {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* ===== Article Page Styles ===== */
.article-header {
    background: var(--surface);
    padding: 60px 0;
}

.article-header .container {
    max-width: 800px;
}

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

.breadcrumb a {
    color: var(--text-light);
}

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

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-info span {
    display: block;
}

.author-info .name {
    font-weight: 600;
}

.author-info .date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-body {
    padding: 60px 0;
}

.article-body .container {
    max-width: 800px;
}

.article-body h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
}

.article-body h3 {
    font-size: 1.4rem;
    margin: 2rem 0 0.75rem;
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* Product Cards */
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
}

.product-card.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.product-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--text);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-card h3 {
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 1rem;
}

.product-card ul {
    margin-bottom: 1.5rem;
}

.product-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

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

.comparison-table th {
    background: var(--surface);
    font-weight: 600;
}

.comparison-table tr:hover {
    background: var(--surface);
}

/* Pros/Cons Box */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.pros, .cons {
    padding: 1.5rem;
    border-radius: var(--radius);
}

.pros {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.cons {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.pros h4, .cons h4 {
    margin-bottom: 1rem;
}

.pros h4 {
    color: var(--success);
}

.cons h4 {
    color: var(--error);
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros li::before {
    content: "✓ ";
    color: var(--success);
    font-weight: bold;
}

.cons li::before {
    content: "✗ ";
    color: var(--error);
    font-weight: bold;
}

/* Info Box */
.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.info-box h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

/* TL;DR Box - Clean gray style */
.tldr-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--text);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.tldr-box h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
    margin-top: 0;
    margin-bottom: 1rem;
}

.tldr-box p, .tldr-box li {
    margin-bottom: 0.5rem;
}

.tldr-box ul, .tldr-box ol {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

/* Verdict Box - Subtle highlight */
.verdict-box {
    background: linear-gradient(135deg, var(--surface) 0%, #f1f5f9 100%);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.verdict-box h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* Rating Stars */
.rating {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        gap: 0;
    }

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

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

    .nav-toggle {
        display: block;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

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

    .pros-cons {
        grid-template-columns: 1fr;
    }

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

    .product-cta .btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--text);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    z-index: 99;
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
}
