/* ═══════════════════════════════════════════════════════════
   YenyBen — Unified Design System v2.5
   Tek dosya, tüm site. Tüm component'ler buradan kontrol edilir.
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
    /* Neon Renk Paleti */
    --neon-cyan: #00f3ff;
    --neon-pink: #ff2d87;
    --neon-purple: #7c3aed;
    --neon-gold: #f59e0b;
    --neon-green: #22c55e;
    --neon-blue: #0066ff;
    --neon-red: #ef4444;

    /* Arka planlar */
    --bg-dark: #020714;
    --bg-panel: rgba(10, 15, 30, 0.95);
    --bg-input: rgba(255, 255, 255, 0.03);
    --bg-card: linear-gradient(145deg, rgba(10, 15, 30, 0.95), rgba(5, 8, 18, 0.98));

    /* Border */
    --border-base: #1a2540;
    --border-glow: rgba(0, 243, 255, 0.2);
    --glass-border: rgba(0, 243, 255, 0.2);

    /* Text */
    --text-main: #e2e8f0;
    --text-muted: #64748b;
    --text-subtle: #334155;

    /* Boyutlar */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    /* Transitions */
    --transition: all 0.22s ease;
}

/* ── RESET / BASE ──────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', 'Outfit', sans-serif;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, rgba(0, 243, 255, 0.04), transparent 60%);
    -webkit-font-smoothing: antialiased;
}

/* ── HUD EFEKTLER ──────────────────────────────────────────── */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 243, 255, 0.02) 51%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
}

.hud-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

/* ── TİPOGRAFİ ─────────────────────────────────────────────── */
.font-tech {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.font-mono-tech {
    font-family: 'Share Tech Mono', monospace;
}

.text-glow-cyan {
    text-shadow: 0 0 12px rgba(0, 243, 255, 0.6);
}

.text-glow-pink {
    text-shadow: 0 0 12px rgba(255, 45, 135, 0.6);
}

.text-glow-gold {
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.text-glow-purple {
    text-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
}

/* Section label (küçük etiket başlıklar) */
.label-section {
    font-size: 9px;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 14px;
    display: block;
}

/* ── KARTLAR ───────────────────────────────────────────────── */
/* Orijinal sci-fi-card — hero ve eski sayfalar için korunuyor */
.sci-fi-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.12);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 243, 255, 0.02);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.sci-fi-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 243, 255, 0.08), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.sci-fi-card:hover::after {
    opacity: 1;
    top: -30%;
}

.sci-fi-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.25), inset 0 0 20px rgba(0, 243, 255, 0.08);
    transform: translateY(-4px);
}

.sci-fi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--neon-cyan);
    border-left: 2px solid var(--neon-cyan);
    opacity: 0.5;
    transition: 0.3s;
}

.sci-fi-card:hover::before {
    width: 100%;
    height: 100%;
    opacity: 1;
    background: transparent;
    pointer-events: none;
}

/* Yeni glass-card — profil, dashboard iç paneller için */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(0, 243, 255, 0.2);
}

/* Card varyantlar (border rengi) */
.card-cyan {
    border-color: rgba(0, 243, 255, 0.2);
}

.card-gold {
    border-color: rgba(245, 158, 11, 0.2);
}

.card-purple {
    border-color: rgba(124, 58, 237, 0.2);
}

.card-pink {
    border-color: rgba(255, 45, 135, 0.2);
}

.card-red {
    border-color: rgba(239, 68, 68, 0.15);
}

/* ─── BUTONLAR ─────────────────────────────────────────────── 
   Tüm sitede tutarlı buton sistemi.
   Kullanım: <button class="btn btn-cyan">Tıkla</button>
   ─────────────────────────────────────────────────────────── */

/* Base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}

/* İçerik kalamaç efekti */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.06), transparent);
    opacity: 0;
    transition: opacity .2s;
}

.btn:hover::after {
    opacity: 1;
}

/* Boyut varyantları */
.btn-sm {
    padding: 7px 16px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-xl {
    padding: 18px 44px;
    font-size: 18px;
    border-radius: var(--radius-lg);
}

/* ── Cyan (Birincil) */
.btn-cyan {
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan);
    border-color: rgba(0, 243, 255, 0.35);
}

.btn-cyan:hover {
    background: rgba(0, 243, 255, 0.18);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 18px rgba(0, 243, 255, 0.25);
    color: var(--neon-cyan);
}

.btn-cyan.btn-solid {
    background: var(--neon-cyan);
    color: #000;
}

.btn-cyan.btn-solid:hover {
    background: #00d9e6;
    box-shadow: 0 0 24px rgba(0, 243, 255, 0.4);
    color: #000;
}

/* ── Pink / Pembe */
.btn-pink {
    background: rgba(255, 45, 135, 0.1);
    color: var(--neon-pink);
    border-color: rgba(255, 45, 135, 0.35);
}

.btn-pink:hover {
    background: rgba(255, 45, 135, 0.18);
    border-color: var(--neon-pink);
    box-shadow: 0 0 18px rgba(255, 45, 135, 0.25);
    color: var(--neon-pink);
}

.btn-pink.btn-solid {
    background: var(--neon-pink);
    color: #fff;
}

