/* =========================================
   DRAGONBALLDLE - REPLİK (QUOTE) MODU CSS
   ========================================= */

:root {
    --c-green: #27ae60;
    --c-red: #ff4757;
    --c-quote: #f39c12; 
    --font-main: 'Rajdhani', sans-serif;
}

html, body { 
    overflow-x: hidden !important; 
    overflow-y: auto !important; 
    height: auto !important;
    min-height: 100vh !important;
}

.main-container, .game-container { 
    padding-bottom: 50px !important; 
    height: auto !important;
}

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

.game-panel { 
    font-family: 'Rajdhani', sans-serif !important; 
    color: #ffffff !important; 
    display: flex !important;
    flex-direction: column !important;
}

/* 1. REPLİK KUTUSU */
.quote-display-box {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 25px 20px;
    margin: 10px auto 15px auto;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    min-height: 180px; 
    max-height: 220px; 
    overflow-y: auto;  
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; 
}

.quote-text {
    color: #ffffff;
    font-size: clamp(1.1rem, 4vw, 1.4rem); 
    font-style: italic;
    font-weight: bold;
    letter-spacing: 0.5px;
    line-height: 1.5;
    position: relative;
    display: inline-block;
}

.quote-text::before { content: "\201C"; color: var(--c-quote); font-size: 2.5rem; line-height: 0; vertical-align: -0.6rem; margin-right: 8px; }
.quote-text::after { content: "\201D"; color: var(--c-quote); font-size: 2.5rem; line-height: 0; vertical-align: -0.6rem; margin-left: 8px; }


/* =========================================
   YAN YANA 3'LÜ İPUCU KUTUSU (TIKLANABİLİR)
   ========================================= */
.quote-hints-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    margin-bottom: 20px;
}

.quote-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; /* Metnin seçilmesini engeller */
}

/* Kutu açıldığında tıklanabilir olur */
.quote-hint-box.unlocked {
    border-color: var(--c-quote);
    background: rgba(243, 156, 18, 0.08);
    cursor: pointer;
}

.quote-hint-box.unlocked:hover {
    background: rgba(243, 156, 18, 0.15);
}

.quote-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;
}

.quote-hint-box.unlocked .hint-title {
    color: var(--c-quote);
}

.quote-hint-box .hint-content {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    color: #666;
    font-weight: 800;
    /* İTALİK KALDIRILDI */
    font-style: normal;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.quote-hint-box.unlocked .hint-content {
    color: #fff;
    text-shadow: 0 0 8px rgba(243, 156, 18, 0.3);
    animation: popIn 0.3s ease forwards;
}

.quote-hint-box.unlocked .hint-content span {
    color: var(--c-quote);
    font-weight: 900;
}

/* KUTU GİZLEME/AÇMA (COLLAPSE) MANTIĞI */
.quote-hint-box.collapsed .hint-actual {
    display: none;
}
.quote-hint-box.collapsed .hint-tap-msg {
    display: block;
    color: #888;
    font-size: 0.9rem;
    margin-top: 2px;
}
.quote-hint-box:not(.collapsed) .hint-tap-msg {
    display: none;
}


/* 2. ARAMA MOTORU */
.search-wrapper { margin-top: 5px; position: relative; z-index: 10; }

.search-results {
    max-height: 250px; overflow-y: auto; background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px;
    margin-top: 5px; position: absolute; width: 100%; z-index: 100;
}
.search-item { display: flex; align-items: center; padding: 10px 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); cursor: pointer; }
.search-item:hover { background: rgba(255, 255, 255, 0.1); }
.search-item img { width: 45px; height: 45px; border-radius: 8px; margin-right: 15px; object-fit: cover; background-color: #222; border: 1px solid rgba(255, 255, 255, 0.1); }
.search-item span { color: white; font-size: 1.1rem; font-weight: 700; text-transform: capitalize; }

/* =========================================
   3. EVRENSEL TAHMİN KARTLARI
   ========================================= */
.simple-results-grid {
    width: 100%; height: auto !important; max-height: none !important;
    overflow: visible !important;  display: flex; flex-direction: column; flex-wrap: nowrap; gap: 8px;
    margin-top: 15px; padding-bottom: 10px;
}

div.guess-card {
    display: flex; flex-direction: column !important; align-items: center; justify-content: center;
    width: 100%; height: 85px; min-height: 85px; flex-shrink: 0;   
    padding: 5px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255,255,255,0.05) !important; 
    box-shadow: none !important; outline: none !important;
    animation: slideIn 0.3s ease;
}

div.guess-card .card-icon-box {
    width: 45px; height: 45px; min-width: 45px; min-height: 45px;
    border-radius: 8px; overflow: hidden;
    margin-bottom: 5px !important; margin-right: 0 !important; 
    border: 2px solid rgba(255, 255, 255, 0.2); background-color: #000;
}
div.guess-card .card-icon-box img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

div.guess-card .card-name {
    font-family: 'Rajdhani', sans-serif !important; font-size: 1.1rem; font-weight: 800;
    color: white !important; text-transform: uppercase; letter-spacing: 0.5px;
    text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); margin: 0 !important;
}

div.guess-card.correct { background: var(--c-green, #27ae60) !important; border: 1px solid var(--c-green, #27ae60) !important; }
div.guess-card.incorrect { background: var(--c-red, #ff4757) !important; border: 1px solid var(--c-red, #ff4757) !important; }

@keyframes popIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slideIn { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* =========================================
   KAZANMA EKRANI
   ========================================= */
.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; }
.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; }
.mode-boxes-row { display: flex; flex-direction: row; justify-content: center; gap: 8px; width: 100%; }
.mode-box-square { flex: 1; aspect-ratio: 1; max-width: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; text-decoration: none; position: relative; overflow: hidden; transition: all 0.3s ease; }
.mode-box-square:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.3); }
.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; z-index: 2; text-transform: uppercase; }
.mode-box-square.correct { border-bottom: 4px solid var(--c-green, #27ae60); }
.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.incomplete { border-bottom: 4px solid var(--c-red, #ff4757); }
.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%); }
