/* base.css - ORTAK OYUN İSKELETİ (loading + word-info + sol panel UI) */

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

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

.taboo-game .area {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
}
.bul-game .area {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
}
.sirala-game .area {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
}
.diz-game .area {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
}

/* Genel area stili (tüm oyunlar için) */
.wrap .area {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
    min-height: 150px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-around;
    text-align: center;
}

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

.game-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 15px;
}

.game-description {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 30px;
    text-align: center;
}

.game_ikons {
    margin-bottom: 20px;
}

.game_ikons img {
    max-width: 120px;
    height: auto;
}

/* Click game için özel wrap */
.click-game { --gap: 10px; --radius: 10px; }
.click-game * { box-sizing: border-box; }

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

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

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

/* Sol panel ortak butonlar */
.yenileBTN{
    width: 100%;
    padding: 18px;
    font-size: 18px;
    background: #ff6b6b;
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}
.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;
}

/* Sol panel ortak kutular */
.gameci_skor_baslik{
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
    color: #000;
}

.gameci_skor{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 15px;
    color: white;
}
.gameci_skor .gameci_skor_baslik{
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.gameci_skor .gameci_skor_value{
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}


.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;
}
.gameci_durum{
    position: relative;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 15px;
}
.hh_oyun_bilgi .gameci_durum:last-child{
    margin-bottom: 0px;
}
.gameci_durum div{
    font-size: 22px;
    font-weight: 800;
    color: #000;

}

.gameci_timer_baslik{
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
    color: #000;
}
.gameci_timer{
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}
.gameci_timer1{
    font-size: 36px;
    font-weight: 800;
    color: #000;
}
.gameci_timer2{
    width: 100%;
    height: 6px;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    background: #e0e0e0;
    overflow: hidden;
}
.gameci_timer3{
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #22c55e;
    /* Smooth animasyon için transition kaldırıldı - JS'den dinamik olarak ayarlanacak */
    transition: background-color 0.3s ease;
}

/* =========================
   Loading Overlay (ORTAK)
   ========================= */
.taboo-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;
}
.taboo-loading-overlay.active{ display:flex; }
.taboo-loading-content{ text-align:center; }

.taboo-loading-spinner{
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: tabooSpin 1s linear infinite;
    margin: 0 auto 15px;
}
@keyframes tabooSpin{
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.taboo-loading-text{
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
}

/* =========================
   Word Info Box (ORTAK)
   ========================= */
.word-info-box {
    position: fixed;
    bottom: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.word-info-box.show { bottom: 0; }

.word-info-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    padding: 0;
    line-height: .5;
}
.word-info-close:hover { background: rgba(0, 0, 0, 0.2); }

.word-info-content { padding-right: 30px; }

.word-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.word-info-icon {
    font-size: 20px;
}
.word-info-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.word-info-word {
    font-size: 28px;
    font-weight: 800;
    text-transform: capitalize;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.word-info-divider {
    height: 1px;
    background: rgba(255,255,255,0.3);
    margin: 12px 0;
}

.word-info-meaning-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 6px;
}

.word-info-meaning {
    font-size: 15px;
    line-height: 1.6;
    color: #f0f0f0;
}

.word-info-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}
.word-info-description {
    font-size: 16px;
    line-height: 1.6;
    color: #f0f0f0;
}

/* =========================
   End Screen (ORTAK)
   ========================= */
.game-end-content {
    text-align: center;
    padding: 40px 20px;
}
.game-end-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 35px;
    color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.game-end-emoji {
    font-size: 80px;
    margin-bottom: 30px;
}

.game-end-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f9fafb;
    border-radius: 16px;
    padding: 25px;
    margin: 20px auto;
    max-width: 500px;
}
.end-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 10px;
}
.end-stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}
.end-stat-value {
    font-size: 21px;
    font-weight: 700;
}

.rules_baslik{
    font-weight: 700; font-size: 16px; margin-bottom: 10px; color: #000;
}
.rules_icerik{
    line-height: 1.8; font-size: 14px; color: #666;
}
#waitingMessage{
    display: none; text-align: center; margin-top: 20px; padding: 15px; background: #fff3cd; border: 2px solid #ffc107; border-radius: 10px; font-size: 16px; font-weight: 600; color: #856404;
}

/* ═══════════════════════════════════════════════════════
   OYUN SONUÇ EKRANI (Tüm oyunlar için ortak)
   4 Durum: timeout, wrong, completed_success, completed_fail
   ═══════════════════════════════════════════════════════ */

/* game-end-title gizle - artık kullanılmıyor */
.game-end-title {
    display: none !important;
}

/* Başlangıç ekranı başlığı */
.game-start-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px 0;
    text-align: center;
}

/* Durum Mesajı - Ana Container */
.game-end-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 30px;
    text-align: center;
}

/* Status İkon */
.game-end-status .status-icon {
    font-size: 72px;
    line-height: 1;
    animation: statusIconBounce 0.6s ease-out;
}

@keyframes statusIconBounce {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(5deg); }
    70% { transform: scale(0.9) rotate(-3deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Status Görseli (emoji yerine resim kullanılırsa) */
.game-end-status .status-icon img.status-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Status Emoji (fallback) */
.game-end-status .status-icon .status-emoji {
    font-size: 72px;
}

/* Status Text - Ana mesaj */
.game-end-status .status-text {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.5;
    max-width: 300px;
}

/* Başarılı durum renkleri */
.game-end-status.success .status-text {
    color: #059669;
}

/* Başarısız durum renkleri */
.game-end-status.failed .status-text {
    color: #dc2626;
}

.game-end-status.failed .status-text {
    color: #000;
}

/* Sebep Mesajı (opsiyonel) */
.game-end-reason {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: #f9fafb;
    border-radius: 8px;
    display: none;
}

/* Word info responsive (ortak) */
@media (max-width: 400px){
    .word-info-box { width: 95%; padding: 15px 20px; }
    .word-info-title { font-size: 20px; }
    .word-info-description { font-size: 14px; }

    .game-end-status { padding: 20px; }
    .game-end-status .status-icon { font-size: 42px; }
    .game-end-status .status-text { font-size: 16px; }
}

/* ===== İHBAR (REPORT) SİSTEMİ ===== */

/* Sidebar İhbar Butonu */
.sidebar-ihbar {
    margin-top: 15px;
}

.sidebar-ihbar-content {
    padding: 0;
}

.sidebar-ihbar-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 10px;
    color: #d97706;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-ihbar-btn:hover {
    background: #fde68a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}

.sidebar-ihbar-btn:active {
    transform: translateY(0);
}

.sidebar-ihbar-btn i {
    font-size: 14px;
}

/* İhbar Modal */
.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.report-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.report-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.report-modal-icon {
    width: 60px;
    height: 60px;
    background: #fef3c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    color: #d97706;
}

.report-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.report-modal-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 20px;
}

.report-modal-buttons {
    display: flex;
    gap: 10px;
}

.report-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-modal-btn.cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.report-modal-btn.cancel:hover {
    background: #e5e7eb;
}

.report-modal-btn.confirm {
    background: #d97706;
    color: white;
}

.report-modal-btn.confirm:hover {
    background: #b45309;
}

.report-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Report Toast */
.report-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #22c55e;
    color: white;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-toast.error {
    background: #ef4444;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.report-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .sidebar-ihbar-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .report-modal-content {
        padding: 24px 20px;
    }

    .report-modal-title {
        font-size: 18px;
    }
}


