/* ==========================================================================
   Score Progression Graph
   ========================================================================== */

.score-graph-section {
    margin: 20px 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    max-width: 100%;
}

.graph-toggle {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.graph-toggle:hover {
    background-color: #357abd;
}

.graph-toggle-icon {
    transition: transform 0.3s ease;
}

.graph-toggle-icon.expanded {
    transform: rotate(180deg);
}

.graph-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.graph-content.expanded {
    max-height: 600px;
}

.graph-canvas-container {
    padding: 20px;
}

#scoreProgressionChart {
    max-height: 400px;
    max-width: 100%;
}

/* --------------------------------------------------------------------------
   Graph Mode Toggle
   -------------------------------------------------------------------------- */

.graph-mode-toggle {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px 0;
    flex-wrap: wrap;
}

.graph-mode-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
    color: var(--text-color);
    font-size: 0.9em;
    cursor: pointer;
    transition: var(--transition);
}

.graph-mode-btn:hover {
    background-color: var(--table-stripe);
}

.graph-mode-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* --------------------------------------------------------------------------
   Event Info Panel (shows on hover instead of tooltip)
   -------------------------------------------------------------------------- */

.event-info-panel {
    margin: 0 20px 16px;
    padding: 10px 14px;
    background-color: var(--table-stripe);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
    min-height: 3.5em;
}

.event-info-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 12px;
}

.event-info-score {
    font-weight: bold;
    margin-right: 12px;
}

.event-info-details {
    color: var(--text-color);
}

.event-info-hint {
    color: #888;
    font-style: italic;
    font-size: 0.9em;
}

/* Team colors for event info */
.event-team-a {
    color: var(--team-a-color);
}

.event-team-b {
    color: var(--team-b-color);
}
