/*=============================================
  FOTBALLTABELLER - MODERN LIGHT THEME
  Clean, professional, and fast
=============================================*/

/*=============================================
  1. CSS VARIABLES & DESIGN TOKENS
=============================================*/
:root {
    /* Colors - Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;

    /* Text Colors */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-tertiary: #adb5bd;

    /* Brand Colors */
    --brand-green: #00b466;
    --brand-green-hover: #009955;
    --brand-green-light: #e6f7f0;

    /* Accent Colors */
    --accent-blue: #0066ff;
    --accent-red: #dc3545;
    --accent-yellow: #ffc107;
    --accent-orange: #fd7e14;

    /* Borders & Shadows */
    --border-color: #dee2e6;
    --border-color-light: #e9ecef;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);

    /* League Dynamic Color (will be overridden) */
    --league-color: var(--brand-green);

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Layout */
    --container-max-width: 1200px;
    --header-height: 64px;
}

/*=============================================
  2. RESET & BASE STYLES
=============================================*/
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--league-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/*=============================================
  3. LAYOUT UTILITIES
=============================================*/
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-2xl) 0;
}

.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color-light);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/*=============================================
  4. HEADER & NAVIGATION
=============================================*/
.site-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-brand {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.site-brand:hover {
    color: var(--brand-green);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--font-size-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--brand-green);
    background: var(--brand-green-light);
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-sm);
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/*=============================================
  5. TOP LEAGUES SHOWCASE
=============================================*/
.leagues-showcase {
    background: var(--bg-primary);
    padding: var(--space-2xl) 0;
}

.showcase-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-xl);
    text-align: center;
    color: var(--text-primary);
}

.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.league-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.league-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--league-color);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.league-card:hover {
    border-color: var(--league-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.league-card:hover::before {
    transform: scaleX(1);
}

.league-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.league-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.league-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.league-country {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/*=============================================
  6. LEAGUE TABLE STYLES
=============================================*/
.league-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.league-header {
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--league-color), var(--league-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.league-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.league-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.league-season {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Tabs */
.league-tabs {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: thin;
}

.league-tabs::-webkit-scrollbar {
    height: 4px;
}

.league-tabs::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

.tab-button {
    padding: var(--space-sm) var(--space-lg);
    font-weight: 500;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    background: transparent;
    border-radius: var(--radius-md);
    white-space: nowrap;
    transition: all var(--transition-base);
}

.tab-button:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.tab-button.active {
    background: var(--league-color);
    color: white;
}

/* Table */
.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table thead {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.standings-table th {
    padding: var(--space-md);
    text-align: left;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.standings-table th:first-child {
    width: 40px;
    text-align: center;
}

.standings-table tbody tr {
    border-bottom: 1px solid var(--border-color-light);
    transition: background var(--transition-fast);
}

.standings-table tbody tr:hover {
    background: var(--bg-secondary);
}

.standings-table td {
    padding: var(--space-md);
    font-size: var(--font-size-sm);
}

.standings-table td:first-child {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
}

.team-cell {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.team-name {
    font-weight: 500;
    color: var(--text-primary);
}

.stats-cell {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.stats-cell.highlight {
    font-weight: 600;
    color: var(--text-primary);
}

/* Position Badges */
.position-badge {
    width: 4px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.position-badge.champions-league {
    background: #0066ff;
}

.position-badge.europa-league {
    background: #ff6600;
}

.position-badge.conference-league {
    background: #009900;
}

.position-badge.relegation {
    background: #dc3545;
}

/*=============================================
  7. SIDEBAR STYLES
=============================================*/
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}

.sidebar-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--league-color);
}

.top-scorer {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-color-light);
}

.top-scorer:last-child {
    border-bottom: none;
}

.scorer-rank {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--league-color);
    min-width: 24px;
    text-align: center;
}

.scorer-info {
    flex: 1;
}

.scorer-name {
    font-weight: 500;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.scorer-team {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.scorer-goals {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
}

/*=============================================
  8. SKELETON LOADERS
=============================================*/
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        var(--bg-tertiary) 50%,
        var(--bg-secondary) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: var(--radius-sm);
}

.skeleton-loader {
    padding: var(--space-xl);
}

.skeleton-header {
    height: 120px;
    margin-bottom: var(--space-lg);
}

.skeleton-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.skeleton-tab {
    height: 32px;
    width: 100px;
}

.skeleton-table {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.skeleton-row {
    height: 48px;
}

/*=============================================
  9. FOOTER
=============================================*/
.site-footer-bottom {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-xl) 0;
    margin-top: var(--space-2xl);
}

.site-footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.site-footer-bottom p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--brand-green);
}

/*=============================================
  10. RESPONSIVE DESIGN
=============================================*/
@media (max-width: 1024px) {
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 280px;
        height: calc(100vh - var(--header-height));
        background: var(--bg-primary);
        box-shadow: var(--shadow-lg);
        transition: left var(--transition-slow);
        z-index: 999;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-xs);
    }

    .main-nav a {
        display: block;
        width: 100%;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .leagues-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 1rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .league-title {
        font-size: var(--font-size-2xl);
    }

    .standings-table th,
    .standings-table td {
        padding: var(--space-sm);
        font-size: var(--font-size-xs);
    }

    .team-name {
        font-size: var(--font-size-sm);
    }

    .leagues-grid {
        grid-template-columns: 1fr;
    }

    .site-footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}

/*=============================================
  11. UTILITIES
=============================================*/
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/*=============================================
  12. COMPATIBILITY - OLD STRUCTURE SUPPORT
=============================================*/
/* Support for existing .enhanced-* classes */

.main-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-xl);
    max-width: var(--container-max-width);
    margin: var(--space-xl) auto;
    padding: 0 var(--space-lg);
}

@media (max-width: 1024px) {
    .main-content-wrapper {
        grid-template-columns: 1fr;
    }
}

.enhanced-league-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.enhanced-league-header {
    background: linear-gradient(135deg, var(--league-color) 0%, var(--league-color) 100%);
    color: white;
    padding: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.enhanced-league-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin: 0;
}

.selector-wrapper {
    display: flex;
    gap: var(--space-md);
}

.styled-select {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all var(--transition-base);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 32px;
}

.styled-select:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

.styled-select:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.styled-select option {
    background: var(--text-primary);
    color: white;
    padding: var(--space-sm);
}

.enhanced-tabs {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.enhanced-tab {
    padding: var(--space-sm) var(--space-lg);
    font-weight: 500;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    background: transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-decoration: none;
    display: inline-block;
}

.enhanced-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.enhanced-tab.active {
    background: var(--league-color);
    color: white;
}

.enhanced-tab-content {
    display: none;
}

.enhanced-tab-content.active {
    display: block;
}

/* Content sections for anchor navigation */
.content-section {
    padding: var(--space-xl);
    scroll-margin-top: calc(var(--header-height) + var(--space-xl));
}

.cup-info-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-xl);
    text-align: center;
}

