/* Shared marketing CSS — used by index.html, 3 landing pages, docs.html.
   Page-specific CSS stays in each template's <style> block. */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a28;
    --bg-card-hover: #222236;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-glow: rgba(99,102,241,0.15);
    --green: #22c55e;
    --green-glow: rgba(34,197,94,0.15);
    --orange: #f59e0b;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* === SKIP LINK (a11y) === */
.skip-link {
    position: absolute;
    top: -100px;
    left: 8px;
    z-index: 10000;
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-hover); background: rgba(255,255,255,0.03); }
.btn-google { background: white; color: #333; font-weight: 500; }
.btn-google:hover { background: #f5f5f5; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* === FOCUS RINGS (Finding 1) === */
.btn:focus-visible,
.nav-link:focus-visible,
.lang-dropdown-btn:focus-visible,
.lang-option:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}
/* form inputs keep their own :focus border-color rule (page-specific) */

/* === NAV === */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--accent); }  /* Finding 30 — used by Task 20 */

/* === LANG DROPDOWN === */
.lang-dropdown { position: relative; }
.lang-dropdown-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.lang-dropdown-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #fff; }
.lang-dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 6px);
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    min-width: 160px;
    overflow: hidden;
    z-index: 2000;
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.lang-dropdown-menu.open { display: block; }
.lang-option {
    display: flex; align-items: center; gap: 8px;
    width: 100%;
    padding: 12px 16px;  /* bumped from 9-10px to land >=44pt total (Finding 9) */
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.lang-option:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.lang-option.active { color: var(--accent); }

/* === MOBILE === */
@media (max-width: 768px) {
    .nav-links .nav-link { display: none; }
    /* Touch targets >= 44pt on mobile (Findings 7, 8) */
    .btn-sm { padding: 12px 18px; font-size: 0.85rem; }
    /* keep navbar buttons usable; previously shrunk to ~32px */
    .nav-links .btn { padding: 10px 16px; font-size: 0.85rem; }
}

/* === REDUCED MOTION (Finding 12) === */
@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;
    }
}

/* === BREADCRUMB === */
.breadcrumb {
    max-width: 1200px;
    margin: 88px auto 0;  /* below fixed nav */
    padding: 0 24px;
    font-size: 0.85rem;
}
.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}
.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb li[aria-current="page"] { color: var(--text-primary); }
.breadcrumb li + li::before {
    content: "›";
    margin-right: 4px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* === RELATED PAGES === */
.related-pages {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    border-top: 1px solid var(--border);
}
.related-pages h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.related-pages ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.related-pages a {
    display: block;
    padding: 16px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}
.related-pages a:hover { background: rgba(255,255,255,0.06); border-color: var(--border-hover); }
.related-pages a span { display: block; color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; font-weight: 400; }
