/* assets/css/multiplayer.css - APK & Mobil Uyumlu Kompakt Tasarım, Canlı Lobi ve Sesli Geri Sayım */

/* 1. ANA SAYFA OYUN KARTLARI (APK & MOBİL UYUMLU KOMPAKT TASARIM) */
.game-modes-wrapper {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 6px 12px;
    box-sizing: border-box;
}

.game-modes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: stretch;
}

/* Tek Mod (Çok Oyunculu Pasifken Ortalanmış Şık Tek Kart) */
.game-modes-grid.single-mode {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
}

.game-mode-card {
    position: relative;
    background: #ffffff;
    border-radius: 22px;
    padding: 22px 18px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: default;
    box-sizing: border-box;
}

.game-mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0284c7, #2563eb);
    transition: height 0.2s ease;
}

.game-mode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

/* Dokunmatik / Mobil Basma Efekti (APK Native Feel) */
.game-mode-card:active {
    transform: scale(0.985);
}

/* Bireysel Kart Teması */
.game-mode-card.card-solo::before {
    background: linear-gradient(90deg, #0284c7 0%, #2563eb 100%);
}
.game-mode-card.card-solo:hover {
    border-color: #93c5fd;
}

/* Çok Oyunculu Kart Teması */
.game-mode-card.card-multiplayer::before {
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 50%, #f59e0b 100%);
}
.game-mode-card.card-multiplayer {
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
    border-color: #e9d5ff;
}
.game-mode-card.card-multiplayer:hover {
    border-color: #c084fc;
    box-shadow: 0 14px 35px rgba(139, 92, 246, 0.14);
}

/* Rozetler */
.mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 14px;
    margin-bottom: 12px;
}

.badge-solo {
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.badge-multiplayer {
    background: #fdf2f8;
    color: #db2777;
    border: 1px solid #fbcfe8;
}

.live-pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Mod İkonları */
.mode-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease;
}

.game-mode-card:hover .mode-icon-wrapper {
    transform: scale(1.06) rotate(3deg);
}

.icon-solo {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0284c7;
}

.icon-multi {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #9333ea;
}

.mode-title {
    font-size: 1.18rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.mode-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0 0 14px 0;
    min-height: 36px;
}

/* Canlı Sayaç Şeridi (Çok Oyunculu Kart İçi) */
.live-lobby-ticker {
    width: 100%;
    background: rgba(243, 232, 255, 0.7);
    border: 1px dashed #d8b4fe;
    border-radius: 12px;
    padding: 6px 10px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
    color: #7e22ce;
    gap: 4px;
    box-sizing: border-box;
}

.ticker-time {
    font-family: 'Overpass Mono', monospace;
    font-size: 0.88rem;
    font-weight: 900;
    color: #db2777;
    background: #ffffff;
    padding: 2px 7px;
    border-radius: 8px;
    border: 1px solid #fbcfe8;
    letter-spacing: 0.3px;
}

/* Oyna Butonları */
.mode-play-btn {
    width: 100%;
    padding: 11px 16px;
    border-radius: 14px;
    border: none;
    font-weight: 800;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
    font-family: inherit;
}

.btn-play-solo {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}
.btn-play-solo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}

.btn-play-multi {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.28);
}
.btn-play-multi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(236, 72, 153, 0.38);
}

/* MOBİL & APK CİHAZ OPTİMİZASYONLARI */
@media (max-width: 768px) {
    .game-modes-wrapper {
        padding: 4px 8px;
        max-width: 100%;
    }

    .game-modes-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .game-mode-card {
        border-radius: 18px;
        padding: 16px 14px;
    }

    .mode-icon-wrapper {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
        border-radius: 14px;
        margin-bottom: 8px;
    }

    .mode-title {
        font-size: 1.05rem;
        margin-bottom: 4px;
    }

    .mode-desc {
        font-size: 0.78rem;
        min-height: auto;
        margin-bottom: 10px;
        line-height: 1.35;
    }

    .live-lobby-ticker {
        padding: 5px 8px;
        margin-bottom: 10px;
        font-size: 0.74rem;
    }

    .mode-play-btn {
        padding: 10px 14px;
        font-size: 0.88rem;
        border-radius: 12px;
    }
}

