/* Shred Finder theme — tokens, fonts, hero, forms, shared bits (every page loads this)
   Motion personality: ENERGETIC (motion-design skill)
   - signature easing: ease-out-expo  cubic-bezier(0.16, 1, 0.3, 1)
   - overshoot easing: bounce settle  cubic-bezier(0.175, 0.885, 0.32, 1.275)
   - exit easing:      accelerate     cubic-bezier(0.3, 0, 1, 1)
   - duration palette: 100ms quick / 180ms standard / 300ms slow
   - entrance pattern: slide up + scale from 95%, staggered 30ms
*/
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --sf-bg: #0c110e;
    --sf-surface: #151d18;
    --sf-surface-2: #1c2620;
    --sf-line: #2a362f;
    --sf-text: #eef3ea;
    --sf-muted: #9aa89f;
    --sf-lime: #c6f432;
    --sf-orange: #ff7a1a;

    --sf-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --sf-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --sf-exit: cubic-bezier(0.3, 0, 1, 1);
    --sf-quick: 100ms;
    --sf-standard: 180ms;
    --sf-slow: 300ms;
}

body {
    background: var(--sf-bg);
    color: var(--sf-text);
    font-family: 'Inter', system-ui, sans-serif;
}

#zVaF-content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px 64px;
}

/* ── Hero (primary layer + ambient gradient drift) ───────────────── */
.hero {
    position: relative;
    margin: 16px 0 24px;
    padding: 48px 28px 40px;
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(198, 244, 50, 0.22), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255, 122, 26, 0.20), transparent 50%),
        var(--sf-surface);
    background-size: 160% 160%;
    animation: sf-drift 14s ease-in-out infinite alternate;
    border: 1px solid var(--sf-line);
}

.hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(2.6rem, 8vw, 4.5rem);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 0.95;
    margin: 0 0 10px;
    color: var(--sf-text);
    animation: sf-rise var(--sf-slow) var(--sf-ease) both;
}

.hero h1::after {
    content: '';
    display: block;
    width: 72px;
    height: 6px;
    margin-top: 14px;
    border-radius: 3px;
    background: var(--sf-lime);
    transform-origin: left;
    animation: sf-grow var(--sf-slow) var(--sf-ease) 120ms both;
}

.hero p {
    color: var(--sf-muted);
    font-size: 1.05rem;
    margin: 0;
    animation: sf-rise var(--sf-slow) var(--sf-ease) 80ms both;
}

/* ── Shared form chrome ───────────────────────────────────────────── */
.zDialog-container {
    color: var(--sf-text);
}

.zDialog-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sf-text);
}

.zLabel {
    color: var(--sf-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.zForm-control,
.zSelect {
    background-color: var(--sf-surface-2) !important;
    border: 1px solid var(--sf-line) !important;
    color: var(--sf-text) !important;
    border-radius: 10px !important;
    transition:
        border-color var(--sf-quick) var(--sf-ease),
        box-shadow var(--sf-standard) var(--sf-ease);
}

.zForm-control:focus,
.zSelect:focus {
    border-color: var(--sf-lime) !important;
    box-shadow: 0 0 0 3px rgba(198, 244, 50, 0.25) !important;
    outline: none;
}

/* Primary buttons: press → squash, release → bounce settle */
.zDialog-container .zBtn-primary {
    background: var(--sf-lime) !important;
    color: #10160f !important;
    border: none !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(198, 244, 50, 0.25);
    transition:
        transform var(--sf-standard) var(--sf-bounce),
        box-shadow var(--sf-standard) var(--sf-ease);
}

.zDialog-container .zBtn-primary:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 26px rgba(198, 244, 50, 0.35);
    transition-duration: var(--sf-quick);
}

.zDialog-container .zBtn-primary:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(198, 244, 50, 0.2);
    transition: transform 60ms var(--sf-ease), box-shadow 60ms var(--sf-ease);
}

/* ── Shared bits: top bar, type badge, store buttons ─────────────── */
.topbar {
    display: flex;
    align-items: center;
    padding: 18px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--sf-line);
    animation: sf-rise var(--sf-standard) var(--sf-ease) both;
}

.topbar a,
a.brand-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    text-transform: uppercase;
    text-decoration: none !important;
    color: var(--sf-text) !important;
    transition: color var(--sf-quick) var(--sf-ease);
}

.topbar a::before {
    content: '← ';
    color: var(--sf-lime);
}

.topbar a:hover {
    color: var(--sf-lime) !important;
}

.bike-badge {
    align-self: flex-start;
    margin: 0 0 12px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sf-lime);
    background: rgba(198, 244, 50, 0.1);
    border: 1px solid rgba(198, 244, 50, 0.3);
}

/* Store buttons — hover <100ms, press 60ms, bounce release */
.bike-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.bike-stores > div {
    display: contents;
}

.bike-stores a,
a.store-btn {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    color: var(--sf-text) !important;
    background: var(--sf-surface-2);
    border: 1px solid var(--sf-line);
    transition:
        transform var(--sf-standard) var(--sf-bounce),
        background-color var(--sf-standard) var(--sf-ease),
        border-color var(--sf-standard) var(--sf-ease);
}

.bike-stores a:hover,
a.store-btn:hover {
    transform: scale(1.06);
    background: rgba(198, 244, 50, 0.12);
    border-color: var(--sf-lime);
    transition-duration: var(--sf-quick);
}

.bike-stores a:active,
a.store-btn:active {
    transform: scale(0.94);
    transition-duration: 60ms;
}

a.store-btn-brand {
    background: var(--sf-lime);
    color: #10160f !important;
    border-color: var(--sf-lime);
}

a.store-btn-brand:hover {
    background: #d6ff52;
}

.bike-stores a:focus-visible,
.zBtn:focus-visible {
    outline: 3px solid var(--sf-lime);
    outline-offset: 2px;
}

/* ── Keyframes ────────────────────────────────────────────────────── */
@keyframes sf-rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes sf-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes sf-pop {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sf-card-in {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sf-drift {
    from { background-position: 0% 0%; }
    to   { background-position: 100% 100%; }
}

/* ── Accessibility: respect reduced motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 1ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}

/* Submit feedback — dark, lime-edged, pops in (success = 5-10% overshoot) */
.zDialog-feedback > * {
    background: rgba(198, 244, 50, 0.08) !important;
    border: 1px solid rgba(198, 244, 50, 0.35) !important;
    color: var(--sf-lime) !important;
    border-radius: 10px !important;
    animation: sf-pop 220ms var(--sf-bounce) both;
}
