/* ═══════════════════════════════════════════════════════════
   ORTAK TEMA DEĞİŞKENLERİ
   Tüm sayfalar bu dosyayı kullanır — renkler tek yerden yönetilir.
   ═══════════════════════════════════════════════════════════ */

/* ── KOYU TEMA (varsayılan) ── */
:root {
    --bg:          #08080c;
    --surface-1:   #101017;
    --surface-2:   #16161f;
    --surface-3:   #1d1d28;
    --surface-hi:  #24242f;

    --border:      rgba(255,255,255,.07);
    --border-hi:   rgba(255,255,255,.13);

    --text:        #eceef4;
    --text-2:      #a4a8b8;
    --text-3:      #6b7080;

    --primary:       #7c8cff;
    --primary-dark:  #9d6bff;
    --secondary:     #f472d0;
    --accent:        #4fc4fe;

    --success:  #3ddc84;
    --warning:  #ffb340;
    --danger:   #ff5f6d;
    --gold:     #ffd15c;

    --success-bg: rgba(61,220,132,.11);
    --warning-bg: rgba(255,179,64,.11);
    --danger-bg:  rgba(255,95,109,.11);
    --primary-bg: rgba(124,140,255,.11);
    --gold-bg:    rgba(255,209,92,.12);

    --glow-primary: 0 0 34px rgba(124,140,255,.28);
    --glow-gold:    0 0 30px rgba(255,209,92,.32);

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow:    0 4px 20px rgba(0,0,0,.45);
    --shadow-lg: 0 14px 44px rgba(0,0,0,.55);

    --r-sm: 9px;
    --r:    14px;
    --r-lg: 20px;
    --r-xl: 26px;

    --ease: cubic-bezier(.32, .72, 0, 1);

    /* Eski adlar — geriye dönük uyum */
    --dark:  var(--text);
    --light: var(--surface-2);
    --white: var(--surface-1);
    --p:     var(--primary);
    --p2:    var(--primary-dark);
    --s:     var(--secondary);
    --ok:    var(--success);
    --warn:  var(--warning);
    --bad:   var(--danger);
}

/* ── AÇIK TEMA ── */
[data-theme="light"] {
    --bg:          #f4f5fa;
    --surface-1:   #ffffff;
    --surface-2:   #ffffff;
    --surface-3:   #f7f8fc;
    --surface-hi:  #eef0f7;

    --border:      rgba(16,18,32,.09);
    --border-hi:   rgba(16,18,32,.16);

    --text:        #14161f;
    --text-2:      #565b6e;
    --text-3:      #8b90a3;

    --primary:       #5a68e8;
    --primary-dark:  #7d4fe0;
    --secondary:     #d94eae;
    --accent:        #1a9fdb;

    --success:  #14a05a;
    --warning:  #c07800;
    --danger:   #d93b4a;
    --gold:     #b8860b;

    --success-bg: rgba(20,160,90,.09);
    --warning-bg: rgba(192,120,0,.09);
    --danger-bg:  rgba(217,59,74,.09);
    --primary-bg: rgba(90,104,232,.08);
    --gold-bg:    rgba(184,134,11,.1);

    --glow-primary: 0 0 26px rgba(90,104,232,.16);
    --glow-gold:    0 0 22px rgba(184,134,11,.18);

    --shadow-sm: 0 1px 2px rgba(16,18,32,.06);
    --shadow:    0 4px 18px rgba(16,18,32,.09);
    --shadow-lg: 0 14px 40px rgba(16,18,32,.13);
}

/* ── ORTAK TEMEL ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background .35s var(--ease), color .35s var(--ease);
}

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-hi);
    border-radius: 10px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── ORTAK ÜST ÇUBUK ── */
