/* diz.css - DIZ OYUNU STİLLERİ */

.diz-game { --gap: 10px; --radius: 10px; }
.diz-game * { box-sizing: border-box; }

.diz-game .wrap {
    margin-bottom: 10px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #222;
}

.diz-game .area {
    position: relative;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
}

/* Başlangıç Ekranı */
.diz-game .game-begin-content {
    text-align: center;
    padding: 60px 20px;
}

/* Oyun container */
.diz-game .game-container {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    user-select: none;
}

/* Sağ panel ortak butonlar */
.diz-game .baslatBTN {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    background: #22c55e;
    margin-bottom: 20px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.diz-game .baslatBTN:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

/* Zorluk Seçimi */
.diz-game .difficulty-selection {
    padding: 0;
}

.diz-game .difficulty-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    text-align: center;
}

.diz-game .difficulty-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.diz-game .difficulty-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.diz-game .difficulty-card:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.diz-game .difficulty-card.selected {
    border-color: #22c55e;
    background: #dcfce7;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.diz-game .difficulty-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.diz-game .difficulty-content {
    flex: 1;
}

.diz-game .difficulty-name {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}

.diz-game .difficulty-description {
    font-size: 12px;
    color: #6b7280;
}

/* Sağ panel kutular - base.css ile uyumlu */
.diz-game .gameci_durum_baslik {
    font-weight: 700 !important;
    font-size: 20px !important;
    margin-bottom: 12px !important;
    color: #da2728 !important;
    position: absolute;
    top: 5px !important;
    right: 8px !important;
    text-align: center;
}

.diz-game .gameci_durum {
    position: relative;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 15px;
}

.diz-game .gameci_durum > div:not(.gameci_durum_baslik) {
    font-size: 22px;
    font-weight: 800;
    color: #000;
}

.diz-game .gameci_timer {
    position: relative;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.diz-game .gameci_timer1 {
    font-size: 36px;
    font-weight: 800;
    color: #000;
}

.diz-game .gameci_timer2 {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e0e0e0;
    overflow: hidden;
    margin-top: 10px;
}

.diz-game .gameci_timer3 {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #22c55e;
    transition: width 0.1s linear, background-color 0.3s ease;
}

/* Rules */
.diz-game .rules_baslik {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 20px;
    color: #000;
}

.diz-game .rules_icerik {
    line-height: 1.8;
    font-size: 14px;
    color: #666;
}

/* Harf Kartları */
.diz-game .letter-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.diz-game .letter-card {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.diz-game .letter-card:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Harf Kartları Disabled Durumu */
.diz-game .letter-display.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.diz-game .letter-display.disabled .letter-card {
    cursor: not-allowed;
    transform: none;
}

/* Cevap Kutuları */
.diz-game .answer-boxes {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px auto 10px;
    max-width: 600px;
    min-height: 70px;
    border-radius: 10px;
}

.diz-game .letter-box {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(198, 198, 198, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    background: #fff;
    transition: all 0.3s ease;
    text-transform: uppercase;
    color: #000;
}

.diz-game .letter-box.filled {
    background: #f3f3f3;
    border-color: #999;
    transform: scale(1.05);
}

.diz-game .letter-box.active {
    border-color: #ffc107;
    background: rgba(255, 224, 138, 0.24);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}

.diz-game .letter-box.correct {
    background: #4ecdc4;
    border-color: #4ecdc4;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.6);
}

.diz-game .letter-box.wrong {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: #fff;
    animation: diz-shake 0.5s ease-in-out;
}

@keyframes diz-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* Giriş Alanı */
.diz-game .type-area {
    display: flex;
    justify-content: center;
    margin: 20px 0 0px 0px;
    padding: 20px 0px 0px 0px;
    border-radius: 15px;
}

.diz-game .answer-input {
    width: 320px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    padding: 15px 20px;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    background: #f3f3f3;
    color: #000;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}

.diz-game .answer-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 6px 20px rgba(0, 0, 0, 0.2);

}

.diz-game .answer-input::placeholder {
    color: #9ca3af;
    text-transform: none;
}

.diz-game .answer-input.correct {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.diz-game .answer-input.wrong {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* İpucu Alanı */
.diz-game .hint-display {
    border-radius: 10px;
    padding: 12px;
    margin: 15px 0;
    font-size: 0.9em;
    color: #3d3d3d;
    background: #fff3cd;
    text-align: center;
    border: 1px solid #ffc107;
}

/* Loading Overlay */
.diz-game .diz-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 14px;
}

.diz-game .diz-loading-overlay.active {
    display: flex;
}

.diz-game .diz-loading-content {
    text-align: center;
}

.diz-game .diz-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: diz-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes diz-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.diz-game .diz-loading-text {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
}

/* Sonuç Mesajı */
.diz-game .result-message {
    margin: 10px 0 0;
    min-height: 40px;
    text-align: center;
}

.diz-game .correct-answer {
    color: #4ecdc4;
    font-weight: 700;
}

.diz-game .wrong-answer {
    color: #ff6b6b;
    font-weight: 700;
}

/* Oyun Bitiş Ekranı - base.css kullanılıyor, ek stil gerekmiyor */

/* İpucu Butonu */
.diz-game .hint-btn {
    background: #f97316;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.diz-game .hint-btn:hover {
    background: #ea580c;
}

.diz-game .hint-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Diz Butonlar Container */
.diz-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
    max-width: 400px;
}

/* İpucu Butonu - Yasak Kelime Stili */
.diz-hint-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: 0;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.diz-hint-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.diz-hint-btn:disabled,
.diz-hint-btn.used {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* İpucu Alanı */
.diz-game .answer-boxes {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #38bdf8;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 400px;
    text-align: center;
}

.diz-game .hint-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.diz-game .hint-icon {
    font-size: 32px;
}

.diz-game .hint-text {
    font-size: 16px;
    font-weight: 500;
    color: #0369a1;
    line-height: 1.5;
}

/* Kelime Bilgi Modalı - Alttan Açılan */
.word-info-box {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
    padding: 25px 30px 35px;
    box-shadow: 0 -10px 40px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.word-info-box.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.word-info-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.word-info-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.word-info-content {
    color: #fff;
}

.word-info-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.word-info-description {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 480px) {
    .diz-game .letter-card {
        width: 45px;
        height: 45px;
        font-size: 1.5em;
    }

    .diz-game .letter-box {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .diz-game .answer-input {
        width: 100%;
        max-width: 280px;
    }

    .diz-hint-btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .word-info-box {
        padding: 20px 20px 30px;
        max-width: 100%;
        left: 0;
        transform: translateY(100%);
    }

    .word-info-box.show {
        transform: translateY(0);
    }

    .word-info-title {
        font-size: 22px;
    }

    .word-info-description {
        font-size: 14px;
    }
}
