/* ====================================================
   Zis și Votat - Game Styles
   ==================================================== */

/* ---- Status Bar ---- */
.status-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    background: rgba(var(--card-bg-rgb, 20, 20, 40), 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
    gap: 1rem;
}
.status-bar.hidden { display: none; }
.room-pill, .timer-pill, .phase-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.phase-badge { background: rgba(255,255,255,0.07); color: var(--text-muted, #aaa); }

/* ---- Loader ---- */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 1rem;
    color: var(--text-muted, #aaa);
}
.premium-loader {
    width: 48px; height: 48px;
    border: 4px solid rgba(236,72,153,0.25);
    border-top-color: #ec4899;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Game Play Styles ---- */
.phase-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeInUp 0.5s ease-out;
}
.phase-card.active {
    background: rgba(236, 72, 153, 0.05);
    border-color: rgba(236, 72, 153, 0.2);
}

.wait-icon { font-size: 4rem; margin-bottom: 1.5rem; animation: floatIcon 3s infinite; }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Timer */
.timer-circle {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    border: 5px solid #ec4899;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; font-weight: 900; color: #fff;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}
.timer-circle.urgent { border-color: #ef4444; color: #ef4444; animation: pulseUrgent 1s infinite; }
@keyframes pulseUrgent { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* Card Display */
.card-display {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 3px solid #ec4899;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px rgba(251,191,36,0.1);
    position: relative;
    overflow: hidden;
}
.card-display::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(251,191,36,0.05) 0%, transparent 70%);
}
.card-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

/* Voting Buttons */
.vote-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}
.vote-btn {
    width: 60px; height: 60px;
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.vote-btn:hover:not(.disabled) {
    transform: scale(1.1);
    background: var(--primary);
    border-color: #fff;
    box-shadow: 0 5px 15px rgba(59,130,246,0.4);
}
.vote-btn.disabled { opacity: 0.3; cursor: default; }

/* Result Row */
.result-row {
    display: grid;
    grid-template-columns: 100px 1fr 80px;
    align-items: center;
    padding: 1.25rem 1rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 1rem;
}
.result-player { font-weight: 800; color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-card { font-size: 0.95rem; color: #fff; font-style: italic; line-height: 1.4; }
.result-score { font-weight: 900; color: #ec4899; font-size: 1.1rem; text-align: right; }

@media (max-width: 500px) {
    .result-row {
        grid-template-columns: 1fr auto;
        padding: 1rem;
        gap: 0.25rem;
    }
    .result-player { font-size: 0.9rem; }
    .result-score { font-size: 1rem; }
    .result-card {
        grid-column: 1 / -1;
        padding-top: 0.5rem;
        font-size: 0.85rem;
        border-top: 1px solid rgba(255,255,255,0.03);
        margin-top: 0.25rem;
    }
}

/* History entry */
.history-entry {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.history-round { display: block; margin-bottom: 0.5rem; color: var(--primary); font-size: 0.8rem; text-transform: uppercase; }
.history-player-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; margin-bottom: 0.25rem; }
.history-player-row .player-name { font-weight: 700; color: #fff; width: 100px; }
.history-player-row .player-card { flex: 1; color: #9ca3af; padding: 0 0.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-player-row .player-points { font-weight: 600; color: #ec4899; }

/* Modal specific styles */
.speaking-modal-icon { font-size: 4rem; margin-bottom: 1rem; }

/* Utils */
.voted-status { font-weight: 600; color: var(--text-muted); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
