/* ==========================================================================
   CYBERTYCOON 2026 - ANA STİL DOSYASI (TAM SÜRÜM)
   ========================================================================== */

/* --- 1. RENK PALETİ VE DEĞİŞKENLER --- */
:root {
    --bg-color: #070b14;
    --panel-bg: #0f172a;
    --blue-team: #3b82f6;
    --red-team: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #dc2626;
    --crypto: #fbbf24;
    --gold: #fbbf24;
    --border-color: #334155;
    --border-light: #475569;
    --text-main: #f8fafc;
    --text-sub: #94a3b8;
    --text-muted: #64748b;
}

/* --- 2. GENEL AYARLAR VE TİPOGRAFİ --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 {
    font-weight: 700;
}

.font-mono, .font-code {
    font-family: 'Fira Code', monospace;
}

/* --- 3. YARDIMCI (UTILITY) SINIFLAR --- */
.hidden { display: none !important; }
.text-red { color: var(--red-team) !important; }
.text-blue { color: var(--blue-team) !important; }
.text-gold { color: var(--gold) !important; }
.text-green { color: var(--success) !important; }
.text-yellow { color: var(--warning) !important; }
.text-sub { color: var(--text-sub) !important; }
.text-muted { color: var(--text-muted) !important; }

.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.ml-10 { margin-left: 10px; }

/* --- 4. HABER BANT (NEWS TICKER) --- */
#news-ticker-container {
    background: #000;
    color: var(--success);
    padding: 5px 0;
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    white-space: nowrap;
}

.news-ticker-content {
    display: inline-block;
    animation: ticker 25s linear infinite;
}

/* --- 5. ÜST PANEL (HUD / HEADER) --- */
.hud-container {
    background: var(--panel-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 50;
}

/* HUD Sol - Logo ve Karma */
.hud-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 250px;
}
.company-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 1px;
}
.company-logo i { color: var(--blue-team); }

.karma-wrapper { width: 100%; }
.karma-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.label-red { color: var(--red-team); }
.label-blue { color: var(--blue-team); }
.karma-bar-bg {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, rgba(239,68,68,0.3) 0%, rgba(59,130,246,0.3) 100%);
    border-radius: 4px;
    position: relative;
}
.karma-pointer {
    width: 12px;
    height: 16px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 5px rgba(255,255,255,0.8);
    transition: left 0.5s ease;
}

/* HUD Orta - Seviye ve Durumlar */
.hud-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.level-wrapper {
    width: 100%;
    max-width: 400px;
    text-align: center;
}
.level-info {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 5px;
}
.title-text { color: var(--text-main); font-size: 1.1rem; }
.level-text { color: var(--warning); }
.xp-bar-bg {
    width: 100%;
    height: 12px;
    background: #1e293b;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}
.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    width: 0%;
    transition: width 0.5s ease;
}
.xp-text {
    font-size: 0.75rem;
    color: var(--text-sub);
    margin-top: 4px;
    font-family: 'Fira Code', monospace;
}
.stealth-wrapper {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* HUD Sağ - Ekonomi ve Kontroller */
.hud-right {
    display: flex;
    gap: 20px;
    align-items: center;
}
.economy-stats {
    display: flex;
    gap: 15px;
}
.stat-box {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 8px;
    text-align: right;
    min-width: 120px;
}
.stat-label {
    font-size: 0.7rem;
    color: var(--text-sub);
    text-transform: uppercase;
    margin-bottom: 3px;
}
.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
}
.flow-details {
    font-size: 0.9rem;
    font-family: 'Fira Code', monospace;
    font-weight: bold;
}
.flow-divider {
    color: var(--border-light);
    margin: 0 5px;
}
.system-controls {
    display: flex;
    gap: 8px;
}
.sys-btn {
    background: var(--panel-bg);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1.1rem;
}
.sys-btn:hover { background: var(--border-color); transform: translateY(-2px); }
.btn-danger { color: var(--red-team); border-color: rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.2); }

