/* ========================================
   LONEWOLF STREAMING - Cinematic Dark Theme
   ======================================== */

:root {
    --bg: #0c0c0c;
    --bg-card: #141414;
    --bg-elevated: #1a1a1a;

    --text: #ffffff;
    --text-dim: #a0a0a0;
    --text-muted: #666;

    --accent: #e50914;
    --accent-light: #ff3d47;
    --accent-gradient: linear-gradient(135deg, #e50914 0%, #b81d24 100%);

    --amazon: #ff9900;

    --border: rgba(255,255,255,0.08);

    --font: 'DM Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;

    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.3s ease;
}
.skip-link:focus { top: 10px; outline: 3px solid var(--accent-light); outline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

/* Film Grain Effect */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Screen reader only - visually hidden but accessible */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: linear-gradient(180deg, rgba(12,12,12,0.95) 0%, transparent 100%);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon { font-size: 28px; }

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.logo-sub {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 3px;
}

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

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

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

/* ========================================
   HERO
   ======================================== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 30%, rgba(229, 9, 20, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 450px;
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

/* Hero TV Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.tv-frame {
    width: 340px;
    height: 220px;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.tv-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1c1c1c 0%, #0a0a0a 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.streaming-icons {
    display: flex;
    gap: 16px;
}

.stream-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.stream-icon.netflix { background: #e50914; animation-delay: 0s; }
.stream-icon.prime { background: #00a8e1; animation-delay: 0.2s; }
.stream-icon.disney { background: #113ccf; animation-delay: 0.4s; }
.stream-icon.youtube { background: #ff0000; animation-delay: 0.6s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.remote {
    position: absolute;
    bottom: -30px;
    right: 20px;
    width: 50px;
    height: 140px;
    background: #2a2a2a;
    border-radius: 25px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: rotate(15deg);
}

.remote-btn {
    width: 30px;
    height: 30px;
    background: #444;
    border-radius: 50%;
}

.remote-dpad {
    width: 35px;
    height: 35px;
    background: #333;
    border-radius: 50%;
    border: 2px solid #444;
}

.remote-btn.small {
    width: 20px;
    height: 20px;
}

/* ========================================
   SECTIONS
   ======================================== */
section { padding: 100px 0; }

.section-title {
    font-family: var(--font-mono);
    font-size: 32px;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: 2px;
}

/* ========================================
   PRODUCTS
   ======================================== */
.products { background: var(--bg); }

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

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.product-card.featured {
    border-color: rgba(229, 9, 20, 0.4);
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.05) 0%, transparent 100%);
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.card-badge.premium {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #000;
}

.card-badge.budget {
    background: #22c55e;
}

.card-visual {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-visual svg {
    width: 80px;
    height: 50px;
}

.card-visual.fire { color: #ff9900; }
.card-visual.chrome { color: #4285f4; }
.card-visual.apple { color: #f5f5f7; }
.card-visual.fire-lite { color: #ff6b35; }
.card-visual.nvidia { color: #76b900; }
.card-visual.xiaomi { color: #ff6700; }

.product-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.brand {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.specs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.specs span {
    padding: 4px 10px;
    background: var(--bg-elevated);
    border-radius: 50px;
    font-size: 11px;
    color: var(--text-dim);
}

.rating {
    font-size: 13px;
    color: #fbbf24;
    margin-bottom: 8px;
}

.price {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.btn-amazon {
    display: block;
    padding: 12px;
    background: var(--amazon);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-amazon:hover {
    background: #ffad33;
}

/* ========================================
   COMPARISON
   ======================================== */
.comparison {
    background: var(--bg-card);
}

.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-elevated);
}

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

th {
    background: var(--bg-card);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

tr:hover { background: rgba(255,255,255,0.02); }

.highlight { color: var(--accent); font-weight: 600; }
.best-price { color: #22c55e; font-weight: 700; }
.stars { color: #fbbf24; }

.tbl-btn {
    padding: 8px 16px;
    background: var(--amazon);
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ========================================
   GUIDES
   ======================================== */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
}

.guide-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.guide-num {
    font-family: var(--font-mono);
    font-size: 48px;
    color: var(--accent);
    opacity: 0.5;
    line-height: 1;
}

.guide-card h3 {
    font-size: 18px;
    margin: 16px 0 12px;
}

.guide-card p {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 16px;
}

.guide-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand .logo-text { font-size: 20px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 8px; }

.footer-links { display: flex; gap: 32px; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); }

.affiliate-notice {
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.2);
    border-radius: 8px;
    padding: 16px;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.copyright { text-align: center; font-size: 13px; color: var(--text-muted); }

/* ========================================
   FAQ SECTION
   ======================================== */
.faq { background: var(--bg-elevated); }

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover { border-color: var(--accent); }

.faq-item[open] { box-shadow: 0 4px 20px rgba(229, 62, 62, 0.15); }

.faq-item summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    margin-left: auto;
    font-size: 24px;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    color: #000;
    flex-shrink: 0;
}

.faq-item p {
    padding: 0 24px 24px 72px;
    color: var(--text-dim);
    line-height: 1.7;
}

.faq-item strong { color: var(--accent); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin: 0 auto 32px; }
    .products-grid, .guides-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding-top: 100px; min-height: auto; }
    .tv-frame { width: 280px; height: 180px; }
    .remote { display: none; }
    .products-grid, .guides-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 24px; text-align: center; }
    section { padding: 60px 0; }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Layout containment for better performance */
.product-card,
.guide-card,
.faq-item {
    contain: layout style;
}

section {
    contain: layout;
}

/* ========================================
   REDUCED MOTION (Accessibility)
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   PRINT STYLESHEET
   ======================================== */
@media print {
    /* Hide non-essential elements */
    .navbar,
    .skip-link,
    .grain,
    .hero-visual,
    .remote,
    .btn-amazon,
    .btn-primary,
    .tbl-btn,
    footer {
        display: none !important;
    }

    /* Reset colors for printing */
    body {
        background: white !important;
        color: black !important;
    }

    .hero,
    section,
    .product-card,
    .guide-card {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    /* Ensure text is readable */
    h1, h2, h3, h4, h5, h6,
    p, span, a, li, td, th {
        color: black !important;
    }

    /* Show URLs for links */
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 12px;
        color: #666;
    }

    /* Page breaks */
    section {
        page-break-inside: avoid;
    }

    .product-card {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* ========================================
   TOUCH TARGET OPTIMIZATION
   ======================================== */
/* Ensure minimum 44x44px touch targets for accessibility */
@media (pointer: coarse) {
    .btn-amazon,
    .btn-primary,
    .btn-outline,
    .btn-small,
    .tbl-btn,
    .table-btn,
    .nav-links a,
    .menu-toggle,
    details summary,
    .faq-item summary {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links a {
        padding: 12px 16px;
    }

    .footer-links a,
    .footer-nav a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Footer Sites Links */
.footer-sites {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 0;
    margin: 16px 0;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    font-size: 14px;
}

.footer-sites span {
    opacity: 0.7;
}

.footer-sites a {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-sites a:hover {
    opacity: 1;
}
