/* Base styles */
:root {
    --primary-color: #1a73e8;
    --text-color: #333;
    --background-color: #fff;
    --card-background: #f8f9fa;
    --spacing-unit: 1rem;
    --nav-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Navigation Styles */
.main-nav {
    background: var(--background-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    margin: 4px 0;
    transition: 0.3s;
}

/* Content Wrapper */
.content-wrapper {
    padding-top: var(--nav-height);
    min-height: 100vh;
}

/* Main Content Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-unit);
}

/* Mobile Navigation */
@media (max-width: 767px) {
    /* Disable all hover effects in mobile */
    .nav-links a:hover,
    .nav-links a.active,
    .dropdown:hover .dropdown-content,
    .dropdown-content a:hover,
    .story:hover,
    .read-more:hover,
    .featured-story .read-more:hover,
    .sports-category:hover {
        transform: none;
        box-shadow: none;
        text-decoration: none;
        background-color: transparent;
        color: inherit;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--background-color);
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem;
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Mobile Dropdown Styles */
    .dropdown {
        width: 100%;
    }

    .dropdown > a {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown > a::after {
        content: '▼';
        font-size: 0.8em;
        margin-left: 0.5rem;
    }

    .dropdown.active > a::after {
        content: '▲';
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        padding: 0.5rem 0 0.5rem 1.5rem;
        margin-top: 0;
        border-left: 2px solid var(--primary-color);
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 0.5rem 0.75rem;
        border-bottom: none;
        font-size: 0.95em;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Utility classes */
.error {
    color: #dc3545;
    padding: 1rem;
    background: #f8d7da;
    border-radius: 4px;
    margin: 1rem 0;
}

/* Dropdown Menu - Base Styles */
.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.dropdown > a {
    height: 100%;
    display: inline-flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-color);
    min-width: 160px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
    margin-top: 0.5rem;
    padding-top: 0.5rem; /* Add padding to create safe zone */
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
}

/* Desktop-only hover behavior */
@media (min-width: 768px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content a:hover {
        background-color: #f5f5f5;
        color: var(--primary-color);
    }

    /* Create an invisible safe zone */
    .dropdown-content::before {
        content: '';
        position: absolute;
        top: -0.5rem; /* Match the margin-top */
        left: 0;
        right: 0;
        height: 0.5rem; /* Match the margin-top */
    }
}

/* Sports Categories Grid */
.sports-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 0 2rem 0;
}

.sports-category {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.sports-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sports-category h2 {
    margin: 0 0 0.5rem;
    color: #333;
}

.sports-category p {
    margin: 0 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

.league-links {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.league-link {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.league-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Mobile Navigation Adjustments */
@media (max-width: 767px) {
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 0.5rem 0;
    }
}

/* Base hover effects - Desktop only */
@media (min-width: 768px) {
    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary-color);
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content a:hover {
        background-color: #f5f5f5;
        color: var(--primary-color);
    }

    .sports-category:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .sports-category:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
}

/* Events Styles */
.events-container {
    padding: 0 0 2rem 0;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.event {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.event h2 {
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.event p {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    line-height: 1.5;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.event-time,
.event-location,
.event-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-time::before {
    content: '🕒';
}

.event-location::before {
    content: '🏟️';
}

.event-status {
    text-transform: capitalize;
}

.event-status.completed::before {
    content: '✅';
}

.event-status.scheduled::before {
    content: '📅';
}

.event-status.in_progress::before {
    content: '▶️';
}

.event-status.cancelled::before {
    content: '❌';
}

.event-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.event-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Mobile Events Styles */
@media (max-width: 767px) {
    .event {
        padding: 1rem;
    }

    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .event-link {
        width: 100%;
        text-align: center;
    }
}

/* Event Details Page Styles */
.event-details-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.event-header {
    text-align: center;
    margin-bottom: 2rem;
}

.event-status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: capitalize;
    margin-bottom: 1rem;
}

.event-status-badge.completed {
    background-color: #28a745;
    color: white;
}

.event-status-badge.scheduled {
    background-color: #17a2b8;
    color: white;
}

.event-status-badge.in_progress {
    background-color: #ffc107;
    color: #000;
}

.event-status-badge.cancelled {
    background-color: #dc3545;
    color: white;
}

.event-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.event-header .event-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #666;
}

.teams-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.team {
    flex: 1;
    text-align: center;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.vs {
    font-size: 1.2rem;
    font-weight: 600;
    color: #666;
    padding: 0 2rem;
}

.event-description {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-description h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.event-info {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section li {
    margin-bottom: 0.5rem;
    color: #666;
}

.info-section li strong {
    color: var(--text-color);
    margin-right: 0.5rem;
}

/* Filters Container Styles */
.filters-container {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.team-filter-container {
    margin-bottom: 0.25rem;
}

/* Team Filter Button Container */
.team-filter-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.team-filter-toggle {
    background: var(--card-background);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
    flex: 1;
    height: 100%;
    line-height: 1;
}

.team-filter-toggle:hover {
    background-color: #f8f9fa;
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.team-filter-content {
    margin-top: 0.5rem;
    padding: 1rem;
    background: var(--card-background);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.filter-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.team-select {
    width: 100%;
    max-width: 300px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
}

.team-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Team Chips Styles */
.team-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    min-height: 2rem;
}

.team-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    max-width: 200px;
}

.chip-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chip-remove {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.chip-remove:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chip-remove:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 1px;
}

/* Clear Teams Button - Updated to match toggle button style */
.clear-teams-button {
    background: #fff5f5;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    height: 100%;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-teams-button:hover {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.clear-teams-button:focus {
    outline: 2px solid rgba(220, 38, 38, 0.5);
    outline-offset: 1px;
}

.clear-teams-button:active {
    background: #fee2e2;
    transform: translateY(1px);
}

/* Mobile Team Chips Styles */
@media (max-width: 767px) {
    .team-chips-container {
        gap: 0.4rem;
    }
    
    .team-chip {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
        max-width: 150px;
    }
    
    .chip-remove {
        font-size: 1.1rem;
        width: 1.1rem;
        height: 1.1rem;
    }
    
    .clear-teams-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Mobile Event Details Styles */
@media (max-width: 767px) {
    .event-details-container {
        padding: 1rem;
    }

    .event-header h1 {
        font-size: 1.5rem;
    }

    .event-header .event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .teams-container {
        padding: 1rem;
    }

    .team-name {
        font-size: 1.25rem;
    }

    .team-score {
        font-size: 1.5rem;
    }

    .vs {
        padding: 0 1rem;
    }

    .event-description,
    .event-info {
        padding: 1rem;
    }

    .filters-container {
        padding: 0.5rem;
    }

    .team-select {
        max-width: 100%;
    }
}

/* Breadcrumbs Styles */
.breadcrumbs {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.4em;
    color: #bbb;
}

.breadcrumb-current {
    color: #b0b4bb;
    font-weight: 500;
    cursor: default;
}

/* Page Content Container */
.page-content {
    margin-top: 1rem;
}

/* Mobile Breadcrumbs */
@media (max-width: 767px) {
    .breadcrumbs {
        font-size: 0.8rem;
        padding: 0.75rem 0;
        flex-wrap: wrap;
    }

    .breadcrumb-separator {
        margin: 0 0.25rem;
    }
}

.event-league {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.event-league::before {
    content: '🏆';
}

/* No Events UI */
.no-events {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.no-events-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-events h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.no-events p {
    color: #666;
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}

.placeholder-text {
    color: #666;
    font-size: 1.1rem;
    text-align: center;
    padding: 1rem;
}

/* Search Component Styles */
.search-container {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-form {
    position: relative;
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: white;
}

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

.search-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    color: #666;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.results-list li {
    border-bottom: 1px solid #f0f0f0;
}

.results-list li:last-child {
    border-bottom: none;
}

.result-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.result-item:hover {
    background-color: #f8f9fa;
}

.result-item.event::before {
    content: '🏆';
    margin-right: 0.5rem;
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: #666;
}

.no-results-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.no-results h3 {
    margin: 0 0 0.5rem;
    color: var(--text-color);
}

.search-error {
    padding: 1rem;
    color: #dc3545;
    text-align: center;
}

/* Mobile Search Styles */
@media (max-width: 767px) {
    .search-container {
        margin: 0 1rem 1.5rem;
    }

    .search-input {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .search-results {
        max-height: 300px;
    }

    .result-item {
        padding: 0.75rem 1rem;
    }
}

.leagues-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.league-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.league-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.league-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.seasons-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.season-row {
    background: #f8f8f8;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.season-row:hover {
    background: #f0f0f0;
}

.season-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.season-link:hover {
    color: #007bff;
}

.season-name {
    font-weight: 500;
}

.event-count {
    color: #666;
    font-size: 0.9rem;
}

.no-events-message {
    padding: 1rem;
    text-align: center;
    color: #666;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.no-events-message p {
    margin: 0;
    font-size: 0.9rem;
}

/* Mode Selector Styles */
.mode-selector {
    display: flex;
    gap: 1rem;
    margin: 1rem 0 2rem 0;
    padding: 1rem;
    background: var(--card-background);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.mode-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.mode-option:hover {
    background-color: #e8f0fe;
}

.mode-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.mode-option input[type="radio"]:checked + .mode-label {
    color: var(--primary-color);
    font-weight: 600;
}

.mode-label {
    font-weight: 500;
    cursor: pointer;
}

/* Events List Mode Styles */
.events-list.large-mode .event {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    margin-bottom: 1rem;
}

.events-list.large-mode .event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.events-list.large-mode .event h3 {
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.events-list.large-mode .event p {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    line-height: 1.5;
}

/* Large mode displays metadata vertically */
.events-list.large-mode .event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.events-list.large-mode .event-date-time {
    font-weight: 500;
}

/* Large mode inherits original .event-meta styles - no override needed */

.events-list.compact-mode .event {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--card-background);
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.events-list.compact-mode .event:hover {
    background-color: #e8f0fe;
}

.events-list.compact-mode .event h3 {
    font-size: 1rem;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.events-list.compact-mode .event p {
    display: none;
}

.events-list.compact-mode .event-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

/* Mobile responsive styles for mode selector */
@media (max-width: 767px) {
    .mode-selector {
        flex-direction: column;
        gap: 0.5rem;
        margin: 1rem 0 1.5rem 0;
    }
    
    .mode-option {
        padding: 0.75rem 1rem;
    }
    
    .events-list.compact-mode .event {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .events-list.compact-mode .event h3 {
        min-width: auto;
        width: 100%;
    }
    
    .events-list.compact-mode .event-meta {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Events Table Styles for Compact Mode */
.events-table-container {
    margin-top: 1rem;
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.events-table thead {
    background-color: var(--primary-color);
    color: white;
}

.events-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.events-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
    cursor: pointer;
}

.events-table tbody tr:hover {
    background-color: #e8f0fe;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.events-table tbody tr:last-child {
    border-bottom: none;
}

.events-table td {
    padding: 1rem;
    vertical-align: middle;
    font-size: 0.9rem;
    color: var(--text-color);
}

.events-table .event-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.events-table .event-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Mobile responsive for table */
@media (max-width: 767px) {
    .events-table {
        font-size: 0.8rem;
    }
    
    .events-table th,
    .events-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .events-table th {
        font-size: 0.8rem;
    }
}

/* Sortable Table Headers */
.events-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s;
}

.events-table th.sortable:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.events-table th.sortable .sort-icon {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.events-table th.sortable:hover .sort-icon {
    opacity: 1;
}

.events-table th.sortable[data-sort="home"] .sort-icon,
.events-table th.sortable[data-sort="away"] .sort-icon,
.events-table th.sortable[data-sort="date"] .sort-icon,
.events-table th.sortable[data-sort="time"] .sort-icon {
    display: inline-block;
}

/* Mobile responsive for sortable headers */
@media (max-width: 767px) {
    .events-table th.sortable .sort-icon {
        margin-left: 0.25rem;
        font-size: 0.7rem;
    }
}

/* Month Filters */
.month-filters {
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.month-filter-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 0 0.25rem;
}

.month-filter-link:hover {
    background-color: #f0f0f0;
    color: var(--primary-color);
}

.month-filter-link.active {
    background-color: var(--primary-color);
    color: white;
}

.month-filter-separator {
    color: #ccc;
    font-weight: 300;
}

/* Mobile responsive for month filters */
@media (max-width: 767px) {
    .month-filters {
        padding: 0.5rem 0;
        margin-bottom: 0.75rem;
    }
    
    .month-filter-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
        margin: 0 0.15rem;
    }
} 

/* Larger date/time for event details */
.event-date-time-large {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
} 

/* Team links in event header */
.team-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.team-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Event location and broadcasters styling */
.event-location,
.event-broadcasters {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #666;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.event-broadcasters a {
    color: #007bff;
    text-decoration: none;
}

.event-broadcasters a:hover {
    text-decoration: underline;
} 

/* Error container for data integrity issues */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 2rem;
}

.error-content {
    background: white;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.error-content h1 {
    color: #dc3545;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.error-content p {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.6;
}

.error-content strong {
    color: #333;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    color: white;
} 

/* Team Checkboxes Styles */
.team-checkboxes-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
}

.team-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.team-checkbox-item:hover {
    background-color: #f8f9fa;
}

.team-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label {
    font-size: 0.95rem;
    color: var(--text-color);
    flex: 1;
    cursor: pointer;
}

/* Mobile Team Checkboxes Styles */
@media (max-width: 767px) {
    .team-checkboxes-container {
        max-height: 150px;
        gap: 0.25rem;
    }
    
    .team-checkbox-item {
        padding: 0.75rem 0.5rem;
        gap: 1rem;
        min-height: 44px; /* Minimum touch target size */
    }
    
    .team-checkbox {
        width: 1.5rem;
        height: 1.5rem;
        transform: scale(1.1); /* Slightly larger for touch */
    }
    
    .checkbox-label {
        font-size: 1rem;
        line-height: 1.2;
    }
} 

/* Mobile Team Filter Styles */
@media (max-width: 767px) {
    .team-filter-buttons {
        gap: 0.4rem;
    }
    
    .team-filter-toggle,
    .clear-teams-button {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .team-chips-container {
        gap: 0.4rem;
    }
    
    .team-chip {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
        max-width: 150px;
    }
    
    .chip-remove {
        font-size: 1.1rem;
        width: 1.1rem;
        height: 1.1rem;
    }
    
    .clear-teams-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
} 

/* Footer Styles */
.site-footer {
    background-color: var(--card-background);
    border-top: 1px solid #eee;
    padding: 1rem 0;
    margin-top: auto;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.footer-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Ensure footer stays at bottom */
.content-wrapper {
    padding-top: var(--nav-height);
    min-height: calc(100vh - 60px); /* Subtract footer height */
    display: flex;
    flex-direction: column;
}

main.container {
    flex: 1;
} 

/* Quick Links Component Styles */
.quick-links-container {
    margin: 1.5rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-link-item {
    display: block;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.quick-link-item:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile Quick Links Styles */
@media (max-width: 767px) {
    .quick-links-container {
        margin: 1rem 0;
        padding: 0.75rem;
    }

    .quick-link-item {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
} 

/* Sport boxes loading and error states */
.sports-categories-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.no-sports {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.no-leagues {
    color: #999;
    font-style: italic;
}

/* Home page sport boxes styling */
.home-sport-boxes {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.home-sport-boxes .sports-categories {
    padding: 0;
}

.home-sport-boxes .sports-category {
    margin-bottom: 1rem;
}

/* Mobile styling for home page sport boxes */
@media (max-width: 767px) {
    .home-sport-boxes {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
} 