/* ============================================================
   Venombet · Ortak Tema (frontend + admin)
   Premium / lüks koyu casino arayüzü
   ============================================================ */

:root {
    /* Zemin */
    --bg: #151515;
    --bg-deep: #0f0f0f;
    --bg-2: #1a1a1a;

    /* Cam panel gradyanı (istenen değer) */
    --panel: linear-gradient(155deg, hsla(0,0%,100%,0) -2.13%, hsla(0,0%,100%,.15) 136.58%);
    --panel-2: linear-gradient(155deg, hsla(0,0%,100%,.02) -2.13%, hsla(0,0%,100%,.07) 136.58%);

    /* Altın kimlik (logodaki "BET" tonları) */
    --gold: #f5c518;
    --gold-2: #f5a623;
    --gold-soft: #ffe27a;
    --gold-grad: linear-gradient(135deg, #ffe9a3 0%, #f5c518 45%, #f0a91c 100%);
    --silver-grad: linear-gradient(180deg, #ffffff 0%, #d6d6d6 50%, #8f8f8f 100%);
    --green: #22c55e;
    --green-soft: #4ade80;

    /* Metin */
    --text: #f5f5f6;
    --text-muted: #a8a8b0;
    --text-dim: #9a9aa1;   /* erişilebilir üçüncül metin: placeholder, sayaç, footer (≥4.5:1) */
    --icon-muted: #74747c; /* yalnızca dekoratif ikonlar (≥3:1, metin değil) */

    /* Çizgiler */
    --border: rgba(255,255,255,.07);
    --border-strong: rgba(255,255,255,.13);
    --hairline: rgba(255,255,255,.06);

    /* Durum renkleri */
    --success: #34d399; --success-bg: rgba(52,211,153,.10);
    --error: #f87171;   --error-bg: rgba(248,113,113,.10);
    --info: #60a5fa;

    /* Yarıçap */
    --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 24px; --r-2xl: 30px;
    --r-card: 16px;

    /* Yüzeyler (düz, donuk kartlar) */
    --surface: #1a1a1c;
    --surface-raised: #1e1e21;

    /* Gölge & derinlik */
    --shadow-sm: 0 2px 8px rgba(0,0,0,.35);
    --shadow-md: 0 12px 32px -8px rgba(0,0,0,.55), 0 4px 12px -6px rgba(0,0,0,.4);
    --shadow-lg: 0 32px 64px -16px rgba(0,0,0,.65), 0 12px 28px -12px rgba(0,0,0,.5);
    --inner-hi: inset 0 1px 0 rgba(255,255,255,.06);
    --inner-hi-strong: inset 0 1px 0 rgba(255,255,255,.10);
    --shadow-card: 0 8px 24px -16px rgba(0,0,0,.55), var(--inner-hi);
    --shadow-card-raised: 0 18px 44px -26px rgba(0,0,0,.7), var(--inner-hi-strong);
    --ring: 0 0 0 3px rgba(245,197,24,.6);
    --glow-gold: 0 0 28px -4px rgba(245,166,35,.5);
    --glow-green: 0 0 22px -2px rgba(34,197,94,.55);

    /* Geçiş */
    --t: 220ms cubic-bezier(.4,0,.2,1);
    --t-slow: 420ms cubic-bezier(.16,1,.3,1);

    /* z-index */
    --z-bg: 0; --z-base: 10; --z-dropdown: 20; --z-header: 30; --z-modal: 50;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: .002em;
}

h1, h2, h3, h4 {
    font-family: 'Sora', 'Inter', sans-serif;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -.015em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: rgba(245,197,24,.32); color: #fff; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

/* Lucide ikon temeli */
.lucide { flex-shrink: 0; vertical-align: middle; }

/* Kaydırma çubuğu */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.26); background-clip: padding-box; }

/* ------------------------------------------------------------
   Kartlar — glassmorphism + iç parlama
   ------------------------------------------------------------ */
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
}

/* ------------------------------------------------------------
   Butonlar
   ------------------------------------------------------------ */
.btn {
    --btn-bg: rgba(255,255,255,.05);
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14px;
    letter-spacing: .015em;
    padding: 12px 20px;
    border-radius: var(--r-md);
    border: 1px solid var(--border-strong);
    background: var(--btn-bg);
    color: var(--text);
    cursor: pointer; white-space: nowrap; user-select: none;
    box-shadow: var(--inner-hi);
    transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t), opacity var(--t), color var(--t);
    overflow: hidden;
}
.btn .lucide { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.09); border-color: var(--border-strong); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn--primary {
    background: var(--gold-grad);
    color: #1a1300; border: none; font-weight: 700;
    box-shadow: 0 8px 20px -10px rgba(245,166,35,.42), var(--inner-hi-strong);
}
/* Hareketli parıltı */
.btn--primary::after {
    content: ""; position: absolute; top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-18deg); transition: left .6s ease;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(245,166,35,.5), var(--inner-hi-strong); }