/* --- 6. OYUN ANA EKRANI (LAYOUT) --- */
.game-wrapper {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* SOL PANEL (MARKET VE SEKME MENÜSÜ) */
.left-panel {
    width: 380px;
    background: var(--panel-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 10;
}
.panel-tabs {
    display: flex;
    background: #020617;
}
.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-sub);
    padding: 15px 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.2s;
}
.tab-btn:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }
.tab-btn.active { color: var(--blue-team); border-bottom-color: var(--blue-team); background: var(--panel-bg); }
.tab-btn.text-red.active { color: var(--red-team); border-bottom-color: var(--red-team); }

.tab-content {
    display: none;
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.tab-content.active { display: block; }

.tab-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-light);
}
.tab-header p {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-top: 5px;
}
.border-red { border-bottom-color: rgba(239,68,68,0.4); }

/* MARKET EŞYALARI (KARTLAR) */
.upgrades-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.upgrade-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 15px;
    transition: 0.2s;
}
.upgrade-card:hover { border-color: var(--blue-team); box-shadow: 0 4px 12px rgba(59,130,246,0.1); }
.upgrade-card.red:hover { border-color: var(--red-team); box-shadow: 0 4px 12px rgba(239,68,68,0.1); }

.upg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.upg-title { font-weight: 700; font-size: 1rem; }
.upg-level {
    background: #1e293b;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-sub);
}
.upg-desc {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-bottom: 10px;
    line-height: 1.4;
}
.upg-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}
.stat-badge {
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 600;
}
.stat-badge.income { background: rgba(16,185,129,0.1); color: var(--success); }
.stat-badge.expense { background: rgba(239,68,68,0.1); color: var(--red-team); }
.stat-badge.stealth { background: rgba(139,92,246,0.1); color: #c4b5fd; }
.stat-badge.hash { background: rgba(245,158,11,0.1); color: var(--warning); }

.btn-buy {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}
.btn-buy.blue { background: var(--blue-team); color: white; }
.btn-buy.blue:hover { background: #2563eb; }
.btn-buy.red { background: var(--red-team); color: white; }
.btn-buy.red:hover { background: #dc2626; }

/* Kilitli Red Team Ekranı */
.locked-overlay {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}
.locked-overlay i { margin-bottom: 20px; color: #334155; }
.locked-overlay p { margin-top: 15px; font-size: 0.9rem; line-height: 1.5; }

/* Operasyon Kartları (Bug Bounty / CTF) */
.action-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.border-gold { border-color: rgba(245,158,11,0.3); }
.action-icon { font-size: 2.5rem; color: var(--blue-team); text-align: center; }
.action-details h4 { margin-bottom: 5px; }
.action-details p { font-size: 0.8rem; color: var(--text-sub); }
.ctf-cooldown { margin-top: 10px; font-size: 0.85rem; font-weight: bold; color: var(--warning); }

.btn-primary {
    background: var(--blue-team);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}
.btn-primary:hover { background: #2563eb; }
.btn-gold {
    background: var(--warning);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}
.btn-gold:disabled { background: #334155; color: #94a3b8; cursor: not-allowed; }

/* --- 7. ÇALIŞMA ALANI (WORKSPACE) VE EKRANLAR --- */
.workspace-area {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
}

.screens-container {
    flex: 1;
    position: relative;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dynamic-screen {
    width: 100%;
    max-width: 800px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

/* Boşta (Idle) Ekranı */
.setup-visual {
    width: 200px;
    height: 200px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}
.desk-level-1 { width: 60px; height: 60px; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233b82f6"><path d="M20 18c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2H0c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2h-4zM4 5h16v11H4V5z"/></svg>') no-repeat center; }
.radar-scanner {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-top-color: var(--blue-team);
    animation: spin 3s linear infinite;
}

/* Uygulama Pencereleri (Email, WA, Terminal) */
.app-window {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    text-align: left;
}
.app-header {
    background: #1e293b;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}
.dot {
    width: 12px; height: 12px; border-radius: 50%; margin-right: 6px;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }
.app-title {
    margin-left: 10px;
    font-size: 0.85rem;
    color: var(--text-sub);
    font-weight: 600;
}

/* Email Tasarımı */
.email-content { padding: 30px; }
.email-meta {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.meta-row { margin-bottom: 5px; font-size: 0.9rem; }
.meta-label { color: var(--text-sub); width: 80px; display: inline-block; }
.email-subject { font-size: 1.3rem; margin-bottom: 15px; color: var(--text-main); }
.email-body-text { line-height: 1.6; color: #cbd5e1; }
.email-action-area { margin-top: 30px; text-align: center; }
.phishing-lure-btn {
    background: #2563eb; color: white; border: none; padding: 10px 30px;
    border-radius: 4px; font-weight: bold; cursor: pointer;
}

/* WhatsApp Tasarımı */
.wa-app-header {
    background: #075e54;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.wa-avatar {
    width: 40px; height: 40px; background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #075e54; font-size: 1.2rem;
}
.wa-name { font-weight: bold; color: white; }
.wa-status { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.wa-chat-area {
    background: #ece5dd;
    padding: 30px;
    min-height: 300px;
}
.wa-bubble.in {
    background: #fff;
    color: #303030;
    padding: 12px 15px;
    border-radius: 0 10px 10px 10px;
    max-width: 80%;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-weight: 500;
}
.wa-time {
    display: block; font-size: 0.7rem; color: #999; text-align: right; margin-top: 5px;
}

/* Terminal Tasarımı */
.terminal-header { background: #000; border-bottom: none; }
.terminal-body {
    background: rgba(0,0,0,0.9);
    padding: 25px;
    min-height: 350px;
    color: #10b981;
}
.terminal-text { line-height: 1.6; font-size: 1rem; margin-bottom: 25px; }
.terminal-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.term-opt-btn {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    text-align: left;
}
.term-opt-btn:hover { background: rgba(16, 185, 129, 0.3); }
.btn-hint {
    background: transparent;
    border: 1px dashed var(--warning);
    color: var(--warning);
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Karar (Decision) Barı */
.decision-bar {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.decision-btn {
    flex: 1; padding: 15px; border-radius: 8px; font-weight: bold;
    font-size: 1.1rem; cursor: pointer; border: none; transition: 0.2s;
}
.btn-block { background: var(--danger); color: white; }
.btn-block:hover { background: #b91c1c; transform: scale(1.02); }
.btn-allow { background: var(--success); color: white; }
.btn-allow:hover { background: #047857; transform: scale(1.02); }

/* --- 8. PANİK SAYACI VE OPSEC --- */
.panic-meter {
    background: rgba(0,0,0,0.8);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 30px;
    z-index: 40;
}
.panic-header {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    margin-bottom: 8px;
}
.timer-text { font-family: 'Fira Code', monospace; font-size: 1.2rem; color: white; }
.progress-bar-bg {
    width: 100%; height: 10px; background: #334155; border-radius: 5px; overflow: hidden;
}
.progress-fill {
    width: 100%; height: 100%; background: var(--danger); transition: width 1s linear;
}

.opsec-alert-box { text-align: center; }
.opsec-desc { font-size: 1.1rem; color: #cbd5e1; max-width: 500px; margin: 0 auto; line-height: 1.5; }
.btn-danger-large {
    background: var(--danger);
    color: white; border: none; padding: 15px 40px; border-radius: 8px;
    font-size: 1.2rem; font-weight: bold; cursor: pointer; transition: 0.2s;
    box-shadow: 0 0 20px rgba(220,38,38,0.4);
}
.btn-danger-large:hover { background: #b91c1c; transform: scale(1.05); }

/* --- 9. YAN PANELLER (REHBER, BAŞARIM, AYARLAR) --- */
.guide-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 350px;
    height: 100%;
    background: var(--panel-bg);
    border-left: 1px solid var(--border-color);
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}
.guide-sidebar.open { right: 0; }
.guide-header {
    padding: 20px; background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
}
.guide-header h2 { font-size: 1.2rem; margin: 0; }
.close-guide-btn {
    background: transparent; border: none; color: var(--text-sub);
    font-size: 1.5rem; cursor: pointer;
}
.close-guide-btn:hover { color: var(--red-team); }
.guide-content { padding: 20px; overflow-y: auto; flex: 1; }

/* Rehber İçeriği */
.guide-section { margin-bottom: 25px; }
.guide-section h3 { font-size: 1rem; color: var(--blue-team); margin-bottom: 10px; border-bottom: 1px solid var(--border-light); padding-bottom: 5px; }
.guide-list { list-style: none; }
.guide-list li { margin-bottom: 12px; font-size: 0.85rem; line-height: 1.5; color: #cbd5e1; }
.guide-list strong { color: var(--warning); font-family: 'Fira Code', monospace; }

/* Başarımlar İçeriği (YENİ) */
.ach-card {
    display: flex; align-items: center; background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color); border-radius: 8px; padding: 15px; margin-bottom: 15px; transition: 0.3s;
}
.ach-card.locked { opacity: 0.5; filter: grayscale(100%); }
.ach-card.unlocked { border-color: var(--warning); box-shadow: 0 0 10px rgba(245, 158, 11, 0.2); }
.ach-icon { width: 50px; text-align: center; }
.ach-info { flex: 1; padding-left: 15px; }
.ach-info h4 { margin: 0 0 5px 0; color: #e2e8f0; }
.ach-info p { margin: 0 0 8px 0; font-size: 0.8rem; color: var(--text-sub); }
.ach-reward { font-size: 0.75rem; font-weight: bold; color: var(--success); background: rgba(16, 185, 129, 0.1); padding: 3px 8px; border-radius: 4px; }
.ach-status { font-size: 1.2rem; color: var(--text-muted); }

/* Ayarlar İçeriği (YENİ) */
.settings-group {
    background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-color); border-radius: 8px; padding: 15px; margin-bottom: 20px;
}
.settings-group label { display: block; color: #e2e8f0; margin-bottom: 10px; font-size: 0.9rem; font-weight: 600; }
.cyber-slider { width: 100%; accent-color: var(--blue-team); cursor: pointer; height: 6px; background: #1e293b; border-radius: 5px; outline: none; }
.cyber-select { width: 100%; background: #0f172a; color: #10b981; border: 1px solid var(--border-light); padding: 10px; border-radius: 5px; font-family: 'Inter', sans-serif; font-size: 0.9rem; cursor: pointer; outline: none; }
.cyber-select:focus { border-color: var(--blue-team); }
.btn-test-sound { background: transparent; border: 1px solid var(--warning); color: var(--warning); padding: 5px 15px; border-radius: 5px; cursor: pointer; font-size: 0.8rem; margin-top: 10px; transition: 0.2s; width: 100%; }
.btn-test-sound:hover { background: var(--warning); color: #000; }

/* --- 10. BİLDİRİMLER (TOASTS) --- */
.toast-wrapper { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.toast-notification {
    background: rgba(15, 23, 42, 0.95); border: 1px solid var(--border-light); padding: 15px 20px;
    border-radius: 8px; display: flex; align-items: center; gap: 12px; font-weight: 500; min-width: 250px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5); animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.toast-notification.success { border-left: 4px solid var(--success); }
.toast-notification.error { border-left: 4px solid var(--danger); }
.toast-notification.warning { border-left: 4px solid var(--warning); }
.toast-notification.info { border-left: 4px solid var(--blue-team); }
.toast-icon { font-size: 1.2rem; }
.success .toast-icon { color: var(--success); }
.error .toast-icon { color: var(--danger); }
.warning .toast-icon { color: var(--warning); }
.info .toast-icon { color: var(--blue-team); }
.toast-text { font-size: 0.9rem; }

/* --- 11. ANİMASYONLAR --- */
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes pulse-fast { 0% { opacity: 1; } 100% { opacity: 0.5; } }