.basketball-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 140px);
}

.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    background: var(--card-bg, #ffffff);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-top: 5px solid #ea580c; /* Orange color for basketball */
}

.badge {
    display: inline-block;
    background: #ffedd5;
    color: #c2410c;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-content h1 {
    color: var(--heading-color, #111);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    color: var(--text-color, #444);
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero-subtitle {
    margin-top: 1rem !important;
    font-size: 1rem !important;
    color: var(--text-muted, #666) !important;
}

.two-column-layout {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.info-column {
    flex: 1 1 50%;
}

.interactive-column {
    flex: 1 1 40%;
    position: relative;
}

/* Divisions */
.divisions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.division-card {
    background: var(--card-bg, #ffffff);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color, #e5e7eb);
}

.division-card h3 {
    color: #ea580c;
    margin-bottom: 0.5rem;
}

.division-card p {
    font-size: 0.95rem;
    color: var(--text-color, #333);
    margin-bottom: 1rem;
}

.division-card ul {
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-muted, #555);
}

/* Sections */
.venues-section, .teams-section, .sources-section {
    margin-top: 3rem;
}

.venues-section h2, .teams-section h2, .sources-section h2, .players-section h2 {
    color: var(--heading-color, #111);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.venues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.venue-card {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #f97316;
}

.venue-card h4 {
    color: #c2410c;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.venue-card p {
    font-size: 0.85rem;
    color: #475569;
    margin: 0;
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.player-tag {
    background: #fdf2f8;
    color: #be185d;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #fbcfe8;
}

.team-tag {
    background: #f0fdfa;
    color: #0f766e;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #ccfbf1;
}

/* Sources */
.sources-list {
    list-style: none;
    padding: 0;
}

.sources-list li {
    padding: 0.5rem 0;
    color: var(--text-muted, #666);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    font-size: 0.95rem;
}

.sources-list li::before {
    content: "📚";
    margin-right: 0.5rem;
}

/* Interactive Timeline */
.interactive-timeline-section {
    background: var(--card-bg, #ffffff);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color, #e5e7eb);
    position: sticky;
    top: 90px;
}

.map-hint {
    text-align: left;
    color: var(--text-muted, #666);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.filter-controls {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-controls label {
    font-weight: 600;
    color: var(--text-color, #333);
}

.state-select {
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f8fafc;
    color: #333;
    outline: none;
    cursor: pointer;
}

.state-select:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
}

/* Timeline Layout */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-left: 2px solid #fdba74;
    padding-left: 1.5rem;
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    background: #fff7ed;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #fed7aa;
    transition: transform 0.2s, box-shadow 0.2s;
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem - 7px;
    top: 1.2rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ea580c;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #fdba74;
}

.timeline-year {
    font-weight: 700;
    color: #c2410c;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.timeline-champ {
    color: #431407;
    font-weight: 600;
    font-size: 1.2rem;
}

.timeline-empty {
    color: var(--text-muted, #666);
    font-style: italic;
    padding: 1rem;
}

/* Dark Mode Overrides */
body:not(.light-theme) .hero-section,
body:not(.light-theme) .division-card,
body:not(.light-theme) .interactive-timeline-section {
    background: var(--card-bg, #1f2937);
    border-color: #374151;
}

body:not(.light-theme) .venue-card {
    background: #1e293b;
    border-left-color: #f97316;
}

body:not(.light-theme) .venue-card h4 {
    color: #fdba74;
}

body:not(.light-theme) .venue-card p {
    color: #cbd5e1;
}

body:not(.light-theme) .player-tag {
    background: #4c1d95;
    color: #ddd6fe;
    border-color: #5b21b6;
}

body:not(.light-theme) .team-tag {
    background: #134e4a;
    color: #99f6e4;
    border-color: #115e59;
}

body:not(.light-theme) .sources-list li {
    border-bottom-color: #374151;
}

body:not(.light-theme) .state-select {
    background-color: #374151;
    color: #f3f4f6;
    border-color: #4b5563;
}

body:not(.light-theme) .timeline-container {
    border-left-color: #9a3412;
}

body:not(.light-theme) .timeline-item {
    background: #451a03;
    border-color: #78350f;
}

body:not(.light-theme) .timeline-item::before {
    background: #f97316;
    border-color: #1f2937;
    box-shadow: 0 0 0 2px #9a3412;
}

body:not(.light-theme) .timeline-year {
    color: #fdba74;
}

body:not(.light-theme) .timeline-champ {
    color: #ffedd5;
}

@media (max-width: 900px) {
    .divisions-grid {
        grid-template-columns: 1fr;
    }
    .interactive-column {
        position: static;
    }
    .interactive-timeline-section {
        position: static;
    }
}
