/* Round History Styles */
.round-history-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding: 10px;
}

.history-card {
    background: var(--color-finalscore-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.history-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.round-number {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.history-question-filled {
    font-size: 16px;
    color: var(--color-finalscore);
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.history-question-filled .filled-answer {
    color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin: 0 2px;
}

.history-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}


.history-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.history-meta-item strong {
    font-weight: 600;
}

.player-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
}

@media (max-width: 768px) {
    .round-history-container {
        grid-template-columns: 1fr;
        max-height: 400px;
    }
    
    .history-question-filled {
        font-size: 14px;
    }
}

.history-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-answer-card {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.winner-badge {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 5px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .round-history-container {
        grid-template-columns: 1fr;
        max-height: 400px;
    }
    
    .history-card.expanded {
        grid-column: 1;
    }
}