.page-top {
    background: color-mix(in srgb, var(--bg) 74%, transparent);
    backdrop-filter: blur(22px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 16px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-top h1 {
    font-size: 1.12em;
    font-weight: 750;
    letter-spacing: -.025em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── ORTAK BUTON ── */
.hbtn {
    background: var(--surface-2);
    color: var(--text-2);
    border: 1px solid var(--border);
    padding: 8px 15px;
    border-radius: var(--r-sm);
    font-size: .84em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all .2s var(--ease);
}
.hbtn:hover { background: var(--surface-3); color: var(--text); border-color: var(--border-hi); }

.hbtn.solid {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-color: transparent;
}
.hbtn.solid:hover { color: #fff; box-shadow: var(--glow-primary); transform: translateY(-1px); }

.hbtn.danger { color: var(--danger); border-color: rgba(255,95,109,.26); }
.hbtn.danger:hover { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }

/* ── TEMA / DİL SEÇİCİ ── */
.theme-switch, .lang-switch {
    display: flex;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 2px;
    gap: 2px;
}

.theme-switch button, .lang-switch button {
    background: none;
    border: none;
    color: var(--text-3);
    padding: 6px 11px;
    font-size: .76em;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border-radius: 6px;
    transition: all .2s var(--ease);
}
.theme-switch button:hover, .lang-switch button:hover { color: var(--text); background: var(--surface-hi); }
.theme-switch button.active, .lang-switch button.active { background: var(--primary); color: #fff; }

/* ── ORTAK KART ── */
.card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 24px;
    margin-bottom: 18px;
    position: relative;
    transition: border-color .25s var(--ease);
}
.card:hover { border-color: var(--border-hi); }

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 12%; right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}
[data-theme="light"] .card::before { display: none; }

.card h2 {
    font-size: 1em;
    font-weight: 700;
    letter-spacing: -.015em;
    margin-bottom: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── ORTAK SAYFA ARKA PLANI ── */
.page-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(58rem 38rem at 12% -8%, rgba(124,140,255,.15), transparent 60%),
        radial-gradient(46rem 32rem at 92% 4%,  rgba(244,114,208,.11), transparent 60%);
}
[data-theme="light"] .page-bg::before {
    background:
        radial-gradient(58rem 38rem at 12% -8%, rgba(90,104,232,.08), transparent 60%),
        radial-gradient(46rem 32rem at 92% 4%,  rgba(217,78,174,.06), transparent 60%);
}

/* ── ORTAK FORM ── */
input, select, textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 11px 13px;
    color: var(--text);
    font-size: .92em;
    font-family: inherit;
    outline: none;
    width: 100%;
    transition: all .2s var(--ease);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,140,255,.14);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:disabled { opacity: .55; cursor: not-allowed; }
select option { background: var(--surface-2); color: var(--text); }

/* ── ORTAK BOŞ DURUM ── */
.empty {
    text-align: center;
    padding: 45px 20px;
    color: var(--text-3);
    font-size: .9em;
    line-height: 1.65;
}
.empty .big { font-size: 2.6em; margin-bottom: 10px; opacity: .55; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 640px) {
    .page-top { padding: 14px 16px; }
    .card { padding: 18px; border-radius: var(--r-lg); }
}

/* ═══════════════ ALTBİLGİ ═══════════════ */
/* Sayfaların kendi "* { margin:0 }" sıfırlaması altbilgiyi
   bozmasın diye değerler açıkça yazılıyor. */
.site-footer {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid var(--border);
    background: var(--surface-1);
    margin: 48px 0 0;
    padding: 36px 26px 20px;
    position: relative;
    z-index: 1;
    clear: both;
}
.site-footer * { box-sizing: border-box; }

.sf-inner {
    max-width: 1560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) 3fr;
    gap: 34px;
}

.sf-brand { max-width: 320px; }
.sf-logo { font-weight: 750; font-size: .96em; margin-bottom: 9px; }
.sf-desc { font-size: .8em; color: var(--text-3); line-height: 1.7; }

.sf-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 22px;
}

.sf-title {
    font-size: .78em;
    font-weight: 700;
    color: var(--text-2);
    margin-bottom: 11px;
    letter-spacing: .02em;
}

.sf-col a {
    display: block;
    font-size: .8em;
    color: var(--text-3);
    text-decoration: none;
    padding: 4px 0;
    transition: color .16s;
}
.sf-col a:hover { color: var(--p); }

.sf-bottom {
    max-width: 1560px;
    margin: 26px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .75em;
    color: var(--text-3);
}
.sf-note { opacity: .8; }

@media (max-width: 780px) {
    .site-footer { padding: 28px 18px 18px; }
    .sf-inner { grid-template-columns: 1fr; gap: 24px; }
    .sf-brand { max-width: none; }
}

