/* asmaca.css - ADAM ASMACA OYUN TASARIMI */

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

.asmaca-game .wrap {
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.asmaca-game .area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.asmaca-game .game-begin-content {
    text-align: center;
}

.asmaca-game .game-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Adam Asmaca SVG */
.asmaca-game .hangman-container {
    width: 200px;
    height: 250px;
}

.asmaca-game .hangman-svg {
    width: 100%;
    height: 100%;
}

.asmaca-game .gallows {
    stroke: #374151;
}

.asmaca-game .body-part {
    transition: opacity 0.3s ease;
}

/* İpucu Alanı */
.asmaca-game .hint-container {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: var(--radius);
    padding: 12px 20px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.asmaca-game .hint-label {
    font-size: 14px;
    color: #92400e;
    margin-bottom: 5px;
}

.asmaca-game .hint-text {
    font-size: 16px;
    font-weight: 600;
    color: #78350f;
}

/* Kelime Gösterim */
.asmaca-game .word-display {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.asmaca-game .letter-box {
    width: 45px;
    height: 55px;
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    transition: all 0.3s ease;
}

.asmaca-game .letter-box.revealed {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #16a34a;
    color: white;
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Yanlış Harfler */
.asmaca-game .wrong-letters-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #fef2f2;
    border-radius: 20px;
    min-height: 45px;
}

.asmaca-game .wrong-label {
    font-size: 14px;
    color: #991b1b;
}

.asmaca-game .wrong-letters {
    font-size: 18px;
    font-weight: 600;
    color: #dc2626;
    letter-spacing: 4px;
}

/* Klavye */
.asmaca-game .keyboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 500px;
    padding: 15px;
    background: #f8fafc;
    border-radius: var(--radius);
}

.asmaca-game .key-btn {
    width: 40px;
    height: 45px;
    border: none;
    border-radius: 8px;
    background: white;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.asmaca-game .key-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.asmaca-game .key-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.asmaca-game .key-btn.correct {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.asmaca-game .key-btn.wrong {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* Bitiş Ekranı - Kelime Gösterimi */
.asmaca-game .revealed-word {
    background: #fef3c7;
    padding: 15px 25px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    text-align: center;
}

.asmaca-game .revealed-label {
    font-size: 14px;
    color: #92400e;
    display: block;
    margin-bottom: 5px;
}

.asmaca-game .revealed-text {
    font-size: 24px;
    font-weight: 700;
    color: #78350f;
    letter-spacing: 3px;
}


/* Klavye Kilitleme - Processing durumu */
.asmaca-game .key-btn.processing {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mola Ekranı (Break) */
.asmaca-game .break-content {
    text-align: center;
    padding: 40px 20px;
}

.asmaca-game .break-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.asmaca-game .break-title {
    font-size: 24px;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 10px;
}

.asmaca-game .break-subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 25px;
}

.asmaca-game .break-timer {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.asmaca-game .break-timer-text {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 25px;
}

.asmaca-game #skipBreakBtn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.asmaca-game #skipBreakBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

/* Sidebar Harfler (Yanlış Harfler) */
.sidebar-harfler {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    min-height: 28px;
}

.sidebar-harfler .harf-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    animation: harfPop 0.3s ease;
}

@keyframes harfPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.sidebar-harfler .harfler-placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.harfler-box .quiz-stat-row {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .asmaca-game .letter-box {
        width: 35px;
        height: 45px;
        font-size: 22px;
    }

    .asmaca-game .key-btn {
        width: 32px;
        height: 38px;
        font-size: 14px;
    }

    .asmaca-game .keyboard {
        gap: 4px;
        padding: 10px;
    }

    .asmaca-game .hangman-container {
        width: 150px;
        height: 190px;
    }

    .asmaca-game .break-content {
        padding: 30px 15px;
    }

    .asmaca-game .break-timer {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

