/* ===========================
   SOCCER DASHBOARD - MODERN DESIGN
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ========== ROOT VARIABLES ========== */
:root {
    /* Light Theme (Default) */
    --primary: #1976d2;
    --primary-dark: #1565c0;
    --primary-light: #42a5f5;
    --secondary: #e91e63;
    --accent: #2196F3;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --bg-main: #f5f7fa;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #212121;
    --text-secondary: #757575;
    --border-light: #e0e0e0;
    --border-medium: #bdbdbd;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --navbar-bg: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
}

/* Dark Theme */
[data-theme="dark"] {
    --primary: #42a5f5;
    --primary-dark: #1e88e5;
    --primary-light: #64b5f6;
    --secondary: #f48fb1;
    --accent: #4fc3f7;
    --success: #66bb6a;
    --warning: #ffa726;
    --danger: #ef5350;
    --bg-main: #0d1117;
    --bg-white: #161b22;
    --bg-card: #1c2128;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --border-light: #30363d;
    --border-medium: #484f58;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --navbar-bg: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ========== NAVIGATION ========== */
.navbar {
    background: var(--navbar-bg);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
}

/* ========== NAV RIGHT SECTION ========== */
.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

/* ========== WEATHER WIDGET ========== */
.weather-widget {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.weather-widget:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.weather-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.weather-icon {
    font-size: 1.8rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.2;
}

.weather-temp {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.weather-location {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.weather-loading {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 0.25rem;
}

/* Dark mode weather adjustments */
[data-theme="dark"] .weather-widget {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .weather-widget:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ========== THEME TOGGLE ========== */
.theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    width: 60px;
    height: 36px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: absolute;
}

.light-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.dark-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="dark"] .light-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

[data-theme="dark"] .dark-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Dark Mode Adjustments */
[data-theme="dark"] body {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

[data-theme="dark"] .standings-table thead {
    background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
}

[data-theme="dark"] .standings-table th {
    color: #e2e8f0;
}

[data-theme="dark"] .standings-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .standings-table tbody tr:hover {
    background-color: rgba(66, 165, 245, 0.1);
}

[data-theme="dark"] .info-box {
    background: var(--bg-card);
    border-color: var(--border-light);
}

[data-theme="dark"] .stat-card {
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.1) 0%, rgba(30, 136, 229, 0.1) 100%);
    border-color: var(--border-light);
}

[data-theme="dark"] .team-badge {
    background: var(--bg-card);
    border-color: var(--border-light);
}

[data-theme="dark"] .team-badge:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(66, 165, 245, 0.3);
}

[data-theme="dark"] .player-photo-placeholder {
    background: var(--bg-card);
    border-color: var(--border-light);
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] select {
    background: var(--bg-card);
    border-color: var(--border-light);
    color: var(--text-primary);
}

[data-theme="dark"] input[type="text"]:focus,
[data-theme="dark"] select:focus {
    border-color: var(--primary);
}

/* Dark Mode - Sidebar Results & Schedule */
[data-theme="dark"] .result-item {
    background: rgba(66, 165, 245, 0.05);
    border-color: var(--border-light);
}

[data-theme="dark"] .result-item:hover {
    background: rgba(66, 165, 245, 0.12);
    border-color: var(--primary);
}

[data-theme="dark"] .result-matchup {
    color: var(--text-primary);
}

[data-theme="dark"] .result-score {
    color: var(--primary-light);
}

[data-theme="dark"] .schedule-item {
    background: rgba(66, 165, 245, 0.05);
    border-color: var(--border-light);
}

[data-theme="dark"] .schedule-item:hover {
    background: rgba(66, 165, 245, 0.12);
    border-color: var(--primary);
}

[data-theme="dark"] .schedule-item-today {
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.2) 0%, rgba(255, 152, 0, 0.25) 100%) !important;
    border: 2px solid var(--warning) !important;
    box-shadow: 0 3px 10px rgba(255, 167, 38, 0.3) !important;
    color: var(--text-primary);
}

[data-theme="dark"] .schedule-item-today:hover {
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.25) 0%, rgba(255, 152, 0, 0.3) 100%) !important;
    border-color: #ffa726 !important;
}

[data-theme="dark"] .schedule-date,
[data-theme="dark"] .result-date {
    color: var(--text-secondary);
}

[data-theme="dark"] .schedule-title {
    color: var(--text-primary);
}

[data-theme="dark"] .results-section h3,
[data-theme="dark"] .schedule-section h3 {
    color: var(--text-primary);
}

/* ========== CONTAINER ========== */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 3rem;
    width: 100%;
}

/* ========== PAGE HEADER ========== */
.page-header {
    text-align: center;
    padding: 3rem 0 2rem 0;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 2rem;
    margin-left: 450px;
}

@media (max-width: 1399px) {
    .page-header {
        margin-left: 350px;
    }
}