/* 2. ÇOK OYUNCULU LOBİ MODALI (MULTIPLAYER LOBBY MODAL) */
.mp-lobby-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.mp-lobby-card {
    background: #ffffff;
    width: 100%;
    max-width: 580px;
    border-radius: 26px;
    padding: 26px 20px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
    animation: lobbyPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lobbyPop {
    0% { transform: scale(0.92) translateY(15px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.mp-lobby-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mp-lobby-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Dijital Blok Geri Sayım Saati */
.lobby-digital-countdown-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px 0 10px 0;
}

.countdown-block {
    background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
    border: 1.5px solid #d8b4fe;
    border-radius: 14px;
    padding: 8px 12px;
    min-width: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.12);
}

.countdown-val {
    font-family: 'Overpass Mono', monospace;
    font-size: 1.6rem;
    font-weight: 900;
    color: #7e22ce;
    line-height: 1;
}

.countdown-lbl {
    font-size: 0.64rem;
    font-weight: 800;
    color: #a855f7;
    text-transform: uppercase;
    margin-top: 3px;
}

.countdown-sep {
    font-family: 'Overpass Mono', monospace;
    font-size: 1.4rem;
    font-weight: 900;
    color: #c084fc;
}

/* Son 10 Saniye Gerilim Efekti */
.mp-lobby-card.is-urgent {
    animation: urgentPulse 1s infinite alternate;
    border-color: #f43f5e;
}

@keyframes urgentPulse {
    0% { box-shadow: 0 0 15px rgba(244, 63, 94, 0.25); }
    100% { box-shadow: 0 0 40px rgba(244, 63, 94, 0.55); }
}

.countdown-block.is-urgent-block {
    background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
    border-color: #f43f5e;
    animation: digitPulse 0.5s infinite alternate;
}
.countdown-block.is-urgent-block .countdown-val {
    color: #e11d48;
}

@keyframes digitPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

/* Ekran Ortasında Büyük 10..1 Geri Sayım Flashı */
.final-countdown-overlay-number {
    font-family: 'Overpass Mono', monospace;
    font-size: 3.2rem;
    font-weight: 900;
    color: #e11d48;
    line-height: 1;
    margin: 6px 0;
    animation: zoomCountdown 0.9s ease infinite;
    text-shadow: 0 0 20px rgba(225, 29, 72, 0.45);
}

@keyframes zoomCountdown {
    0% { transform: scale(0.7); opacity: 0; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.lobby-status-text {
    font-size: 0.9rem;
    font-weight: 800;
    color: #475569;
    margin-bottom: 10px;
}

/* Kalabalık Lobi Göstergesi Şeridi */
.crowd-stats-strip {
    background: linear-gradient(90deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 800;
    color: #166534;
    margin-bottom: 12px;
}

/* Lobi Oyuncu Listesi Gridi */
.lobby-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 8px;
    margin: 10px 0 16px 0;
    max-height: 200px;
    overflow-y: auto;
    padding: 6px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.lobby-player-chip {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 9px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.03);
}

.lobby-player-chip.is-me {
    border-color: #8b5cf6;
    background: #faf5ff;
}

.lobby-player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.lobby-player-name {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0f172a;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lobby-ready-pill {
    font-size: 0.62rem;
    font-weight: 800;
    color: #16a34a;
    background: #dcfce7;
    padding: 2px 6px;
    border-radius: 8px;
    margin-top: 3px;
}

/* Lobi Rumuz Değiştirme Alanı */
.lobby-nickname-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}
.lobby-nickname-input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.85rem;
    outline: none;
    font-family: inherit;
    font-weight: 700;
}

/* 3. OYUN İÇİ CANLI RAKİP SKOR TABLOSU (LIVE RIVAL RANKINGS BAR) */
.live-rivals-bar {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 12px auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 14px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.rivals-scroll-list {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: none;
}
.rivals-scroll-list::-webkit-scrollbar {
    display: none;
}

.rival-chip-mini {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #1e293b;
    white-space: nowrap;
    flex-shrink: 0;
}

.rival-chip-mini.is-leader {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}
.rival-chip-mini.is-me {
    border-color: #c084fc;
    background: #faf5ff;
    color: #7e22ce;
}

.rival-mini-avatar {
    font-size: 0.88rem;
}
.rival-mini-score {
    font-family: 'Overpass Mono', monospace;
    font-weight: 900;
    color: #2563eb;
}

/* 4. ÇOK OYUNCULU TUR SONU KÜRSÜSÜ (MATCH PODIUM) */
.mp-podium-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 22px 16px;
    border: 2px solid #e2e8f0;
    text-align: center;
    margin: 14px 0;
}

.mp-podium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    align-items: flex-end;
    margin: 16px 0;
}

.mp-podium-slot {
    background: #f8fafc;
    border-radius: 16px;
    padding: 12px 6px;
    border: 1.5px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mp-podium-slot.rank-1 {
    order: 2;
    background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%);
    border-color: #f59e0b;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.16);
    transform: translateY(-6px);
}

.mp-podium-slot.rank-2 {
    order: 1;
    border-color: #94a3b8;
}

.mp-podium-slot.rank-3 {
    order: 3;
    border-color: #d97706;
}

.mp-podium-trophy {
    font-size: 1.8rem;
    margin-bottom: 2px;
}
.mp-podium-slot.rank-1 .mp-podium-trophy {
    font-size: 2.3rem;
}

.mp-podium-user {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
    word-break: break-all;
}

.mp-podium-pts {
    font-family: 'Overpass Mono', monospace;
    font-weight: 900;
    font-size: 0.8rem;
    color: #2563eb;
}

/* 5. ÇOK OYUNCULU SORU ARASI CANLI ELEME & DEVAM EDEN İSTATİSTİK MODALI */
.mp-interstitial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.mp-interstitial-card {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 26px;
    padding: 26px 20px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    text-align: center;
    position: relative;
    animation: statCardPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes statCardPop {
    0% { transform: scale(0.88) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.mp-interstitial-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.mp-stat-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 16px 0;
}

.mp-stats-dual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.mp-stat-box {
    border-radius: 18px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid transparent;
}

.mp-stat-box.stat-survived {
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}
.mp-stat-box.stat-survived .mp-stat-big-num {
    color: #15803d;
}

.mp-stat-box.stat-eliminated {
    background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
    border-color: #fca5a5;
}
.mp-stat-box.stat-eliminated .mp-stat-big-num {
    color: #dc2626;
}

.mp-stat-icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.mp-stat-big-num {
    font-family: 'Overpass Mono', monospace;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.1;
}

.mp-stat-label {
    font-size: 0.76rem;
    font-weight: 800;
    color: #475569;
    margin-top: 4px;
}

.mp-stat-summary-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 16px;
}

/* İlerleme Çubuğu */
.mp-interstitial-progress-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.mp-interstitial-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
    transition: width 2.8s linear;
}

.mp-interstitial-next-text {
    font-size: 0.82rem;
    font-weight: 800;
    color: #475569;
}

/* 6. SEYİRCİ MODU (SPECTATOR MODE) BİLDİRİM ŞERİDİ & KİLİTLİ ŞIKLAR */
.mp-spectator-banner {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border: 1.5px solid #fca5a5;
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.08);
    animation: fadeInDown 0.3s ease;
}

.mp-spectator-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.mp-spectator-text {
    font-size: 0.8rem;
    color: #9f1239;
    line-height: 1.4;
    text-align: left;
}

.options-grid.spectator-locked .option-card {
    cursor: not-allowed !important;
    opacity: 0.75;
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}
.options-grid.spectator-locked .option-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #e2e8f0 !important;
}