/* ═══════════════ ÇEREZ BANDI ═══════════════ */
.cookie-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9500;
    max-width: 780px;
    margin: 0 auto;
    background: var(--surface-1);
    border: 1px solid var(--border-hi);
    border-radius: var(--r-lg);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 12px 40px rgba(0,0,0,.28);
    transform: translateY(130%);
    opacity: 0;
    transition: transform .32s cubic-bezier(.2,.8,.3,1), opacity .3s;
}
.cookie-bar.show { transform: none; opacity: 1; }
.cookie-bar.out { transform: translateY(130%); opacity: 0; }

.cb-text { flex: 1; min-width: 240px; font-size: .82em; color: var(--text-2); line-height: 1.6; }
.cb-text strong { display: block; color: var(--text); margin-bottom: 3px; font-size: 1.02em; }
.cb-text a { color: var(--p); text-decoration: none; margin-left: 4px; }
.cb-text a:hover { text-decoration: underline; }

.cb-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.cb-btn {
    background: var(--surface-2);
    border: 1px solid var(--border-hi);
    color: var(--text-2);
    border-radius: var(--r-sm);
    padding: 9px 16px;
    font-family: inherit;
    font-size: .81em;
    font-weight: 650;
    cursor: pointer;
    transition: all .18s;
}
.cb-btn:hover { border-color: var(--p); color: var(--text); }
.cb-btn.primary {
    background: linear-gradient(135deg, var(--p), var(--p2));
    border-color: transparent;
    color: #fff;
}
.cb-btn.primary:hover { filter: brightness(1.08); }

@media (max-width: 560px) {
    .cookie-bar { left: 10px; right: 10px; bottom: 10px; padding: 14px; }
    .cb-actions { width: 100%; }
    .cb-btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-bar { transition: opacity .2s; transform: none; }
    .cookie-bar.out { transform: none; }
}

/* ═══════════════ İÇERİK SAYFALARI ═══════════════ */
.doc-page { max-width: 820px; margin: 0 auto; padding: 34px 20px 60px; }
.doc-page h1 { font-size: 1.55em; margin-bottom: 8px; }
.doc-lead { color: var(--text-2); font-size: .92em; line-height: 1.7; margin-bottom: 28px; }
.doc-page h2 {
    font-size: 1.05em;
    margin: 30px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.doc-page p, .doc-page li { font-size: .88em; color: var(--text-2); line-height: 1.75; }
.doc-page p { margin-bottom: 12px; }
.doc-page ul { margin: 0 0 14px 20px; }
.doc-page li { margin-bottom: 7px; }
.doc-page code {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 2px 7px;
    font-family: 'Courier New', monospace;
    font-size: .92em;
}
.doc-updated { font-size: .78em; color: var(--text-3); margin-top: 30px; }

.faq-q {
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}
.faq-q:last-child { border-bottom: none; }
.faq-q summary {
    cursor: pointer;
    font-size: .93em;
    font-weight: 650;
    list-style: none;
    display: flex;
    gap: 9px;
    align-items: flex-start;
}
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::before { content: '▸'; color: var(--p); flex-shrink: 0; }
.faq-q[open] summary::before { content: '▾'; }
.faq-q p { margin-top: 10px; padding-left: 19px; }

/* 404 */
.nf { text-align: center; padding: 90px 20px; max-width: 520px; margin: 0 auto; }
.nf-code {
    font-size: 4.5em;
    font-weight: 800;
    background: linear-gradient(135deg, var(--p), var(--p2));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.nf h1 { font-size: 1.3em; margin: 12px 0 10px; }
.nf p { color: var(--text-2); font-size: .9em; line-height: 1.7; margin-bottom: 24px; }
.nf-links { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }

/* ── iyzico güvenli ödeme notu ── */
.iyz-note {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid var(--border, #2a2e3a);
    border-left: 3px solid var(--primary, #7c8cff);
    border-radius: 10px;
    background: var(--surface-2, #16161f);
    font-size: .86em;
    line-height: 1.6;
    color: var(--text-2, #a4a8b8);
}
.iyz-note strong { color: var(--text, #eceef4); }
