/* =========================================
   KLASİK MOD STİLLERİ (TAM VE DÜZELTİLMİŞ)
========================================= */

/* SAYFA VE PANEL ESNEME KİLİTLERİNİ AÇAN KODLAR (KAYDIRMAYI DÜZELTİR) */
html, body { 
    overflow-x: hidden !important; 
    height: auto !important;
    min-height: 100vh !important;
}

.glass-panel { 
    height: auto !important; 
    min-height: fit-content !important;
    max-height: none !important;
    overflow: visible !important; 
    padding-bottom: 25px !important; 
}

/* Ana container */
.game-container {
    max-width: 1000px !important;
    gap: 15px;
    padding-bottom: 100px; 
}

/* Üst Bar */
.top-bar { display: flex; justify-content: center; align-items: center; width: 100%; margin-bottom: 0; position: relative; }
.logo-link { display: inline-block; transition: transform 0.3s ease; }
.logo-link:hover { transform: scale(1.05); }
.top-logo { height: 60px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6)); z-index: 10; }

/* Bilgi Barı */
.glass-panel-mini {
    background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(10px);
    border: 1px solid var(--border-light); border-radius: 50px;
    padding: 8px 25px; margin: 0 auto; width: fit-content;
}
.info-bar { display: flex; justify-content: center; align-items: center; gap: 20px; }
.info-item { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.info-label { font-size: 0.65rem; color: #888; font-weight: 700; letter-spacing: 1px; }
.info-val { font-size: 1.1rem; color: #fff; font-weight: 800; }
.info-divider { width: 1px; height: 25px; background: rgba(255,255,255,0.2); }

/* Mod Sekmeleri */
.mode-tabs { display: flex; justify-content: space-between; gap: 10px; width: 100%; }
.tab-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; background: rgba(20, 20, 20, 0.6); border: 1px solid var(--border-light);
    border-radius: 14px; padding: 10px 5px; text-decoration: none; transition: 0.3s;
    position: relative; overflow: hidden;
}
.tab-btn:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); }
.tab-btn.active { background: linear-gradient(180deg, rgba(255, 153, 0, 0.15) 0%, rgba(0,0,0,0) 100%); border-color: var(--c-orange); box-shadow: 0 4px 15px rgba(255, 153, 0, 0.15); }
.tab-btn img { width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5)); }
.tab-btn span { font-weight: 800; font-size: 0.7rem; color: #999; text-transform: uppercase; letter-spacing: 0.5px; }
.tab-btn.active span { color: #fff; }

/* Oyun Paneli (Max-height sınırı kaldırıldı) */
.game-panel { 
    padding: 20px !important; 
    min-height: 350px; 
    max-height: none !important; 
    display: flex; flex-direction: column; 
}

/* Arama Alanı */
.search-wrapper { position: relative; z-index: 50; }
.search-container { position: relative; width: 100%; z-index: 50; }
.search-input {
    width: 100%; padding: 16px; border-radius: 12px; border: 1px solid var(--border-light);
    background: rgba(0, 0, 0, 0.5); color: white; font-family: var(--font-main); font-size: 1.1rem;
    outline: none; text-align: center; font-weight: bold; letter-spacing: 1px; transition: 0.3s;
}
.search-input:focus { background: rgba(0, 0, 0, 0.8); border-color: var(--c-orange); box-shadow: 0 0 20px rgba(255, 153, 0, 0.2); }

/* Arama Sonuçları */
.search-results {
    position: absolute; top: 110%; left: 0; width: 100%; background: #111; border: 1px solid #333;
    border-radius: 12px; max-height: 250px; overflow-y: auto; display: none; z-index: 100; box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}
.search-item { padding: 10px 15px; cursor: pointer; border-bottom: 1px solid #222; display: flex; align-items: center; gap: 12px; transition: 0.2s; }
.search-item:hover { background: var(--c-orange); }
.search-name { font-size: 1rem; font-weight: bold; color: #fff; display: block; }
.search-item:hover .search-name { color: #000; }
.search-alias { font-size: 0.75rem; color: #888; font-style: italic; display: block; }
.search-item:hover .search-alias { color: #222; }
.search-item img { width: 45px; height: 45px; border-radius: 8px; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); }

/* İpuçları (YENİ 3'LÜ GİZLENEBİLİR KUTULAR) */
.classic-hints-row { display: flex; flex-direction: row; gap: 8px; width: 100%; margin-top: 15px; margin-bottom: 20px; }
.classic-hint-box {
    flex: 1; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px; padding: 10px 5px; text-align: center; display: flex; flex-direction: column; justify-content: center;
    transition: all 0.3s ease; user-select: none;
}
.classic-hint-box.unlocked { border-color: #FF8C00; background: rgba(255, 140, 0, 0.08); cursor: pointer; }
.classic-hint-box.unlocked:hover { background: rgba(255, 140, 0, 0.15); }
.classic-hint-box .hint-title { font-family: 'Rajdhani', sans-serif; font-size: 0.8rem; color: #888; font-weight: 900; margin-bottom: 4px; letter-spacing: 0.5px; }
.classic-hint-box.unlocked .hint-title { color: #FF8C00; }
.classic-hint-box .hint-content { font-family: 'Rajdhani', sans-serif; font-size: 0.95rem; color: #666; font-weight: 800; transition: all 0.3s ease; line-height: 1.2; }
.classic-hint-box.unlocked .hint-content { color: #fff; text-shadow: 0 0 8px rgba(255, 140, 0, 0.3); animation: popIn 0.3s ease forwards; }
.classic-hint-box.unlocked .hint-content span { color: #FF8C00; font-weight: 900; }
.classic-hint-box.collapsed .hint-actual { display: none; }
.classic-hint-box.collapsed .hint-tap-msg { display: block; color: #888; font-size: 0.9rem; margin-top: 2px; }
.classic-hint-box:not(.collapsed) .hint-tap-msg { display: none; }
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Tablo Kaydırma Alanı */
.results-scroll { 
    overflow-x: auto; 
    overflow-y: hidden; 
    padding-bottom: 10px; 
    width: 100%; 
    max-width: 100%; 
    border-radius: 12px; 
    background: rgba(0,0,0,0.2); 
    padding: 10px; 
    -webkit-overflow-scrolling: touch; 
}
.results-inner { min-width: 900px; display: flex; flex-direction: column; gap: 8px; }
.game-row { display: grid; grid-template-columns: 70px repeat(8, 1fr); gap: 10px; margin-bottom: 10px; align-items: center; }
.headers { margin-bottom: 5px; }
.header-cell { color: var(--c-blue); font-size: 0.75rem; font-weight: 800; text-align: center; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); letter-spacing: 0.5px; }

/* Hücreler */
.guess-cell {
    height: 70px; background-color: rgba(0, 0, 0, 0.4); border: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15);
    border-radius: 8px; overflow: hidden; display: flex; justify-content: center; align-items: center; text-align: center;
    font-size: 0.8rem; font-weight: 700; color: #fff; padding: 5px; position: relative; z-index: 1; animation: flipIn 0.6s ease-out backwards;
}
.guess-cell.char-img { padding: 0; background: none; box-shadow: none; }
.guess-cell.char-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 2px solid rgba(255,255,255,0.2); box-shadow: 0 4px 10px rgba(0,0,0,0.5); }

/* Hücre İçi Renklendirmeler */
.correct { background-color: var(--c-green) !important; color: #000 !important; box-shadow: inset 0 0 0 2px #27ae60, 0 0 15px rgba(46, 204, 113, 0.3) !important; }
.incorrect { background-color: #ff4757 !important; box-shadow: inset 0 0 0 2px #c0392b !important; }
.hint-up { background: linear-gradient(to top, #ff4757, var(--c-green)) !important; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3) !important; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.hint-down { background: linear-gradient(to bottom, #ff4757, var(--c-green)) !important; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3) !important; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

body.colorblind-mode .correct { background-color: #0077b6 !important; color: #fff !important; box-shadow: inset 0 0 0 2px #0096c7, 0 0 15px #0077b6 !important; }
body.colorblind-mode .incorrect { background-color: #d90429 !important; box-shadow: inset 0 0 0 2px #a80020 !important; }
body.colorblind-mode .hint-up { background: linear-gradient(to top, #d90429, #0077b6) !important; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3) !important; }
body.colorblind-mode .hint-down { background: linear-gradient(to bottom, #d90429, #0077b6) !important; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3) !important; }

.guess-cell span { position: relative; z-index: 1; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

@keyframes flipIn { 0% { transform: rotateX(90deg); opacity: 0; } 100% { transform: rotateX(0deg); opacity: 1; } }

/* Göstergeler */
.indicators-inline { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-top: 12px; margin-bottom: 20px; }
.ind-group { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; color: #bbb; text-transform: uppercase; }
.dot { width: 10px; height: 10px; border-radius: 1px; display: inline-block; }
.dot.green { background: var(--c-green); }
.dot.red { background: #ff4757; }
.dot.gradient-up { background: linear-gradient(to top, #ff4757, var(--c-green)); }
.dot.gradient-down { background: linear-gradient(to bottom, #ff4757, var(--c-green)); }
body.colorblind-mode .dot.green { background: #0077b6 !important; }
body.colorblind-mode .dot.red { background: #d90429 !important; }
body.colorblind-mode .dot.gradient-up { background: linear-gradient(to top, #d90429, #0077b6) !important; }
body.colorblind-mode .dot.gradient-down { background: linear-gradient(to bottom, #d90429, #0077b6) !important; }

/* Kazanma Ekranı (Ortak) */
.win-section { margin-top: 15px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 15px; animation: fadeIn 0.5s ease; width: 100%; }
.win-header { font-size: 2.2rem; font-weight: 900; color: var(--c-green, #27ae60); margin-bottom: 15px; text-transform: lowercase; letter-spacing: 2px; }
.win-char-info { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 15px; margin-bottom: 20px; background: rgba(255, 255, 255, 0.05); padding: 15px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); max-width: 100%; }
.win-char-info img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; border: 2px solid white; flex-shrink: 0; background: #000; }
.win-char-texts { display: flex; flex-direction: column; text-align: left; }
.win-text { font-size: 1rem; color: #bbb; }
.win-name { font-size: 1.5rem; font-weight: 800; margin: 0; color: #fff; text-transform: uppercase; }
.win-stats p { margin: 10px 0; font-size: 1.1rem; color: #ddd; }
.win-stats strong { color: white; font-size: 1.2rem; }
.win-timer-box { margin: 15px 0; width: 100%; }
.win-timer-title { font-size: 1.2rem; color: #ddd; }
.win-timer { font-size: 2.5rem; font-weight: 900; letter-spacing: 2px; color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.4); margin: 5px 0; }
.win-timer-sub { font-size: 0.8rem; color: #aaa; font-style: italic; }
.win-divider-line { width: 80%; height: 1px; background: rgba(255,255,255,0.15); margin: 15px 0; }
.win-next-modes-container { width: 100%; text-align: center; }
.win-next-title { font-size: 1.2rem; color: #aaa; margin-bottom: 10px; }

/* MOD İKONLARININ EZİLMESİNİ VE CSS ÇAKIŞMASINI DÜZELTEN KOD */
.mode-boxes-row { display: flex; flex-direction: row; justify-content: center; gap: 8px; width: 100%; flex-wrap: wrap; }
.mode-box-square { 
    width: 70px; height: 70px; flex-shrink: 0; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    background: rgba(255, 255, 255, 0.03) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    border-radius: 10px; text-decoration: none; position: relative; overflow: hidden; transition: all 0.3s ease; 
    box-shadow: none !important;
}
.mode-box-square:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.3) !important; }
.mode-box-square img { width: 28px; height: 28px; object-fit: contain; margin-bottom: 4px; z-index: 2; }
.mode-box-square span { font-size: 0.7rem; font-weight: 800; color: #fff !important; z-index: 2; text-transform: uppercase; text-shadow: none !important; }

/* Klasik grid sistemindeki correct sınıfını ezer, sadece alt çizgi verir */
.mode-box-square.mode-done, .mode-box-square.correct { 
    border-bottom: 4px solid var(--c-green, #27ae60) !important; 
    background: rgba(255, 255, 255, 0.03) !important; 
}
.mode-box-square.mode-done::before, .mode-box-square.correct::before { 
    content: ''; position: absolute; top:0; left:0; right:0; bottom:0; 
    background: linear-gradient(0deg, rgba(39, 174, 96, 0.3) 0%, transparent 100%); 
}

.mode-box-square.mode-pending, .mode-box-square.incomplete { 
    border-bottom: 4px solid var(--c-red, #ff4757) !important; 
    background: rgba(255, 255, 255, 0.03) !important; 
}
.mode-box-square.mode-pending::before, .mode-box-square.incomplete::before { 
    content: ''; position: absolute; top:0; left:0; right:0; bottom:0; 
    background: linear-gradient(0deg, rgba(255, 71, 87, 0.3) 0%, transparent 100%); 
}

/* PAYLAŞ ALANI */
.win-share-container { width: 100%; text-align: center; margin-top: 5px; }
.share-btn { width: 100%; max-width: 300px; margin: 0 auto; padding: 15px; background: #5865F2; color: #fff; border: none; border-radius: 10px; font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; font-weight: 900; cursor: pointer; text-transform: uppercase; display: flex; justify-content: center; align-items: center; gap: 10px; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4); }
.share-btn:hover { background: #4752c4; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6); }
