
:root {
    --primary-color: #134686;
    --secondary-color: #ED3F27;
    --accent-color: #FEB21A;
    --text-color: #2c2c2c;
    --background-color: #f8f9fa;
    --primary-rgb: 19, 70, 134;
}

body {
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.3rem;
}

.navbar .nav-link {
    color: rgba(255,255,255, 0.85) !important;
    font-weight: 500;
    transition: all 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffffff !important;
    background: rgba(255,255,255, 0.15);
    border-radius: 4px;
}

.navbar-toggler {
    border-color: rgba(255,255,255, 0.3) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-logo {
    height: 36px;
    width: auto;
    margin-right: 0.5rem;
    animation: spin3d 6s linear infinite;
    transform-style: preserve-3d;
}

@keyframes spin3d {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.10), rgba(0,0,0,0.45)), linear-gradient(135deg, #FEB21A 0%, #ED3F27 50%, #134686 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Section tabs */
.section-tabs {
    background: white;
    border-bottom: 2px solid #dee2e6;
    padding: 0;
}

.section-tabs .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s;
}

.section-tabs .nav-link:hover {
    color: var(--primary-color) !important;
    border-bottom-color: rgba(var(--primary-rgb), 0.3);
    background: transparent;
}

.section-tabs .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
    background: transparent;
    font-weight: 600;
}

.tab-content {
    min-height: 400px;
}

/* Standings Table */
.standings-table thead {
    background: var(--primary-color);
    color: #ffffff;
}

.standings-table tbody tr:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.champion-row {
    background: rgba(212, 168, 67, 0.1) !important;
    border-left: 4px solid var(--secondary-color);
}

.champion-row td:first-child {
    font-weight: 700;
}

/* Schedule Cards */
.schedule-card {
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s;
}

.schedule-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.schedule-card.final {
    border-left-color: var(--secondary-color);
}

.score-winner {
    font-weight: 700;
    color: var(--primary-color);
}

.badge-final {
    background: var(--secondary-color);
    color: #ffffff;
}

.badge-upcoming {
    background: var(--accent-color);
    color: white;
}

/* Rules Accordion */
.rules-accordion .accordion-button:not(.collapsed) {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
    font-weight: 600;
}

.rules-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

/* Playoff Bracket */
.playoff-round {
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.playoff-round h4 {
    color: var(--primary-color);
    font-weight: 700;
}

.matchup-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.matchup-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.matchup-team {
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.matchup-team.winner {
    background: rgba(var(--primary-rgb), 0.08);
    font-weight: 700;
}

.matchup-team + .matchup-team {
    border-top: 1px solid #dee2e6;
}

.champion-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.champion-banner h3 {
    font-weight: 800;
}

/* All-Star Section */
.allstar-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.allstar-event {
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    margin-bottom: 0.75rem;
}

/* Inactive Notice */
.inactive-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
}

.inactive-notice i {
    font-size: 3rem;
    color: #856404;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #ffffff;
}

footer a {
    color: rgba(255,255,255, 0.8);
}

footer a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .section-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}