@media (max-width: 1023px) {
    .page-header {
        margin-left: 0;
    }
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

/* ========== TABS ========== */
.tabs {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 2rem;
    margin-left: 450px;
    overflow-x: auto;
    padding-bottom: 0;
}

.tab {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 14px 28px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab:hover {
    background: #f5f5f5;
    border-color: var(--primary-light);
    color: var(--primary);
}

.tab.active {
    background: var(--bg-card);
    border-color: var(--primary) var(--primary) white var(--primary);
    color: var(--primary);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* ========== TAB CONTENT ========== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========== SECTION HEADER ========== */
.section-header {
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    margin-bottom: 1.5rem;
    margin-left: 450px;
    box-shadow: var(--shadow-sm);
}

.section-header h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
}

@media (max-width: 1399px) {
    .section-header {
        margin-left: 350px;
    }
}

@media (max-width: 1023px) {
    .section-header {
        margin-left: 0;
    }
}

/* ========== MAIN LEAGUE LAYOUT ========== */
.league-layout {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
}

.sidebar-sections {
    position: fixed;
    left: 0;
    top: 220px;
    width: 450px;
    height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1rem 1.5rem 1.5rem;
    background: var(--bg-main);
    border-right: 2px solid var(--border-light);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 50;
}

.sidebar-sections::-webkit-scrollbar {
    width: 8px;
}

.sidebar-sections::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-sections::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.sidebar-sections::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

[data-theme="dark"] .sidebar-sections::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .sidebar-sections::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========== DIVISIONS GRID ========== */
.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
    margin-left: 450px;
    flex: 1;
}

/* Ultra-wide screens (2560px+) - 6 columns */
@media (min-width: 2560px) {
    .divisions-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .league-layout {
        grid-template-columns: 450px 1fr;
    }
}

/* Very wide screens (2200px+) - 5 columns */
@media (min-width: 2200px) and (max-width: 2559px) {
    .divisions-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Wide screens (1920px+) - 4 columns */
@media (min-width: 1920px) and (max-width: 2199px) {
    .divisions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Standard screens (1400-1919px) - 3 columns */
@media (min-width: 1400px) and (max-width: 1919px) {
    .divisions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Smaller screens (1024-1399px) - 2 columns */
@media (min-width: 1024px) and (max-width: 1399px) {
    .sidebar-sections {
        width: 350px;
    }
    .divisions-grid {
        margin-left: 350px;
        grid-template-columns: repeat(2, 1fr);
    }
    .tabs {
        margin-left: 350px;
    }
}

/* Tablet (768-1023px) - Single column layout */
@media (max-width: 1023px) {
    .sidebar-sections {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 2px solid var(--border-light);
        margin-bottom: 2rem;
    }
    .divisions-grid {
        margin-left: 0;
        grid-template-columns: repeat(2, 1fr);
    }
    .tabs {
        margin-left: 0;
    }
    .league-layout {
        flex-direction: column;
    }
}

/* Mobile (below 768px) - Single column */
@media (max-width: 767px) {
    .divisions-grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 1rem;
    }
    .sidebar-sections {
        padding: 1rem;
    }
}

.division-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.division-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.division-card h3 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
}

.division-card .standings-table {
    margin: 0;
    font-size: 0.85rem;
}

.division-card .standings-table th,
.division-card .standings-table td {
    padding: 6px 8px;
}

/* ========== STANDINGS TABLE ========== */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.standings-table thead {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

.standings-table th {
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 14px 12px;
    text-align: left;
    border-bottom: 2px solid var(--primary);
}

.standings-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.15s ease;
}

.standings-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.standings-table tbody tr:hover {
    background-color: #e3f2fd;
}

.standings-table td {
    padding: 12px;
    color: var(--text-primary);
}

.standings-table td:first-child {
    font-weight: 500;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.standings-table td:not(:first-child),
.standings-table th:not(:first-child) {
    text-align: center;
    white-space: nowrap;
}

/* ========== SCHEDULE & RECENT RESULTS ========== */
.schedule-section {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    flex: 1;
    min-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.recent-results-section {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    flex: 1;
    min-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.recent-results-section h3,
.schedule-section h3 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
}

.result-item {
    background: rgba(0, 0, 0, 0.03);
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.result-item:hover {
    background: rgba(25, 118, 210, 0.08);
    border-color: var(--primary-light);
}

.result-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.result-date {
    font-weight: 500;
}

.result-division {
    color: var(--primary);
    font-weight: 600;
}

.result-matchup {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 2px;
}

.result-score {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.result-arena {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.schedule-item {
    background: rgba(0, 0, 0, 0.03);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.schedule-item:hover {
    background: rgba(25, 118, 210, 0.08);
    border-color: var(--primary-light);
    transform: translateX(2px);
}

.schedule-item-today {
    background: linear-gradient(135deg, rgba(255, 243, 224, 0.9) 0%, rgba(255, 224, 178, 0.9) 100%) !important;
    border: 2px solid #ff9800 !important;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.4) !important;
    font-weight: 600;
}

.schedule-item-today:hover {
    background: linear-gradient(135deg, rgba(255, 224, 178, 0.95) 0%, rgba(255, 204, 128, 0.95) 100%) !important;
    border-color: #f57c00 !important;
    transform: translateX(2px) translateY(-2px);
}

.schedule-date {
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.schedule-title {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 1.4;
}

.league-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== DATE FILTERS ========== */
.date-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    background: #f5f5f5;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

/* ========== SCHEDULE COLUMNS ========== */
.schedule-columns {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.schedule-column {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.schedule-column-header {
    padding: 1rem;
    color: white;
    text-align: center;
}

.schedule-column-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.schedule-column-content {
    flex: 1;
    padding: 1rem;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.schedule-column-content::-webkit-scrollbar {
    width: 6px;
}

.schedule-column-content::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.schedule-column-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.schedule-column-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.schedule-column .schedule-item {
    margin-bottom: 10px;
}

/* Responsive columns */
@media (max-width: 1600px) {
    .schedule-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .schedule-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .schedule-columns {
        grid-template-columns: 1fr;
    }
}

/* ========== TOP SCORERS ========== */
.scorers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.scorers-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.scorers-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.scorers-card h3 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.scorers-card .standings-table {
    margin: 0;
    font-size: 0.75rem;
}

.scorers-card .standings-table th,
.scorers-card .standings-table td {
    padding: 6px 8px;
}

.scorers-card .standings-table th {
    font-size: 0.7rem;
}

@media (max-width: 1600px) {
    .scorers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .scorers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .scorers-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== PLAYER SEARCH ========== */
.player-search-layout {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Three column layout for player search */
.player-search-layout-three-col {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr 420px;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

/* Center page header and container for player search (no sidebar offset) */
.container:has(.player-search-layout-three-col) {
    padding: 2rem 0;
}

.container:has(.player-search-layout-three-col) .page-header {
    margin-left: 0;
    margin-right: 0;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.player-stats-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.player-stats-sidebar-left {
    position: sticky;
    top: 100px;
    align-self: start;
}

.player-stats-sidebar-right {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
}

.stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.stats-card h3 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
}

.stat-item {
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    text-align: center;
    border: 1px solid var(--border-light);
}

.stat-item-highlight {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: var(--primary-light);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    height: 2px;
    background: var(--border-light);
    margin: 1.5rem 0;
}

.leagues-header h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.leagues-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.league-stat {
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.league-stat:hover {
    background: #f5f5f5;
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.league-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.league-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.league-detail {
    color: var(--text-secondary);
}

.player-search-content {
    width: 100%;
}

/* Team Roster Section */
.team-roster-section {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.team-roster-section h3 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.team-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.team-dropdown {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.2s ease;
}

.team-dropdown:hover:not(:disabled) {
    border-color: var(--primary);
}

.team-dropdown:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.team-dropdown:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.section-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-light);
}

.section-divider span {
    background: var(--bg-main);
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.search-container {
    margin: 0 0 2rem 0;
    display: flex;
    gap: 1rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.search-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.search-btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.search-results {
    width: 100%;
}

.search-results-header {
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: 10px 10px 0 0;
    border: 1px solid var(--border-light);
    border-bottom: none;
}

.search-results-header h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.search-results .standings-table {
    border-radius: 0 0 10px 10px;
}

/* Player Profile Expandable Row */
.player-row {
    cursor: pointer;
}

.player-name-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.player-name-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.player-profile-row {
    background-color: #f8f9fa !important;
}

.player-profile-container {
    padding: 2rem;
}

.player-profile-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.player-profile-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.player-photo-placeholder {
    background: var(--bg-card);
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.player-photo-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.player-basic-info {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.player-basic-info h3 {
    margin: 0 0 1rem 0;
    color: var(--primary);
    font-size: 1.3rem;
}

.player-basic-info p {
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.player-profile-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.player-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.player-section h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.player-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-teams {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.team-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    min-width: 200px;
    transition: all 0.2s ease;
}

.team-badge:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
    transform: translateY(-2px);
}

.team-badge-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.team-badge-details {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.team-badge-league {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.team-badge-jersey {
    background: #f8f9fa;
    color: var(--text-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.team-badge-season {
    color: var(--text-secondary);
    padding: 0.2rem 0.5rem;
}

/* Career History Table */
.career-history-table-wrapper {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.career-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.career-history-table thead {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.career-history-table th {
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.career-history-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.career-history-table tbody tr:hover {
    background-color: rgba(25, 118, 210, 0.05);
}

.career-history-table tbody tr:last-child {
    border-bottom: none;
}

.career-history-table td {
    padding: 0.75rem 0.5rem;
    color: var(--text-primary);
}

.career-history-table td:nth-child(3) {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

[data-theme="dark"] .career-history-table tbody tr {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .career-history-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* New Signings Section */
.new-signings-scrollable {
    max-height: 800px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
}

.new-signings-scrollable::-webkit-scrollbar {
    width: 8px;
}

.new-signings-scrollable::-webkit-scrollbar-track {
    background: var(--bg-main);
    border-radius: 4px;
}

.new-signings-scrollable::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.new-signings-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.signings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.signing-league-group {
    margin-bottom: 0.5rem;
}

.signing-league-header {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--primary);
}

.signing-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--bg-card);
    border-radius: 8px;
    border-left: 3px solid var(--secondary);
    transition: all 0.2s ease;
}

.signing-item:hover {
    background: rgba(255, 152, 0, 0.08);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.signing-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.signing-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.signing-player {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.signing-team {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.signing-date {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 500;
}

[data-theme="dark"] .signing-item {
    border-left-color: var(--secondary);
}

[data-theme="dark"] .signing-item:hover {
    background: rgba(255, 152, 0, 0.12);
}

/* Responsive player profile */
@media (max-width: 1200px) {
    .player-profile-content {
        grid-template-columns: 1fr;
    }
    
    .player-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .player-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive player search layout */
@media (max-width: 1400px) {
    .player-search-layout-three-col {
        grid-template-columns: 240px 1fr 360px;
        gap: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 1024px) {
    .player-search-layout {
        grid-template-columns: 1fr;
    }
    
    .player-search-layout-three-col {
        grid-template-columns: 1fr;
    }
    
    .player-stats-sidebar {
        position: relative;
        top: 0;
    }
    
    .player-stats-sidebar-left,
    .player-stats-sidebar-right {
        position: relative;
        top: 0;
        max-height: none;
    }
    
    .new-signings-scrollable {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .team-selector {
        grid-template-columns: 1fr;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
}

/* ========== LOADING SPINNER ========== */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.spinner {
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== INFO MESSAGES ========== */
.info-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.info-box.warning {
    border-left-color: var(--warning);
    background: #fffaf0;
}

.info-box.error {
    border-left-color: var(--danger);
    background: #ffebee;
}

.info-box h3 {
    margin-top: 0;
    color: var(--text-primary);
}

.info-box p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .divisions-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        gap: 8px;
    }

    .tab {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .schedule-date {
        min-width: auto;
    }
}


/* ========== USER AUTHENTICATION & LANDING PAGE ========== */

/* Login Button in Navbar */
.login-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.login-button:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

/* User Menu */
.user-menu {
    position: relative;
    margin: 0 0.5rem;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-button:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-arrow {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bg-hover);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.5rem 0;
}

.premium-badge-item {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    font-weight: 700;
}

/* Landing Page */
.landing-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 20px;
    color: white;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-primary-large {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.btn-primary-large {
    background: var(--primary);
    color: white;
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.btn-primary-large:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Features Section */
.features-section, .leagues-section {
    margin: 4rem 0;
}

.features-section h2, .leagues-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.leagues-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.feature-card, .league-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover, .league-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3, .league-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.feature-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
    background: var(--primary);
    color: white;
}

.premium-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
}

.league-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    margin-top: 4rem;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Auth Container */
.auth-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-card h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input, .form-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-group label {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.btn-submit, .btn-logout, .btn-premium {
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover, .btn-premium:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

.btn-logout {
    background: #dc3545;
}

.btn-logout:hover {
    background: #c82333;
}

.btn-premium {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Profile Page */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.profile-info h1 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-email {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.free-badge {
    background: #e9ecef;
    color: #495057;
}

.profile-content {
    display: grid;
    gap: 2rem;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
}

.profile-card h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.premium-promo {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 237, 78, 0.1) 100%);
    border: 2px solid #ffd700;
}

.premium-features-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.premium-features-list li {
    padding: 0.5rem 0;
    color: var(--text-primary);
}

/* Dark Mode Adjustments */
[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-theme="dark"] .alert-success {
    background: #1e4620;
    color: #a3cfbb;
    border-color: #2d5930;
}

[data-theme="dark"] .alert-danger {
    background: #4a1c1c;
    color: #f8b4b4;
    border-color: #6b2c2c;
}

[data-theme="dark"] .alert-info {
    background: #1c3a47;
    color: #b3d9e8;
    border-color: #2c5368;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .leagues-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .user-name {
        display: none;
    }
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

[data-theme="dark"] .alert-warning {
    background: #4a3a1c;
    color: #ffd700;
    border-color: #6b5a2c;
}

/* Premium Lock Icon */
.premium-lock {
    font-size: 0.8rem;
    margin-left: 0.25rem;
    opacity: 0.7;
}

.premium-only {
    opacity: 0.7;
    cursor: not-allowed;
}

.premium-only:hover {
    opacity: 0.9;
}

/* Highlight Cards for AI Features */
.highlight-card {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
}

[data-theme='dark'] .highlight-card {
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
}

.highlight-card::before {
    content: 'NEW';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
}

.feature-card .feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.highlight-card .feature-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========== PREMIUM PAGE ========== */
.premium-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.premium-hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 20px;
    color: #000;
    margin-bottom: 3rem;
}

.premium-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.premium-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.premium-price {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
}

.price-note {
    font-size: 1rem;
    opacity: 0.8;
}

.comparison-section {
    margin: 4rem 0;
}

.comparison-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.comparison-table {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-header, .comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: center;
}

.comparison-header {
    background: var(--primary);
    color: white;
    font-weight: 700;
    padding: 1rem;
}

.comparison-row {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row:hover {
    background: var(--bg-hover);
}

.highlight-row {
    background: rgba(255, 215, 0, 0.05);
}

[data-theme="dark"] .highlight-row {
    background: rgba(255, 215, 0, 0.1);
}

.feature-name {
    font-weight: 600;
    color: var(--text-primary);
}

.plan-col {
    text-align: center;
    font-weight: 600;
}

.free-col {
    color: var(--text-secondary);
}

.premium-col {
    color: #ffd700;
    font-size: 1.25rem;
}

.ai-showcase {
    margin: 4rem 0;
}

.ai-showcase h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.ai-feature-card {
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 2rem;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
}

[data-theme="dark"] .ai-feature-card {
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
}

.ai-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ai-feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.ai-feature-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.ai-feature-card li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    position: relative;
    padding-left: 1.5rem;
}

.ai-feature-card li::before {
    content: 'âœ“';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.premium-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    margin-top: 4rem;
}

.premium-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.btn-premium-large {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-premium-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

@media (max-width: 768px) {
    .premium-hero h1 {
        font-size: 2rem;
    }
    
    .comparison-header, .comparison-row {
        grid-template-columns: 2fr 1fr 1fr;
        font-size: 0.9rem;
    }
    
    .ai-features-grid {
        grid-template-columns: 1fr;
    }
}

/* MMSL Specific Grid - 4x2 layout for 8 divisions */
#mmsl-standings {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1600px) {
    #mmsl-standings {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    #mmsl-standings {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    #mmsl-standings {
        grid-template-columns: 1fr !important;
    }
}

/* WWSL Specific Grid - 5 per row for 12 divisions */
#wwsl-standings {
    grid-template-columns: repeat(5, 1fr) !important;
}

@media (max-width: 1800px) {
    #wwsl-standings {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 1400px) {
    #wwsl-standings {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    #wwsl-standings {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    #wwsl-standings {
        grid-template-columns: 1fr !important;
    }
}

/* Soccerland Specific Grid - 4 on top row, 3 on bottom (7 divisions total) */
#soccerland-standings {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1400px) {
    #soccerland-standings {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    #soccerland-standings {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    #soccerland-standings {
        grid-template-columns: 1fr !important;
    }
}

/* Remove sidebar margin for schedule page (full-width layout) */
.schedule-filters ~ .page-header,
body:has(.schedule-filters) .page-header {
    margin-left: 0 !important;
}

.schedule-filters {
    margin-left: 0 !important;
}

.schedule-grid {
    margin-left: 0 !important;
}

/* Remove sidebar offset for schedule page - it's full width */
.container:has(.schedule-columns) .page-header {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.container:has(.schedule-columns) .date-filters {
    margin-left: 0 !important;
}

.container:has(.schedule-columns) .schedule-columns {
    margin-left: 0 !important;
}

/* Remove sidebar offset for scorers page - it's full width */
.container:has(.scorers-grid) .page-header {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.container:has(.scorers-grid) .scorers-grid {
    margin-left: 0 !important;
}

/* Fix all full-width pages (no sidebar) - remove left margin */
.container:has(.landing-page) .page-header,
.container:has(.premium-page) .page-header,
.container:has(.auth-container) .page-header,
.container:has(.profile-container) .page-header,
.container:has(.premium-feature-page) .page-header {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Index page fix */
.container:not(:has(.league-layout)):not(:has(.player-search-layout-three-col)) .page-header {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ========== FACILITY VIEW MODE ========== */

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.view-mode-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.25rem;
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.mode-btn.active {
    background: var(--primary);
    color: white;
}

.mode-btn span {
    font-size: 1.1rem;
}

.facility-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.facility-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.25rem;
    font-weight: normal;
}

.schedule-league-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-top: 0.5rem;
}

@media (max-width: 1400px) {
    .facility-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .facility-columns {
        grid-template-columns: 1fr;
    }
    
    .view-mode-toggle {
        width: 100%;
    }
    
    .mode-btn {
        flex: 1;
    }
}

/* Facility view specific styles */
.facility-game-count {
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-main);
    border-radius: 8px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
}

.schedule-time {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.schedule-item {
    position: relative;
}

.schedule-league-tag {
    margin-top: 0.5rem;
}

/* Facility columns layout */
.facility-columns .schedule-column {
    min-height: 400px;
}

.facility-columns .schedule-column-header {
    position: sticky;
    top: 80px;
    z-index: 10;
}

/* Filter controls responsive layout */
@media (max-width: 768px) {
    .date-filters {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .filter-btn {
        width: 100%;
    }
}

/* ========== PREMIUM FEATURE PAGES ========== */

.premium-feature-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.feature-hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #1565c0 100%);
    border-radius: 20px;
    color: white;
    margin-bottom: 3rem;
}

.feature-hero .feature-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.feature-hero h1 {
    font-size: 3rem;
    margin: 0 0 1rem 0;
}

.feature-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
}

.feature-content {
    margin-top: 2rem;
}

.feature-section {
    margin-bottom: 3rem;
}

.feature-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Premium feature pages - use different grid */
.premium-feature-page .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.premium-feature-page .features-grid .feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.premium-feature-page .features-grid .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1) 0%, rgba(21, 101, 192, 0.05) 100%);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.highlight-box h3 {
    color: var(--primary);
}

.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: 15px;
    border: 2px solid var(--border-light);
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.feature-status {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.status-badge.in-development {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
}

@media (max-width: 768px) {
    .feature-hero h1 {
        font-size: 2rem;
    }
    
    .feature-subtitle {
        font-size: 1.1rem;
    }
}

/* Premium features grid update for 5 cards */
.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 1200px) {
    .ai-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1600px) {
    .ai-features-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ========== BRAND LOGO & VERSION ========== */

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 180px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    max-width: 600px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.20rem;
    justify-content: center;
}

.brand-text h1 {
    font-size: 2.8rem;
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
}

.version-badge {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.7;
    line-height: 1;
    font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
    .brand-logo {
        height: 80px;
        width: auto;
        max-width: 250px;
    }
    
    .brand-text h1 {
        font-size: 1.2rem;
    }
    
    .version-badge {
        font-size: 0.6rem;
    }
}

/* ========== PRESSING DASHBOARD ========== */

.pressing-dashboard-container {
    max-width: 100%;
    padding: 1.5rem 2rem;
}

.pressing-dashboard-container .page-header {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.pressing-header {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 50%, #ff5722 100%);
    border-radius: 16px;
    padding: 2rem 3rem !important;
    margin-bottom: 2rem !important;
    border: none !important;
    color: white;
}

.pressing-header h1 {
    color: white !important;
    font-size: 2.2rem !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pressing-header p {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1.1rem;
}

/* Summary Cards Row */
.pressing-summary-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pressing-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pressing-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.ppda-card::before { background: linear-gradient(180deg, #1976d2, #42a5f5); }
.regains-card::before { background: linear-gradient(180deg, #4caf50, #8bc34a); }
.forced-balls-card::before { background: linear-gradient(180deg, #ff9800, #ffc107); }
.time-regain-card::before { background: linear-gradient(180deg, #9c27b0, #e91e63); }

.pressing-summary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.summary-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1), rgba(25, 118, 210, 0.05));
    border-radius: 12px;
    flex-shrink: 0;
}

.summary-content {
    flex: 1;
}

.summary-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.summary-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.25rem;
}

.summary-sublabel {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.summary-trend {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: var(--bg-main);
}

.summary-trend.positive {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.15);
}

.summary-trend.negative {
    color: #f44336;
    background: rgba(244, 67, 54, 0.15);
}

/* Dashboard Grid Layout */
.pressing-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 1.5rem;
}

.pressing-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Pressing Cards */
.pressing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.pressing-card:hover {
    box-shadow: var(--shadow-md);
}

.pressing-card .card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(0,0,0,0.02) 100%);
}

.pressing-card .card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
}

.legend-item {
    color: var(--text-secondary);
}

.legend-high { color: #4caf50; }
.legend-medium { color: #ffc107; }
.legend-low { color: #f44336; }

/* Chart Container */
.chart-container {
    padding: 1rem 1.5rem 1.5rem;
    height: 250px;
}

/* PPDA Trend Card */
.ppda-trend-card .chart-container {
    height: 280px;
}

/* Pressing Triggers Card */
.pressing-triggers-card .triggers-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
}

.triggers-chart-section {
    height: 200px;
}

.triggers-list-section {
    max-height: 250px;
    overflow-y: auto;
}

.triggers-list-section h4,
.errors-list-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

/* Event List */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-main);
    border-radius: 8px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.event-item:hover {
    background: rgba(25, 118, 210, 0.1);
    transform: translateX(3px);
}

.event-item.empty {
    color: var(--text-secondary);
    font-style: italic;
    justify-content: center;
}

.event-time {
    font-weight: 700;
    color: var(--primary);
    min-width: 35px;
}

.event-type {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.trigger-bad-touch { background: #ffebee; color: #c62828; }
.trigger-back-pass { background: #f3e5f5; color: #7b1fa2; }
.trigger-slow-buildup { background: #e8eaf6; color: #3f51b5; }
.trigger-gk-distribution { background: #e3f2fd; color: #1565c0; }
.trigger-wide-overload { background: #e0f7fa; color: #00838f; }

.error-turnover { background: #ffebee; color: #c62828; }
.error-misplaced-pass { background: #fff3e0; color: #e65100; }
.error-bad-touch { background: #fffde7; color: #f9a825; }
.error-foul-won { background: #e8f5e9; color: #2e7d32; }

.event-player,
.event-zone {
    color: var(--text-secondary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-video-link {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.6rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.event-video-link:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

/* Forced Errors Card */
.forced-errors-content {
    padding: 1rem;
}

.errors-chart-section {
    height: 180px;
    margin-bottom: 1rem;
}

.errors-stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.error-stat {
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-main);
    border-radius: 8px;
}

.error-count {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.error-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.errors-list-section {
    max-height: 180px;
    overflow-y: auto;
}

/* Heatmap Card */
.heatmap-card {
    flex: 1;
}

.heatmap-controls {
    display: flex;
    gap: 0.5rem;
}

.heatmap-select,
.playlist-select {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
}

.heatmap-select:focus,
.playlist-select:focus {
    outline: none;
    border-color: var(--primary);
}

.pitch-container {
    padding: 1rem;
    position: relative;
}

.pitch-svg {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

/* Heat Zones */
.zone-defensive { fill: rgba(76, 175, 80, 0.2); }
.zone-middle { fill: rgba(255, 193, 7, 0.15); }
.zone-attacking { fill: rgba(244, 67, 54, 0.3); }

/* Regain Markers */
.regain-marker {
    fill: #1976d2;
    stroke: white;
    stroke-width: 0.5;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.regain-marker.interceptions { fill: #4caf50; }
.regain-marker.tackles { fill: #2196f3; }
.regain-marker.turnovers { fill: #ff9800; }

.regain-marker:hover,
.regain-marker.selected {
    r: 2.5;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-gradient {
    width: 120px;
    height: 12px;
    background: linear-gradient(90deg, #4caf50, #ffeb3b, #ff9800, #f44336);
    border-radius: 6px;
}

/* Event Details Panel */
.event-details-panel {
    padding: 1rem;
    border-top: 1px solid var(--border-light);
    min-height: 80px;
}

.event-details-placeholder {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.9rem;
    padding: 1rem;
}

.event-details-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.event-detail-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.event-type-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.event-type-badge.interceptions { background: rgba(76, 175, 80, 0.2); color: #2e7d32; }
.event-type-badge.tackles { background: rgba(33, 150, 243, 0.2); color: #1565c0; }
.event-type-badge.turnovers { background: rgba(255, 152, 0, 0.2); color: #e65100; }

.watch-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-left: auto;
}

.watch-video-btn:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

/* Gauge Card */
.gauge-card .gauge-container {
    padding: 1.5rem;
    text-align: center;
}

.gauge-svg {
    max-width: 300px;
    margin: 0 auto;
}

.gauge-value {
    margin-top: -20px;
    margin-bottom: 0.5rem;
}

.gauge-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.gauge-unit {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

.gauge-rating {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gauge-rating.excellent { background: #e8f5e9; color: #2e7d32; }
.gauge-rating.good { background: #f1f8e9; color: #558b2f; }
.gauge-rating.average { background: #fffde7; color: #f9a825; }
.gauge-rating.poor { background: #ffebee; color: #c62828; }

.gauge-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
}

.gauge-stat {
    text-align: center;
}

.gauge-stat .stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.gauge-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Leaderboard Card */
.leaderboard-card {
    flex: 1;
}

.leaderboard-table-wrapper {
    max-height: 400px;
    overflow-y: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.leaderboard-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.leaderboard-table th {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.leaderboard-table th.sortable:hover {
    background: var(--primary-light);
}

.leaderboard-table th.sort-asc::after { content: ' ▲'; }
.leaderboard-table th.sort-desc::after { content: ' ▼'; }

.leaderboard-table td {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.leaderboard-table tbody tr {
    transition: background-color 0.2s ease;
}

.leaderboard-table tbody tr:hover {
    background: rgba(25, 118, 210, 0.08);
}

.rank-cell {
    font-weight: 600;
    color: var(--text-secondary);
}

.rank-badge {
    font-size: 1.1rem;
}

.player-cell {
    text-align: left !important;
    padding-left: 0.75rem !important;
}

.player-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.player-position {
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: var(--bg-main);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
}

.stat-cell {
    font-weight: 500;
}

.success-rate {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.success-rate.high { background: #e8f5e9; color: #2e7d32; }
.success-rate.medium { background: #fff8e1; color: #f57f17; }
.success-rate.low { background: #ffebee; color: #c62828; }

.empty-row {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center !important;
}

/* Video Playlist Card */
.video-playlist-card {
    flex: 1;
}

.playlist-filter {
    display: flex;
    gap: 0.5rem;
}

.video-playlist-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 0.75rem;
}

.video-clip-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-main);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.video-clip-item:hover {
    background: rgba(25, 118, 210, 0.1);
    border-color: var(--primary-light);
    transform: translateX(4px);
}

.video-clip-item.empty {
    justify-content: center;
    opacity: 0.7;
}

.clip-thumbnail {
    width: 80px;
    height: 55px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.clip-play-icon {
    color: white;
    font-size: 1.2rem;
    opacity: 0.9;
}

.clip-duration {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(0,0,0,0.8);
    color: white;
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

.clip-info {
    flex: 1;
    overflow: hidden;
}

.clip-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clip-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.2rem;
}

.clip-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

.clip-type {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

.clip-type.regains { background: #e8f5e9; color: #2e7d32; }
.clip-type.triggers { background: #e3f2fd; color: #1565c0; }
.clip-type.forced-errors { background: #fff3e0; color: #e65100; }

.clip-players {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Responsive Pressing Dashboard */
@media (max-width: 1600px) {
    .pressing-dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .pressing-column-right {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .pressing-summary-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pressing-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .pressing-column-right {
        grid-column: auto;
        grid-template-columns: 1fr;
    }
    
    .pressing-triggers-card .triggers-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pressing-summary-row {
        grid-template-columns: 1fr;
    }
    
    .pressing-summary-card {
        padding: 1rem;
    }
    
    .summary-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .summary-value {
        font-size: 1.5rem;
    }
    
    .errors-stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gauge-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Dark Mode Pressing Dashboard */
[data-theme="dark"] .pressing-header {
    background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 50%, #e64a19 100%);
}

[data-theme="dark"] .pressing-summary-card {
    background: var(--bg-card);
}

[data-theme="dark"] .pressing-card {
    background: var(--bg-card);
    border-color: var(--border-light);
}

[data-theme="dark"] .event-item {
    background: rgba(255,255,255,0.05);
}

[data-theme="dark"] .event-item:hover {
    background: rgba(66, 165, 245, 0.15);
}

[data-theme="dark"] .pitch-svg {
    background: #1a3d1a;
}

[data-theme="dark"] .video-clip-item {
    background: rgba(255,255,255,0.05);
}

[data-theme="dark"] .video-clip-item:hover {
    background: rgba(66, 165, 245, 0.15);
}

[data-theme="dark"] .error-stat,
[data-theme="dark"] .player-position {
    background: rgba(255,255,255,0.08);
}

[data-theme="dark"] .leaderboard-table tbody tr:hover {
    background: rgba(66, 165, 245, 0.12);
}

[data-theme="dark"] .success-rate.high { background: rgba(76, 175, 80, 0.2); }
[data-theme="dark"] .success-rate.medium { background: rgba(255, 193, 7, 0.2); }
[data-theme="dark"] .success-rate.low { background: rgba(244, 67, 54, 0.2); }

[data-theme="dark"] .gauge-rating.excellent { background: rgba(76, 175, 80, 0.2); }
[data-theme="dark"] .gauge-rating.good { background: rgba(139, 195, 74, 0.2); }
[data-theme="dark"] .gauge-rating.average { background: rgba(255, 235, 59, 0.2); }
[data-theme="dark"] .gauge-rating.poor { background: rgba(244, 67, 54, 0.2); }

[data-theme="dark"] .trigger-bad-touch,
[data-theme="dark"] .trigger-back-pass,
[data-theme="dark"] .trigger-slow-buildup,
[data-theme="dark"] .trigger-gk-distribution,
[data-theme="dark"] .trigger-wide-overload,
[data-theme="dark"] .error-turnover,
[data-theme="dark"] .error-misplaced-pass,
[data-theme="dark"] .error-bad-touch,
[data-theme="dark"] .error-foul-won {
    opacity: 0.9;
}

[data-theme="dark"] .clip-type.regains { background: rgba(76, 175, 80, 0.3); }
[data-theme="dark"] .clip-type.triggers { background: rgba(33, 150, 243, 0.3); }
[data-theme="dark"] .clip-type.forced-errors { background: rgba(255, 152, 0, 0.3); }