/**
 * Bul Bakalım (Altı) Oyunu CSS
 * /oyun/bul-bakalim
 */

/* Base */
.alti-game {
    --gap: 10px;
    --radius: 10px;
}

.alti-game * {
    box-sizing: border-box;
}

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


.alti-game .area {
    position: relative;
    background: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px;
}

/* Game Container */
.alti-game .game-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

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

.alti-game .game-begin-content .emoji {
    font-size: 80px;
    margin-bottom: 20px;
}

.alti-game .game-begin-content h1 {
    font-size: 36px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 15px;
}

.game-end-stats{
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    width: 100% !important;
}
.alti-game .game-begin-content p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 40px;
}

/* Letter Boxes - Harf Kutuları */
.alti-game .letter-boxes {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.game-end-content {
    text-align: center;
    padding: 40px 20px 0px 20px;
}
.alti-game .letter-box {
    width: 60px;
    height: 60px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.alti-game .letter-box.revealed {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.alti-game .letter-box.hint {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.alti-game .letter-box.wrong {
    background: #fef2f2;
    border-color: #ef4444;
    animation: shake 0.5s ease;
}

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

/* Input Alanı */
.alti-game .input-area {
    text-align: center;
    margin-top: 20px;
}

.alti-game .input-area input {
    width: 100%;
    max-width: 300px;
    padding: 15px 20px;
    font-size: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    transition: border-color 0.3s ease;
}

.alti-game .input-area input:focus {
    outline: none;
    border-color: #667eea;
}

.alti-game .input-area button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 15px auto 0;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.alti-game .input-area button:hover {
    background: #5a67d8;
}

.alti-game .input-area button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Mesaj Alanı */
.alti-game .alti-message {
    margin-top: 15px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: none;
}

.alti-game .alti-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
}

.alti-game .alti-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

.alti-game .alti-message.info {
    display: block;
    background: #dbeafe;
    color: #1e40af;
}

.alti-game .alti-input-info {
    margin-top: 10px;
    font-size: 14px;
    color: #6b7280;
}

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

.alti-game .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: alti-spin 1s linear infinite;
}

@keyframes alti-spin {
    to {
        transform: rotate(360deg);
    }
}

.alti-game .loading-text {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
}

/* Bitiş Ekranı - base.css'deki ortak stili kullanıyoruz */

/* Word Info Box - base.css'deki ortak stili kullanıyoruz */

/* Responsive */
@media (max-width: 500px) {
    .alti-game .game-begin-content {
        padding: 30px 15px;
    }

    .alti-game .game-begin-content h1 {
        font-size: 28px;
    }

    .alti-game .letter-box {
        width: 40px;
        height: 50px;
        font-size: 22px;
    }

    .alti-game .input-area input {
        font-size: 16px;
        padding: 12px 15px;
    }
}

