/* ==================== */
/* CRICKET SCORER */
/* ==================== */

.cricket-scorer-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.scorer-content {
    padding: var(--spacing-lg);
}

/* Score Display */
.score-display {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.score-main {
    display: flex;
    justify-content: space-around;
    margin-bottom: var(--spacing-md);
}

.runs-display,
.wickets-display {
    display: flex;
    flex-direction: column;
}

.runs-label,
.wickets-label,
.overs-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.runs-value,
.wickets-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.overs-display {
    font-size: 1.25rem;
    font-weight: 600;
}

.overs-value {
    margin-left: 0.5rem;
    font-size: 1.5rem;
}

/* Scoring Buttons */
.scoring-section {
    margin-bottom: var(--spacing-lg);
}

.scoring-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.scoring-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.extras-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.score-btn {
    padding: 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-family);
}

.runs-btn {
    background: var(--primary-green);
    color: white;
}

.runs-btn:hover {
    background: var(--primary-green-dark);
    transform: scale(1.05);
}

.runs-btn:active {
    transform: scale(0.95);
}

.extra-btn {
    background: var(--orange);
    color: white;
}

.extra-btn:hover {
    background: #E67E22;
    transform: scale(1.05);
}

.wicket-btn {
    background: var(--red);
    color: white;
}

.wicket-btn:hover {
    background: #C0392B;
    transform: scale(1.05);
}

/* Ball History */
.ball-history-section {
    margin-bottom: var(--spacing-lg);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.history-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.ball-history {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    min-height: 100px;
    max-height: 150px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.ball-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.ball-run {
    background: var(--primary-green);
    color: white;
}

.ball-extra {
    background: var(--orange);
    color: white;
    font-size: 0.75rem;
}

.ball-wicket {
    background: var(--red);
    color: white;
}

.over-separator {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: 0 0.25rem;
}

/* Statistics */
.stats-section {
    margin-bottom: var(--spacing-lg);
}

.stats-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.stat-item {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

/* Scorer Actions */
.scorer-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

/* Responsive */
@media (max-width: 768px) {
    .scoring-buttons {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .runs-value,
    .wickets-value {
        font-size: 2rem;
    }
}