/* ==========================================================================
   Eylül Büker — genel tasarım sistemi
   Bileşene özel stiller ilgili .razor.css dosyalarındadır.
   ========================================================================== */

@font-face {
    font-family: 'Anton';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/anton-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Anton';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/anton-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #070809;
    --bg-raised: #0d0f12;
    --surface: #131519;
    --surface-2: #1a1d22;
    --line: rgb(255 255 255 / 0.09);
    --line-strong: rgb(255 255 255 / 0.2);

    --text: #f4f3ef;
    --text-muted: rgb(244 243 239 / 0.66);
    --text-dim: rgb(244 243 239 / 0.42);

    /* Tek vurgu rengi: voleybol topu sarısı */
    --accent: #ffc83d;
    --accent-rgb: 255 200 61;
    --accent-ink: #141005;

    --font-display: 'Anton', 'Impact', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
    --maxw: 1320px;
    --header-h: 76px;
    --radius-lg: 28px;
    --radius: 18px;
    --radius-sm: 10px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 767px) {
    :root {
        --header-h: 64px;
    }
}

/* ---------- Temel ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 0.5rem);
    scrollbar-gutter: stable;
}

html:has(dialog[open]) {
    overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img,
video,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-250%);
    transition: transform 0.25s var(--ease-out);
}

.skip-link:focus {
    transform: none;
}

/* ---------- Düzen ---------- */

.container {
    width: min(100% - 2 * var(--gutter), var(--maxw));
    margin-inline: auto;
}

.section {
    position: relative;
    padding-block: clamp(5.5rem, 12vw, 10rem);
}

.section-head {
    display: grid;
    gap: 1.4rem;
    max-width: 60rem;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0;
    font: 600 0.76rem/1 var(--font-body);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.eyebrow__index {
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.eyebrow__rule {
    width: 2.75rem;
    height: 1px;
    background: currentColor;
    opacity: 0.45;
}

.display {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.75rem, 7.2vw, 6.75rem);
    line-height: 1.04;
    letter-spacing: 0.004em;
    text-transform: uppercase;
    text-wrap: balance;
}

.display em,
.accent {
    font-style: normal;
    color: var(--accent);
}

.lead {
    margin: 0;
    max-width: 42rem;
    font-size: clamp(1.05rem, 1.35vw, 1.22rem);
    line-height: 1.75;
    color: var(--text-muted);
}

/* ---------- İkon ---------- */

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
}

/* ---------- Butonlar ---------- */

.btn {
    --btn-bg: transparent;
    --btn-fg: var(--text);
    --btn-border: var(--line-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0 1.55rem;
    border: 1px solid var(--btn-border);
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font: 650 0.78rem/1 var(--font-body);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn .icon {
    transition: transform 0.4s var(--ease-out);
}

.btn:hover .icon--nudge-x {
    transform: translateX(4px);
}

.btn:hover .icon--nudge-y {
    transform: translateY(3px);
}

.btn:hover .icon--nudge-up {
    transform: translate(2px, -2px);
}

.btn--primary {
    --btn-bg: var(--accent);
    --btn-fg: var(--accent-ink);
    --btn-border: var(--accent);
}

.btn--primary:hover {
    --btn-bg: #ffd66e;
    --btn-border: #ffd66e;
}

.btn--ghost {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.btn--ghost:hover {
    --btn-bg: rgb(255 255 255 / 0.08);
    --btn-border: rgb(255 255 255 / 0.42);
}

/* ---------- Düzenlenebilir yer tutucu ---------- */

.placeholder {
    color: var(--text-dim);
    font-style: italic;
    text-decoration: underline dashed rgb(var(--accent-rgb) / 0.45);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
}

/* ---------- Scroll ile belirme (site.js yönetir) ---------- */

.reveal-pending {
    opacity: 0;
    transform: translate3d(0, 2.25rem, 0);
}

.reveal-pending.is-revealed {
    opacity: 1;
    transform: none;
    transition:
        opacity 1s var(--ease-out) var(--reveal-delay, 0ms),
        transform 1.2s var(--ease-out) var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-pending {
        opacity: 1;
        transform: none;
    }
}
