/**
 * Game State UI Styles
 * Agent cards, question display, round info - Dark Mode Theme
 */

/* ============================================
   GAME STATUS BADGE
   ============================================ */

.game-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.game-status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-init {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}
.status-init::before { background: #64748b; }

.status-awaiting-answers {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}
.status-awaiting-answers::before { 
    background: #f59e0b;
    animation: pulse-yellow 1s infinite;
}

.status-processing {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}
.status-processing::before { 
    background: #6366f1;
    animation: pulse-blue 1s infinite;
}

.status-resolved {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.status-resolved::before { background: #10b981; }

.status-finished {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.status-finished::before { background: #ef4444; }

@keyframes pulse-blue {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   AGENT CARDS
   ============================================ */

#agents-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agent-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #1e293b;
    border-radius: 12px;
    border-left: 4px solid #6366f1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.agent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.agent-card.agent-leader {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, #1e293b 100%);
    border-left-color: #f59e0b;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.2);
}

.agent-card.agent-leader .agent-rank {
    background: #f59e0b;
    color: #0f172a;
}

.agent-card.agent-disconnected {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.agent-rank {
    width: 32px;
    height: 32px;
    background: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    flex-shrink: 0;
}

.agent-info {
    flex: 1;
    min-width: 0;
}

.agent-name {
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.agent-connection-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.agent-connection-status.online {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.agent-connection-status.offline {
    background: #ef4444;
}

.agent-type {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-stats {
    display: flex;
    gap: 16px;
    text-align: center;
}

.agent-position, .agent-score {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.no-agents {
    text-align: center;
    color: #64748b;
    padding: 40px 20px;
    font-style: italic;
}

/* ============================================
   CURRENT QUESTION
   ============================================ */

#current-question {
    margin-top: 20px;
}

.question-card {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.question-text {
    font-size: 16px;
    font-weight: 500;
    color: #f1f5f9;
    line-height: 1.5;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #334155;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.question-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #0f172a;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.question-option:hover {
    background: #334155;
    border-color: #475569;
}

.option-letter {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.option-text {
    font-size: 14px;
    color: #cbd5e1;
}

.no-question {
    text-align: center;
    color: #64748b;
    padding: 30px 20px;
    font-style: italic;
    background: #0f172a;
    border-radius: 8px;
}

/* ============================================
   ROUND INFO
   ============================================ */

#round-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.round-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.round-value {
    font-size: 18px;
    font-weight: 700;
}

/* ============================================
   GAME STATE PANEL
   ============================================ */

.game-state-panel {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #334155;
}

.game-state-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #334155;
}

.game-state-title {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .agent-card {
        padding: 12px;
    }
    
    .agent-name {
        font-size: 14px;
    }
    
    .agent-stats {
        gap: 12px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .question-text {
        font-size: 14px;
    }
    
    .question-option {
        padding: 10px 12px;
    }
    
    .option-letter {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    #round-info {
        padding: 6px 12px;
    }
    
    .round-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .agent-stats {
        gap: 8px;
    }
    
    .agent-rank {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .stat-value {
        font-size: 16px;
    }
}
