/* ==========================================================================
   BASE — Tasarım değişkenleri, sıfırlama, tipografi
   Turkuaz Gençlik Çalıştayı
   ========================================================================== */

:root {
    /* Renk paleti */
    --bg:            #06132a;
    --bg-soft:       #0a1c38;
    --bg-elevated:   #113052;
    --surface:       rgba(255, 255, 255, 0.035);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border:        rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    --accent:        #4d8fdb;
    --accent-light:  #8fbdee;
    --accent-dark:   #245f9e;
    --accent-deep:   #06152b;

    --text:          #f0fdf9;
    --text-muted:    rgba(240, 253, 249, 0.62);
    --text-dim:      rgba(240, 253, 249, 0.42);

    /* Tipografi */
    --font-sans: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Ölçek */
    --container:  1240px;
    --container-narrow: 900px;
    --gutter:     24px;

    /* Yarıçap */
    --radius-sm:  10px;
    --radius:     18px;
    --radius-lg:  28px;
    --radius-xl:  40px;
    --radius-full: 999px;

    /* Gölge */
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, .3);
    --shadow:    0 18px 44px rgba(0, 0, 0, .45);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, .55);
    --glow:      0 0 40px rgba(77, 143, 219, .28);

    /* Hareket */
    --ease:      cubic-bezier(.22, .61, .36, 1);
    --ease-out:  cubic-bezier(.16, 1, .3, 1);
    --dur:       .35s;
    --dur-slow:  .7s;

    /* Katman */
    --z-header: 100;
    --z-menu:   200;
}

/* --------------------------------------------------------------- Reset */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

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

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

ul, ol { list-style: none; }

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
}

button { cursor: pointer; }

::selection {
    background: var(--accent);
    color: var(--accent-deep);
}

/* ---------------------------------------------------------- Tipografi */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
h4 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
h5 { font-size: 1rem; }

p { text-wrap: pretty; }

strong { font-weight: 700; }

/* ------------------------------------------------------------ Yardımcı */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section {
    position: relative;
    padding-block: clamp(64px, 9vw, 130px);
}

.section--tight { padding-block: clamp(48px, 6vw, 84px); }

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Klavye ile içeriğe atlama */
.skip-link {
    position: absolute;
    top: 0; left: 50%;
    z-index: 999;
    transform: translate(-50%, -120%);
    padding: 12px 24px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: var(--accent);
    color: var(--accent-deep);
    font-weight: 700;
    font-size: .85rem;
    transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* Odak halkası */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --------------------------------------------------- Arka plan dekoru */
.bg-decor {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-decor__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .5;
}

.bg-decor__glow--1 {
    top: -18vw; left: -12vw;
    width: 46vw; height: 46vw;
    background: radial-gradient(circle, rgba(77, 143, 219, .35), transparent 68%);
}

.bg-decor__glow--2 {
    bottom: -22vw; right: -14vw;
    width: 52vw; height: 52vw;
    background: radial-gradient(circle, rgba(224, 49, 39, .26), transparent 70%);
}

.bg-decor__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

/* --------------------------------------------- Hareket tercihi saygısı */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