.btn-pink.btn-solid:hover {
    background: #ff0070;
    box-shadow: 0 0 24px rgba(255, 45, 135, 0.4);
}

/* ── Gold / Altın */
.btn-gold {
    background: rgba(245, 158, 11, 0.1);
    color: var(--neon-gold);
    border-color: rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: var(--neon-gold);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.25);
    color: var(--neon-gold);
}

.btn-gold.btn-solid {
    background: var(--neon-gold);
    color: #000;
}

.btn-gold.btn-solid:hover {
    background: #d97706;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.4);
    color: #000;
}

/* ── Purple / Mor */
.btn-purple {
    background: rgba(124, 58, 237, 0.1);
    color: #a78bfa;
    border-color: rgba(124, 58, 237, 0.35);
}

.btn-purple:hover {
    background: rgba(124, 58, 237, 0.18);
    border-color: var(--neon-purple);
    box-shadow: 0 0 18px rgba(124, 58, 237, 0.25);
    color: #a78bfa;
}

.btn-purple.btn-solid {
    background: var(--neon-purple);
    color: #fff;
}

.btn-purple.btn-solid:hover {
    background: #6d28d9;
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.4);
}

/* ── Ghost / Şeffaf */
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-base);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ── Danger / Tehlike */
.btn-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.2);
}

/* Eski .btn-tech uyumluluk katmanı — kaldırılmayacak */
.btn-tech {
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    z-index: 1;
}

.btn-tech:hover {
    background: var(--neon-cyan);
    color: black;
    box-shadow: 0 0 20px var(--neon-cyan);
}

.btn-tech-pink {
    background: rgba(255, 45, 135, 0.1);
    color: var(--neon-pink);
    border: 1px solid var(--neon-pink);
}

.btn-tech-pink:hover {
    background: var(--neon-pink);
    color: white;
    box-shadow: 0 0 20px var(--neon-pink);
}

/* ── INPUT / FORM ELEMENTLERİ ──────────────────────────────── */
.input-base {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    padding: 11px 16px;
    color: var(--text-main);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition);
    -webkit-appearance: none;
}

.input-base::placeholder {
    color: var(--text-subtle);
}

.input-base:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.08);
}

.input-base:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.input-base.input-error {
    border-color: rgba(239, 68, 68, 0.5);
}

.input-base.input-success {
    border-color: rgba(34, 197, 94, 0.4);
}

/* Eski .input-field — uyumluluk için korunuyor */
.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-base);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.input-field:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 2px rgba(0, 243, 255, 0.08);
}

/* Form label */
.form-label {
    display: block;
    font-size: 11px;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* ── BADGE / ETİKET ────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-family: 'Share Tech Mono', monospace;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.badge-cyan {
    background: rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.25);
    color: var(--neon-cyan);
}

.badge-pink {
    background: rgba(255, 45, 135, 0.1);
    border-color: rgba(255, 45, 135, 0.25);
    color: var(--neon-pink);
}

.badge-gold {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
    color: var(--neon-gold);
}

.badge-purple {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.25);
    color: #a78bfa;
}

.badge-green {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.25);
    color: var(--neon-green);
}

.badge-red {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

/* ── STATUS / DURUM ────────────────────────────────────────── */
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-active {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    animation: blink 2s infinite;
}

.status-warning {
    background: var(--neon-gold);
    box-shadow: 0 0 8px var(--neon-gold);
    animation: blink 2s infinite;
}

.status-error {
    background: var(--neon-red);
    box-shadow: 0 0 8px var(--neon-red);
}

.status-offline {
    background: var(--text-subtle);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

/* ── NAVBAR / NAV ───────────────────────────────────────────── */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 7, 20, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-base);
}

/* ── OVERLAY / DIVIDER ─────────────────────────────────────── */
.scanline-overlay {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 243, 255, 0.012) 2px, rgba(0, 243, 255, 0.012) 4px);
    pointer-events: none;
    z-index: 1;
}

/* ── TOAST BİLDİRİMİ ───────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    transform: translateY(80px);
    opacity: 0;
    transition: all .3s cubic-bezier(.34, 1.56, .64, 1);
    z-index: 9999;
    backdrop-filter: blur(12px);
    pointer-events: none;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.toast.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.toast.info {
    background: rgba(0, 243, 255, 0.12);
    border: 1px solid rgba(0, 243, 255, 0.25);
    color: var(--neon-cyan);
}

.toast.warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--neon-gold);
}

/* ── ANİMASYONLAR ───────────────────────────────────────────── */
@keyframes neon-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .65;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes glow-in {
    from {
        opacity: 0;
        transform: scale(.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-pulse-slow {
    animation: neon-pulse 3s infinite;
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.animate-glow-in {
    animation: glow-in .4s ease forwards;
}

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.35);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 243, 255, 0.6);
}

/* ── GLASS PANEL (navbar vb.) ───────────────────────────────── */
.glass-panel {
    background: rgba(5, 10, 22, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ── YARDIMCI ────────────────────────────────────────────────── */
.truncate-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Eski card renk varyantları — geriye dönük uyumluluk */
.card-yellow:hover {
    border-color: var(--neon-yellow, #fcee0a);
    box-shadow: 0 0 20px rgba(252, 238, 10, 0.3);
}

.card-yellow::before {
    border-color: var(--neon-yellow, #fcee0a);
}