.btn--primary:hover::after { left: 130%; }

/* Klavye odağı: birincil dahil tüm butonlarda görünür altın halka */
.btn:focus-visible { box-shadow: var(--ring), var(--inner-hi-strong); }

.btn--ghost { background: rgba(255,255,255,.03); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }

.btn--danger { background: rgba(248,113,113,.10); border-color: rgba(248,113,113,.35); color: #fca5a5; }
.btn--danger:hover { background: rgba(248,113,113,.18); border-color: rgba(248,113,113,.55); }

.btn--block { width: 100%; }
.btn--sm { padding: 9px 15px; font-size: 13px; gap: 7px; }
.btn--sm .lucide { width: 16px; height: 16px; }

/* ------------------------------------------------------------
   Form elemanları
   ------------------------------------------------------------ */
.field { margin-bottom: 20px; }
.field > label {
    display: block; font-size: 12.5px; font-weight: 600;
    color: var(--text-muted); margin-bottom: 9px;
    letter-spacing: .03em; text-transform: uppercase;
}

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input-icon {
    position: absolute; left: 16px;
    width: 18px; height: 18px; color: var(--icon-muted);
    pointer-events: none; transition: color var(--t);
}
.input-wrap--area { align-items: flex-start; }
.input-wrap--area .input-icon { top: 16px; }

input[type=text], input[type=email], input[type=password], input[type=search],
select, textarea {
    width: 100%; font-family: inherit; font-size: 15px; color: var(--text);
    background: var(--panel-2);
    background-color: rgba(255,255,255,.028);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
    appearance: none;
    box-shadow: var(--inner-hi);
}
.input-wrap input, .input-wrap select { padding-left: 46px; }
textarea { resize: vertical; min-height: 140px; line-height: 1.65; }
.input-wrap--area textarea { padding-left: 46px; }

input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(245,197,24,.55);
    background-color: rgba(255,255,255,.04);
    box-shadow: var(--ring), var(--inner-hi);
}
.input-wrap:focus-within .input-icon { color: var(--gold); }

.select { padding-right: 44px; cursor: pointer; }
.select-caret {
    position: absolute; right: 16px; width: 17px; height: 17px;
    color: var(--icon-muted); pointer-events: none; transition: color var(--t);
}
.input-wrap:focus-within .select-caret { color: var(--gold); }
select option { background: #1c1c1c; color: var(--text); }

/* Dokunmatik: iOS'ta alan odağında otomatik yakınlaştırmayı önlemek için ≥16px */
@media (pointer: coarse) {
    input[type=text], input[type=email], input[type=password], input[type=search],
    select, textarea { font-size: 16px; }
}

.field__meta { margin-top: 7px; font-size: 12px; color: var(--text-dim); text-align: right; }

/* Bal küpü */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------
   Uyarı kutuları
   ------------------------------------------------------------ */
.alert {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 15px 17px; border-radius: var(--r-md);
    font-size: 14px; margin-bottom: 22px;
    box-shadow: var(--inner-hi);
    animation: alert-in .4s cubic-bezier(.16,1,.3,1);
}
.alert .lucide { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert > div { display: flex; flex-direction: column; gap: 3px; }
.alert--success { background: var(--success-bg); border: 1px solid rgba(52,211,153,.35); color: #6ee7b7; }
.alert--error { background: var(--error-bg); border: 1px solid rgba(248,113,113,.35); color: #fca5a5; }
.alert--info { background: rgba(96,165,250,.10); border: 1px solid rgba(96,165,250,.35); color: #93c5fd; }

@keyframes alert-in { from { opacity: 0; transform: translateY(-10px) scale(.99); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------
   Durum rozetleri
   ------------------------------------------------------------ */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; padding: 5px 11px 5px 9px;
    border-radius: 99px; border: 1px solid transparent;
    white-space: nowrap; line-height: 1;
}
.badge .lucide { width: 13px; height: 13px; }
.badge--yeni { color: #fcd34d; background: rgba(245,197,24,.12); border-color: rgba(245,197,24,.32); }
.badge--okundu { color: #93c5fd; background: rgba(96,165,250,.12); border-color: rgba(96,165,250,.32); }
.badge--yanitlandi { color: #6ee7b7; background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.32); }
.badge--arsivlendi { color: #b5b5bd; background: rgba(161,161,170,.1); border-color: rgba(161,161,170,.26); }

/* ------------------------------------------------------------
   Yardımcılar
   ------------------------------------------------------------ */
.text-gold { color: var(--gold); }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important; animation-iteration-count: 1 !important;
        transition-duration: .001ms !important; scroll-behavior: auto !important;
    }
}
