/* Player Cards Specific Styles */

header {
    margin-bottom: var(--space-8);
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.header-content {
    text-align: left;
}

.header-content h1 {
    font-size: var(--font-size-3xl);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    margin: 0;
}



.search-section {
    max-width: 600px;
    margin: var(--space-8) auto;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.search-input {
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: var(--transition-all);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* History Layout */
.history-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.rounds-section h2,
.details-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.rounds-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding-right: 10px;
}

.round-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.round-item:hover {
    border-left-color: var(--primary-color);
    transform: translateX(3px);
}

.round-item.active {
    border-left-color: var(--primary-color);
    background: var(--hover-bg);
    box-shadow: var(--shadow-lg);
}

.round-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.round-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.round-item .round-id {
    font-family: monospace;
    font-size: 13px;
    color: var(--text-muted);
}

/* Round Details */
.round-details {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding-right: 10px;
}

.details-info {
    margin-bottom: 30px;
}

.details-info p {
    margin: 10px 0;
    font-size: 15px;
}

.details-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.status-active {
    background: rgba(72, 187, 120, 0.15);
    color: var(--success-color);
}

.status-cancelled {
    background: rgba(229, 62, 62, 0.15);
    color: var(--error-color);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.bingo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.bingo-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: monospace;
}

.bingo-card .card-stats {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.bingo-canvas {
    border-radius: 8px;
    box-shadow: var(--shadow);
    background: var(--hover-bg);
}

/* Scrollbar Styling */
.rounds-list::-webkit-scrollbar,
.round-details::-webkit-scrollbar {
    width: 8px;
}

.rounds-list::-webkit-scrollbar-track,
.round-details::-webkit-scrollbar-track {
    background: var(--hover-bg);
    border-radius: 4px;
}

.rounds-list::-webkit-scrollbar-thumb,
.round-details::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.rounds-list::-webkit-scrollbar-thumb:hover,
.round-details::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .history-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .rounds-list {
        max-height: 400px;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-actions {
        margin-bottom: var(--space-4);
    }

    .header-content h1 {
        font-size: var(--font-size-2xl);
    }

    .subtitle {
        font-size: var(--font-size-sm);
    }

    .search-section {
        margin: 20px auto;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .bingo-canvas {
        max-width: 100%;
    }
}