/* ===== VS MODE STYLES ===== */

/* VS Button on PD Card */
/* VS Button on PD Card */
.vs-mode-btn {
    position: absolute;
    bottom: 25px;
    right: 70px;
    background: linear-gradient(45deg, #ef4444, #f43f5e, #ec4899);
    background-size: 200% 200%;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
    animation: gradientAnim 3s ease infinite, pulse-vs 2s infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.vs-mode-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.7);
    border-color: white;
}

@keyframes gradientAnim {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse-vs {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

/* VS Menu Modal */
.vs-menu-content {
    max-width: 450px;
    width: 90%;
}

.vs-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.vs-tab {
    flex: 1;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vs-tab:hover,
.vs-tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-color: transparent;
}

.vs-section {
    display: none;
}

.vs-section.active {
    display: block;
}

.vs-form-group {
    margin-bottom: 1rem;
}

.vs-form-group label {
    display: block;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    text-align: left;
}

.vs-form-group select,
.vs-form-group input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.vs-form-group input::placeholder {
    color: #94a3b8;
}

.room-code-input {
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
    font-size: 1.5rem !important;
    font-weight: 700;
}

/* Waiting Room */
.waiting-content {
    text-align: center;
}

.room-code-display {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 2px dashed rgba(99, 102, 241, 0.5);
}

.room-code-label {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.room-code-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6366f1;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
}

.waiting-status {
    color: #94a3b8;
    margin: 1rem 0;
    font-size: 1rem;
}

.waiting-players {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.waiting-player {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.waiting-player.host {
    border-color: rgba(234, 179, 8, 0.5);
    background: rgba(234, 179, 8, 0.1);
}

.waiting-player.guest {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.1);
}

.player-icon {
    font-size: 1.5rem;
}

.player-name {
    color: white;
    font-weight: 600;
}

.waiting-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.waiting-buttons button {
    flex: 1;
}

/* VS Game Area */
#vs-game-area {
    min-height: 100vh;
    padding: 1rem;
}

#vs-game-area header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.vs-scoreboard {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.vs-player-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    min-width: 120px;
}

.vs-player-score.local {
    border: 2px solid #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.vs-player-score.opponent {
    border: 2px solid #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.vs-player-name {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.vs-score-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.vs-divider {
    display: flex;
    align-items: center;
    color: #64748b;
    font-weight: 700;
    font-size: 1.2rem;
}

/* VS Game Card */
.vs-game-card {
    max-width: 600px;
    margin: 0 auto;
}

.vs-timer-display {
    font-size: 3rem;
    font-weight: 700;
    color: #22c55e;
    text-align: center;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.vs-timer-display.warning {
    color: #ef4444;
    animation: pulse 0.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* VS Result Modal */
.vs-result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.vs-result-content {
    text-align: center;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.vs-result-content h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
}

.result-scores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border-radius: 12px;
    min-width: 120px;
}

.result-player.you {
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid #22c55e;
}

.result-player.opponent {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
}

.result-name {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.result-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.result-vs {
    color: #64748b;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .vs-scoreboard {
        gap: 1rem;
    }

    .vs-player-score {
        padding: 0.8rem 1rem;
        min-width: 100px;
    }

    .vs-score-value {
        font-size: 1.5rem;
    }

    .room-code-value {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }

    .result-scores {
        flex-direction: column;
        gap: 1rem;
    }

    .result-vs {
        display: none;
    }
}

/* =========================================
   BÃœYÃœK EKRANLAR Ä°Ã‡Ä°N (1600px ve Ã¼zeri)
   ========================================= */
@media (min-width: 1600px) {

    /* VS Game Card */
    .vs-game-card {
        max-width: 900px;
    }

    /* Scoreboard */
    .vs-scoreboard {
        gap: 4rem;
        margin-bottom: 2.5rem;
    }

    .vs-player-score {
        padding: 1.5rem 3rem;
        min-width: 180px;
        border-radius: 16px;
    }

    .vs-player-name {
        font-size: 1.1rem;
    }

    .vs-score-value {
        font-size: 3rem;
    }

    .vs-divider {
        font-size: 1.8rem;
    }

    /* Timer */
    .vs-timer-display {
        font-size: 4.5rem;
        margin-bottom: 1.5rem;
    }

    /* Result Modal */
    .vs-result-content {
        padding: 4rem;
        max-width: 700px;
    }

    .result-icon {
        font-size: 7rem;
    }

    .vs-result-content h2 {
        font-size: 2.8rem;
    }

    .result-player {
        padding: 2rem;
        min-width: 160px;
    }

    .result-score {
        font-size: 3.5rem;
    }

    /* Room Code */
    .room-code-value {
        font-size: 3.5rem;
        letter-spacing: 12px;
    }

    .room-code-display {
        padding: 2rem 3rem;
    }
}

/* Ã‡OK BÃœYÃœK EKRANLAR (2K ve Ã¼zeri) */
@media (min-width: 2400px) {
    .vs-game-card {
        max-width: 1100px;
    }

    .vs-player-score {
        padding: 2rem 4rem;
        min-width: 220px;
    }

    .vs-score-value {
        font-size: 4rem;
    }

    .vs-timer-display {
        font-size: 5.5rem;
    }
}