.cup-info-banner p {
    margin: 0;
    color: #78350f;
    font-weight: 500;
    font-size: var(--font-size-base);
}

.league-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    margin-top: var(--space-xs);
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    border-bottom: 3px solid var(--league-color);
    padding-bottom: var(--space-sm);
}

/* Fixtures list */
.fixtures-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.fixture-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: all var(--transition-base);
}

.fixture-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--league-color);
}

.fixture-date {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.fixture-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.fixture-team {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    min-width: 0;
}

.fixture-team:last-child {
    flex-direction: row-reverse;
    text-align: right;
}

.fixture-team span {
    font-size: var(--font-size-sm);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fixture-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.fixture-score {
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--league-color);
    padding: 0 var(--space-sm);
    white-space: nowrap;
}

.fixtures-placeholder,
.results-placeholder {
    padding: var(--space-lg);
    text-align: center;
    color: var(--text-secondary);
}

.enhanced-table-wrapper {
    overflow-x: auto;
}

.enhanced-table {
    width: 100%;
    border-collapse: collapse;
}

.enhanced-table thead {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.enhanced-table th {
    padding: var(--space-md);
    text-align: left;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.enhanced-table th:first-child {
    width: 40px;
    text-align: center;
}

.enhanced-table tbody tr {
    border-bottom: 1px solid var(--border-color-light);
    transition: background var(--transition-fast);
}

.enhanced-table tbody tr:hover {
    background: var(--bg-secondary);
}

.enhanced-table td {
    padding: var(--space-md);
    font-size: var(--font-size-sm);
}

.enhanced-table td:first-child {
    text-align: center;
}

.enhanced-position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 var(--space-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.enhanced-team-cell {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.enhanced-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.team-link {
    font-weight: 500;
    color: var(--text-primary);
    transition: color var(--transition-base);
}

.team-link:hover {
    color: var(--league-color);
}

.league-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}

.sidebar-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--league-color);
}

.league-info .info-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-color-light);
}

.league-info .info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.info-value {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
}

/* Related Leagues List */
.related-leagues-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-leagues-list li {
    border-bottom: 1px solid var(--border-color-light);
}

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

.related-leagues-list a {
    display: block;
    padding: var(--space-sm) 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.related-leagues-list a:hover {
    color: var(--league-color);
    padding-left: var(--space-xs);
}

/* Top Scorers List */
.top-scorers-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.scorer-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.scorer-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.scorer-rank {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--league-color);
    min-width: 20px;
    text-align: center;
}

.scorer-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.scorer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scorer-info {
    flex: 1;
    min-width: 0;
}

.scorer-name {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scorer-team {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scorer-stats-compact {
    display: flex;
    gap: var(--space-xs);
    margin-top: 2px;
    flex-wrap: wrap;
}

.stat-badge {
    font-size: 0.65rem;
    padding: 2px 4px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.scorer-goals {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-primary);
    min-width: 24px;
    text-align: right;
}

/* Team Profile Styles */
.team-profile-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--space-xl);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border-color);
}

.team-info {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.team-logo-large {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.team-info h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.team-details {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.back-button {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.back-button:hover {
    background: var(--border-color);
}

/* Team Tabs */
.team-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    border-bottom: 2px solid var(--border-color);
}

.team-tab {
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: -2px;
}

.team-tab:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.team-tab.active {
    color: var(--brand-green);
    border-bottom-color: var(--brand-green);
}

.team-tab-content {
    display: none;
}

.team-tab-content.active {
    display: block;
}

.team-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.team-stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
}

.team-stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-stat-value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.team-section {
    margin-bottom: var(--space-2xl);
}

.team-section-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    border-bottom: 2px solid var(--brand-green);
    padding-bottom: var(--space-sm);
}

.team-fixtures-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.team-fixture-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.team-fixture-item:hover {
    border-color: var(--brand-green);
}

.team-fixture-date {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.team-fixture-teams {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.team-fixture-score {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    min-width: 60px;
    text-align: center;
}

.team-squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
}

.team-player-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
}

.team-player-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.team-player-position {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .team-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .team-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-logo-large {
        width: 60px;
        height: 60px;
    }

    .team-info h1 {
        font-size: var(--font-size-2xl);
    }

    .team-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-squad-grid {
        grid-template-columns: 1fr;
    }
}
