/* ========================================
   BestPickFor — Premium Design System
   ======================================== */

:root {
    --bg-primary: #0f1117;
    --bg-secondary: #161921;
    --bg-card: #1c1f2e;
    --bg-card-hover: #232740;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0b4;
    --text-muted: #5f6580;
    --accent: #4f8cff;
    --accent-hover: #6da0ff;
    --accent-glow: rgba(79, 140, 255, 0.15);
    --green: #34d399;
    --green-bg: rgba(52, 211, 153, 0.1);
    --red: #f87171;
    --red-bg: rgba(248, 113, 113, 0.1);
    --gold: #fbbf24;
    --gold-bg: rgba(251, 191, 36, 0.1);
    --border: #2a2d3e;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Header ---- */
header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ---- Main ---- */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* ---- Comparison Page ---- */
.comparison-page .hero {
    margin-bottom: 3rem;
}

.breadcrumb {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
}

.last-updated {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ---- Product Grid ---- */
.products-grid h2,
.buying-guide h2,
.cta-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
    position: relative;
}

.product-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow);
    transform: translateY(-2px);
}

.product-card.top-pick {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(251, 191, 36, 0.05) 100%);
}

.badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gold);
    color: #0f1117;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.runner-up {
    background: #94a3b8;
}

.badge.budget {
    background: var(--green);
}

.product-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.product-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--green);
    background: var(--green-bg);
    padding: 2px 10px;
    border-radius: 6px;
}

.rating {
    font-size: 0.9rem;
    color: var(--gold);
}

.why {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.pros h4, .cons h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.pros ul, .cons ul {
    list-style: none;
    font-size: 0.9rem;
}

.pros li {
    color: var(--green);
    padding: 2px 0;
}

.pros li::before {
    content: "✓ ";
    font-weight: 600;
}

.cons li {
    color: var(--red);
    padding: 2px 0;
}

.cons li::before {
    content: "✗ ";
    font-weight: 600;
}

/* ---- CTA Button ---- */
.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), #3b6fd4);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover), #4a7fe8);
    box-shadow: 0 4px 20px var(--accent-glow);
    transform: translateY(-1px);
}

.cta-btn.primary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
}

/* ---- Buying Guide ---- */
.buying-guide {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.guide-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.guide-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.guide-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ---- CTA Section ---- */
.cta-section {
    margin-top: 3rem;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--accent-glow) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ---- Homepage ---- */
.hero-home {
    text-align: center;
    padding: 3rem 1rem 2rem;
}

.hero-home h1 {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.hero-home p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.category-block:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-block h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent);
}

.page-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.page-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.35rem 0;
    transition: color 0.15s;
}

.page-links a:hover {
    color: var(--accent);
}

.more {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

/* ---- About Section ---- */
.about-section {
    margin-top: 3rem;
    text-align: center;
}

.about-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.about-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---- Footer ---- */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.disclaimer {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .hero-home h1 {
        font-size: 2rem;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .product-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}
