/* ========================================
   LONEWOLF FITNESS - Sporty Green Theme
   ======================================== */

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2128;
    --bg-elevated: #22272e;

    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;

    --accent-green: #39d353;
    --accent-lime: #a3e635;
    --accent-gradient: linear-gradient(135deg, #39d353 0%, #a3e635 100%);
    --accent-glow: rgba(57, 211, 83, 0.25);

    --amazon-orange: #ff9900;

    --border-color: rgba(240, 246, 252, 0.1);
    --border-hover: rgba(57, 211, 83, 0.4);

    --font-display: 'Oswald', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

*, *::before, *::after {
    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-green);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.3s ease;
}

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

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 2px solid var(--accent-green);
    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-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Geometric Background */
.geo-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-green);
    top: -200px;
    right: -200px;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-lime);
    bottom: 10%;
    left: -100px;
    animation: floatShape 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-green);
    top: 50%;
    right: 20%;
    animation: floatShape 18s ease-in-out infinite 2s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.container {
    max-width: 1280px;
    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(13, 17, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1280px;
    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;
}

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

.logo-text {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 2px;
    color: var(--text-primary);
}

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

.logo-sub {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--accent-green);
    margin-left: -4px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

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

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

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

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

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(57, 211, 83, 0.15);
    border: 1px solid rgba(57, 211, 83, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 80px);
    line-height: 1;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.title-line { display: block; }

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

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

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-amazon {
    background: var(--amazon-orange);
    color: #000;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    width: 100%;
    justify-content: center;
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--accent-green);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

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

.watch-display {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.watch-frame {
    width: 200px;
    height: 240px;
    background: linear-gradient(145deg, #2d333b 0%, #1c2128 100%);
    border-radius: 40px;
    padding: 15px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.watch-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.watch-time {
    font-family: var(--font-display);
    font-size: 48px;
    letter-spacing: 4px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.watch-data {
    display: flex;
    gap: 16px;
}

.data-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.data-icon { font-size: 16px; }

.data-value {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-primary);
}

.data-unit {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Pulse Rings */
.pulse-ring {
    position: absolute;
    width: 280px;
    height: 320px;
    border: 2px solid var(--accent-green);
    border-radius: 50px;
    opacity: 0;
    animation: pulseRing 3s ease-out infinite;
}

.pulse-ring.delay-1 { animation-delay: 1s; }
.pulse-ring.delay-2 { animation-delay: 2s; }

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* ========================================
   SECTIONS
   ======================================== */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(163, 230, 53, 0.15);
    border: 1px solid rgba(163, 230, 53, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-lime);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 56px);
    letter-spacing: 3px;
}

/* ========================================
   CATEGORIES
   ======================================== */
.categories { background: var(--bg-secondary); }

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

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

.category-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

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

.category-card p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}

.category-count {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(57, 211, 83, 0.1);
    border-radius: 50px;
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 600;
}

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

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

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

.product-card.featured {
    border-color: rgba(57, 211, 83, 0.3);
    background: linear-gradient(135deg, rgba(57, 211, 83, 0.05) 0%, transparent 100%);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: rgba(57, 211, 83, 0.15);
    border: 1px solid rgba(57, 211, 83, 0.3);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-green);
}

.product-badge.gold {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.product-badge.green {
    background: rgba(163, 230, 53, 0.15);
    border-color: rgba(163, 230, 53, 0.3);
    color: var(--accent-lime);
}

.product-badge.purple {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    color: #a855f7;
}

.product-image {
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.watch-icon {
    width: 100px;
    height: 120px;
    color: var(--accent-green);
    transition: transform 0.3s;
}

.watch-icon.apple { color: #f0f0f0; }
.watch-icon.garmin { color: #00b4d8; }
.watch-icon.samsung { color: #8b5cf6; }
.watch-icon.xiaomi { color: #ff6b35; }
.watch-icon.garmin-fenix { color: #ffd700; }
.watch-icon.fitbit { color: #00d9a5; }

.product-card:hover .watch-icon {
    transform: scale(1.1);
}

.product-info { text-align: center; }

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

.product-name {
    font-size: 20px;
    font-weight: 600;
    margin: 8px 0 12px;
}

.product-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.stars {
    color: #ffd700;
    font-size: 14px;
}

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

.product-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.product-features span {
    padding: 4px 12px;
    background: var(--bg-elevated);
    border-radius: 50px;
    font-size: 11px;
    color: var(--text-secondary);
}

.product-price { margin-bottom: 20px; }

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

.price-note {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

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

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

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

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

.comparison-table th {
    background: var(--bg-elevated);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}

.comparison-table tbody tr:hover {
    background: rgba(57, 211, 83, 0.03);
}

.comparison-table tbody tr.highlight-row {
    background: rgba(57, 211, 83, 0.05);
}

.model-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.model-name {
    font-weight: 600;
}

.table-price { font-weight: 700; }
.table-price.best-price { color: var(--accent-green); }

.highlight-cell { color: var(--accent-green); font-weight: 600; }

.check { color: var(--accent-green); }
.check.dim { color: var(--text-muted); }

.features-mini {
    font-size: 12px;
    color: var(--text-secondary);
}

.table-rating { color: #ffd700; }

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

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

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

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

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

.guide-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

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

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

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

.guide-link:hover { color: var(--accent-lime); }

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

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

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

.footer-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 12px;
}

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

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.footer-col a:hover { color: var(--accent-green); }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.affiliate-disclosure {
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.affiliate-disclosure p {
    font-size: 12px;
    color: var(--text-secondary);
}

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

/* ========================================
   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-color);
    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(0, 200, 150, 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-secondary);
    line-height: 1.7;
}

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

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

    .hero-stats { justify-content: center; }

    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .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; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }

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

    .footer-content { flex-direction: column; }
    .footer-links { gap: 40px; }

    section { padding: 60px 0; }
}

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

/* Layout containment for better performance */
.product-card,
.category-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,
    .geo-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;
    }
}
