/**
 * YESORNOWHEEL.NET - Main Stylesheet
 * Design Tokens, Global CSS Variables, CSS Reset, Header & Footer styling.
 */

:root {
    /* Color Palette - Dark Arcade Cyber (Default) */
    --bg-primary: #0a0d14;
    --bg-secondary: #111726;
    --bg-elevated: #182033;
    --surface: #141c2e;
    --surface-glass: rgba(20, 28, 46, 0.75);
    --surface-glass-border: rgba(255, 255, 255, 0.08);
    --surface-hover: #1e293b;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Semantic Decision Colors */
    --yes-color: #10b981;
    --yes-glow: rgba(16, 185, 129, 0.4);
    --yes-bg-soft: rgba(16, 185, 129, 0.15);
    
    --no-color: #f43f5e;
    --no-glow: rgba(244, 63, 94, 0.4);
    --no-bg-soft: rgba(244, 63, 94, 0.15);
    
    --maybe-color: #f59e0b;
    --maybe-glow: rgba(245, 158, 11, 0.4);
    --maybe-bg-soft: rgba(245, 158, 11, 0.15);
    
    /* Accents & Brand */
    --accent-primary: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --accent-cyan: #06b6d4;
    --accent-gold: #fbbf24;
    
    /* Borders & Outlines */
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --border-active: #6366f1;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.35);
    
    /* Geometry */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    
    /* Layout */
    --header-height: 64px;
    --max-content-width: 1200px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

/* Light Theme Overrides */
[data-theme="light"] {
    --bg-primary: #f4f6fb;
    --bg-secondary: #ffffff;
    --bg-elevated: #e8ecf4;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.85);
    --surface-glass-border: rgba(0, 0, 0, 0.08);
    --surface-hover: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.15);
    --border-active: #4f46e5;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* CSS Reset & Global Baseline */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skip link for WCAG keyboard accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--accent-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 99999;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 16px;
}

/* Accessible focus ring */
:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

/* Utility Helpers */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Header Styling */
.site-header {
    height: var(--header-height);
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.brand-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-normal);
}
.header-brand:hover .brand-icon-wrap {
    transform: rotate(36deg);
}

.brand-yes { color: var(--yes-color); }
.brand-no { color: var(--no-color); }
.brand-wheel { color: var(--text-primary); }
.brand-tld { color: var(--accent-cyan); font-size: 0.95em; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 7px 12px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.nav-action-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: var(--surface-hover);
}

.primary-nav-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--text-primary);
}
.primary-nav-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(6, 182, 212, 0.35));
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Main Container & Hero */
.main-content {
    flex: 1 0 auto;
    width: 100%;
}

.hero-section {
    padding: 24px 16px 12px;
    text-align: center;
}

.hero-container {
    max-width: 720px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #0f172a 30%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
    max-width: 540px;
    margin: 0 auto;
}

/* Shared Result Banner */
.shared-banner {
    max-width: 600px;
    margin: 12px auto;
    padding: 10px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
.shared-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.shared-badge {
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}
.shared-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.result-highlight {
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}
.result-highlight.result-yes { background: var(--yes-bg-soft); color: var(--yes-color); }
.result-highlight.result-no { background: var(--no-bg-soft); color: var(--no-color); }
.result-highlight.result-maybe { background: var(--maybe-bg-soft); color: var(--maybe-color); }

/* Footer Styling */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    margin-top: 48px;
    padding: 48px 16px 24px;
}

.footer-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 6px;
}
.footer-tagline {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}
.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 320px;
    margin-bottom: 16px;
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-link-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-align: left;
    transition: color var(--transition-fast);
}
.footer-links a:hover,
.footer-link-btn:hover {
    color: var(--text-primary);
}

.footer-badge {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-disclaimer {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 32px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.copyright-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--yes-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--yes-color);
    display: inline-block;
}

/* Content Container for SEO & Guides */
.content-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-center-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 36px;
}
.section-kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    margin-bottom: 6px;
}
.section-main-heading {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.section-sub-heading {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* 4-Step Process Cards */
.guide-steps-section {
    padding: 56px 16px;
    border-top: 1px solid var(--border-subtle);
}

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

.step-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    position: relative;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.step-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--accent-primary);
    opacity: 0.5;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* SEO Article & Sidebar Layout */
.seo-content-section {
    padding: 48px 16px 64px;
    border-top: 1px solid var(--border-subtle);
}

.article-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
}

.toc-sticky-card {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
}
.toc-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
}
.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: color var(--transition-fast);
}
.toc-list a:hover {
    color: var(--accent-cyan);
}

.article-body {
    max-width: 760px;
}

.article-header {
    margin-bottom: 32px;
}
.article-main-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.25;
}
.article-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.article-block {
    margin-bottom: 40px;
}
.article-block h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}
.article-block p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 14px;
}
.article-ordered-list,
.article-bullet-list {
    margin: 14px 0 20px 24px;
    color: var(--text-secondary);
}
.article-ordered-list li,
.article-bullet-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}
.article-ordered-list strong,
.article-bullet-list strong {
    color: var(--text-primary);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 18px;
}
.use-case-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}
.use-case-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.use-case-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* FAQ Accordion */
.faq-section {
    margin-top: 48px;
}
.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}
.faq-item[open] {
    border-color: var(--border-strong);
}
.faq-summary {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.faq-summary::-webkit-details-marker {
    display: none;
}
.faq-icon {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}
.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}
.faq-content {
    padding: 0 20px 18px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
