/* style.css */
:root {
    --koyuMavi: #072684;
    --koyuMod: #16161a;
    --koyuKart: #222228;
    --koyuKartHeader: #1a1a20;
    --acikMod: #F4F5F7;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--acikMod);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden; 
    position: relative;
    max-width: 100%;
    touch-action: pan-x pan-y;
}

/* ==========================================
   🌙 GECE MODU (DARK MODE) ÖZEL STİLLERİ
   ========================================== */

body.dark-mode {
    background-color: var(--koyuMod);
    color: #f5f5f7;
}

/* Yazı ve Başlık Renkleri */
body.dark-mode .title-tabbu,
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5, 
body.dark-mode label, 
body.dark-mode p {
    color: #ffffff !important;
}

body.dark-mode .text-muted {
    color: #a1a1a6 !important;
}

body.dark-mode hr {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Ana Kartlar (Glass Card) */
body.dark-mode .glass-card {
    background: var(--koyuKart);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Yasaklı Kelimeler Listesi */
body.dark-mode .forbidden-words-list {
    background: linear-gradient(to bottom, #222228, #1b1b20);
}

body.dark-mode .forbidden-words-list li {
    color: #ff453a; /* Gece modunda daha canlı kırmızı */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Oyun İçi Bilgi Kartları (Takım, Pas, Puan, Süre) */
body.dark-mode .info-card {
    background: var(--koyuKart) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .info-card-title {
    color: #a1a1a6;
}

body.dark-mode .info-card-value {
    color: #ffffff;
}

/* Form Elemanları (Input & Select) */
body.dark-mode .game-input,
body.dark-mode .game-select {
    background-color: #2c2c34;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode .game-input::placeholder {
    color: #8e8e93;
}

body.dark-mode .game-select option {
    background-color: #2c2c34;
    color: #ffffff;
}

/* İstatistik Kutuları (Tur Özeti) */
body.dark-mode .stat-box {
    background: #2c2c34;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Liderlik Tablosu Listesi */
body.dark-mode .leaderboard-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Mola / Pause Ekranı */
body.dark-mode .blur-overlay {
    background: rgba(18, 18, 22, 0.88);
}

/* Yuvarlak Butonlar (Koyu Mod / Duraklatma Butonu) */
body.dark-mode .btn-white {
    background-color: #2c2c34 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

body.dark-mode .btn-white i {
    color: #ffffff !important;
}


/* ==========================================
   ☀️ GENEL DÜZEN VE ARAYÜZ STİLLERİ
   ========================================== */

.game-container {
    max-width: 800px; 
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
}

.game-container-narrow {
    max-width: 500px;
    margin: 0 auto;
}

/* Navigasyon (Üst Menü) */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: #007aff;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.nav-btn:active { opacity: 0.5; }

/* Logo Stili */
.brand-logo {
    object-fit: contain;
    mix-blend-mode: multiply; 
    display: block;
    margin: 0 auto;
}

body.dark-mode .brand-logo {
    mix-blend-mode: normal; /* Gece modunda zemin karardığı için blend modunu sıfırlar */
}

/* Başlık Stili */
.title-tabbu {
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff3b30, #ff9500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 2px 4px 10px rgba(255, 59, 48, 0.2);
}

/* Modern Butonlar */
.primary-btn {
    background-color: var(--koyuMavi);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
    transition: transform 0.1s;
}

.primary-btn:active { transform: scale(0.96); }

/* Input ve Select */
.game-input, .game-select {
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 15px;
    font-size: 1.1rem;
    background: #fff;
    width: 100%;
    margin-bottom: 15px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
    transition: all 0.2s;
}

.game-input:focus, .game-select:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

/* Cam Efektli Kart (Glass Card) */
.glass-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.04);
}

.glass-card-header {
    background: linear-gradient(135deg, #007aff, #0056b3);
    color: white;
    padding: 25px 20px;
    text-align: center;
}

.main-word {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.forbidden-words-list {
    list-style: none;
    padding: 20px;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    background: linear-gradient(to bottom, #ffffff, #fcfcfd);
    min-height: 250px;
}

.forbidden-words-list li {
    font-size: 1.3rem;
    color: #ff3b30; 
    font-weight: 500;
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.forbidden-words-list li:last-child { border-bottom: none; }

/* Bilgi Kartları (Oyun İçi) */
.info-card-container {
    margin-bottom: 20px;
}

.info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.info-card-title {
    font-size: 0.75rem;
    color: #86868b;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.info-card-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1d1d1f;
}

/* Liderlik Tablosu */
.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leaderboard-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1rem;
}

.leaderboard-list li:last-child { border-bottom: none; }

/* Duraklatma Overlay */
.blur-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: 28px;
}

.blur-overlay.active { opacity: 1; pointer-events: all; }

.resume-btn {
    background: #007aff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
}

/* Aksiyon Butonları (Tabu / Pas / Doğru) */
.action-btn {
    height: 70px;
    border-radius: 22px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.1s;
}

.action-btn:active { transform: scale(0.95); }
.action-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-taboo { background: #ff3b30; color: white; }
.btn-pass { background: #ffcc00; color: #333; }
.btn-correct { background: #34c759; color: white; }

/* Ekran Yönetimi */
.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Özet Ekranı İstatistik Kutuları */
.stat-box {
    background: #f5f5f7;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    flex: 1;
    margin: 0 5px;
}

/*  ️Kategori ve Seviye Butonlaır */
.custom-chip-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #48484a;
    background-color: #e5e5ea;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

/* Hover Efekti */
.custom-chip-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* Aktif (Tıklanmış / Seçilmiş) Durum */
.btn-check:checked + .custom-chip-btn {
    background-color: var(--koyuMavi);
    color: #ffffff;
    border-color: var(--koyuMavi);
    box-shadow: 0 4px 12px rgba(7, 38, 132, 0.3);
    transform: scale(1.03);
}

/* 🌙 GECE MODU UYUMLULUĞU */
body.dark-mode .custom-chip-btn {
    background-color: #2c2c34;
    color: #d1d1d6;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .btn-check:checked + .custom-chip-btn {
    background-color: #007aff;
    color: #ffffff;
    border-color: #007aff;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.4);
}