/* ========================================
   LONEWOLF PHONE - Clean Blue Theme
   ======================================== */

:root {
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;

    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;

    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-dark: #1d4ed8;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);

    --amazon: #ff9900;

    --border: #e2e8f0;

    --font: 'Sora', sans-serif;

    --radius: 16px;
    --radius-sm: 8px;

    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
}

* {
    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-sm);
    font-weight: 600;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 10px;
    outline: 3px solid var(--accent-dark);
    outline-offset: 2px;
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* 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;
}

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

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 600px;
    background: linear-gradient(180deg, #dbeafe 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.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: 8px;
    text-decoration: none;
    color: var(--text);
}

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

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

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

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

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 420px;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.btn-ghost {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 260px;
    height: 520px;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 48px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
    border-radius: 40px;
    padding: 40px 20px 20px;
}

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

.app-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    border-radius: 12px;
    opacity: 0.6;
}

.accessories {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    pointer-events: none;
}

.accessory {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.accessory.case {
    top: 0;
    right: 20px;
    animation-delay: 0s;
}

.accessory.charger {
    bottom: 40px;
    left: 10px;
    animation-delay: 0.5s;
}

.accessory.cable {
    bottom: 80px;
    right: 0;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
}

/* ========================================
   CATEGORIES
   ======================================== */
.categories {
    background: white;
}

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

.category-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-decoration: none;
    color: var(--text);
    text-align: center;
    transition: all 0.3s;
}

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

.cat-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cat-count {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

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

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

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

.badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.badge.bestseller {
    background: #fef3c7;
    color: #d97706;
}

.badge.premium {
    background: #ede9fe;
    color: #7c3aed;
}

.badge.value {
    background: #dcfce7;
    color: #16a34a;
}

.product-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

.img-placeholder {
    font-size: 64px;
    opacity: 0.8;
}

.product-info {
    padding: 20px;
}

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

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0;
    line-height: 1.3;
}

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

.rating span {
    color: var(--text-muted);
    font-size: 12px;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

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

.btn-amazon:hover {
    background: #e88a00;
    transform: translateY(-1px);
}

/* ========================================
   COMPARISON
   ======================================== */
.comparison {
    background: white;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

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

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

tr:hover {
    background: var(--bg);
}

.price-cell {
    font-weight: 700;
    color: var(--accent);
}

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

.table-btn:hover {
    background: #e88a00;
}

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

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
    font-size: 20px;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
}

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

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

.copyright {
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

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

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

.faq-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

.faq-item summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
    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: #fff;
    flex-shrink: 0;
}

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

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-subtitle { margin: 0 auto 32px; }
    .hero-cta { justify-content: center; }

    .categories-grid,
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; }

    .hero { padding-top: 100px; min-height: auto; }
    .phone-mockup { width: 200px; height: 400px; }
    .accessories { display: none; }

    .categories-grid,
    .products-grid { grid-template-columns: 1fr; }

    .footer-top { flex-direction: column; gap: 24px; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }

    section { padding: 60px 0; }
}

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

/* Layout containment for better performance */
.product-card,
.category-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,
    .gradient-bg,
    .menu-toggle,
    .btn-amazon,
    .btn-primary,
    .btn-outline,
    footer {
        display: none !important;
    }

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

    .hero,
    section,
    .product-card,
    .category-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;
}
