/* main.css - Tüm CSS Stilleri */

/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */

:root {
    /* Renk Paleti */
    --primary-color: #2E8B57;
    --primary-dark: #1A5D3A;
    --primary-light: #4CAF84;
    --primary-gradient: linear-gradient(135deg, #2E8B57 0%, #1A5D3A 100%);
    
    --secondary-color: #1A365D;
    --secondary-dark: #0F1F3D;
    --secondary-light: #2D4B8A;
    --secondary-gradient: linear-gradient(135deg, #1A365D 0%, #0F1F3D 100%);
    
    --accent-color: #FF6B35;
    --accent-dark: #E05A2B;
    --accent-light: #FF8B5C;
    --accent-gradient: linear-gradient(135deg, #FF6B35 0%, #E05A2B 100%);
    
    /* Durum Renkleri */
    --success-color: #10B981;
    --success-light: #D1FAE5;
    --warning-color: #F59E0B;
    --warning-light: #FEF3C7;
    --danger-color: #EF4444;
    --danger-light: #FEE2E2;
    --info-color: #3B82F6;
    --info-light: #DBEAFE;
    
    /* Nötr Renkler */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --black: #000000;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', var(--font-primary);
    --font-mono: 'Roboto Mono', monospace;
    
    /* Font Size Scale */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 3.75rem;    /* 60px */
    
    /* Spacing */
    --space-0: 0;
    --space-1: 0.25rem;     /* 4px */
    --space-2: 0.5rem;      /* 8px */
    --space-3: 0.75rem;     /* 12px */
    --space-4: 1rem;        /* 16px */
    --space-5: 1.25rem;     /* 20px */
    --space-6: 1.5rem;      /* 24px */
    --space-8: 2rem;        /* 32px */
    --space-10: 2.5rem;     /* 40px */
    --space-12: 3rem;       /* 48px */
    --space-16: 4rem;       /* 64px */
    --space-20: 5rem;       /* 80px */
    --space-24: 6rem;       /* 96px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;   /* 4px */
    --radius-md: 0.375rem;  /* 6px */
    --radius-lg: 0.5rem;    /* 8px */
    --radius-xl: 0.75rem;   /* 12px */
    --radius-2xl: 1rem;     /* 16px */
    --radius-3xl: 1.5rem;   /* 24px */
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Animations */
    --animation-fade-in: fadeIn 0.5s ease-out;
    --animation-slide-up: slideUp 0.6s ease-out;
    --animation-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    --animation-bounce: bounce 1s infinite;
    --animation-shimmer: shimmer 2s infinite;
    
    /* Z-index Layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: var(--space-0); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: var(--space-0); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.p-0 { padding: var(--space-0); }
.p-2 { padding: var(--space-2); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-grid { display: grid; }

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-none { box-shadow: none; }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-accent { background-color: var(--accent-color); }
.bg-success { background-color: var(--success-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-info { background-color: var(--info-color); }
.bg-white { background-color: var(--white); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-200 { background-color: var(--gray-200); }
.bg-gray-900 { background-color: var(--gray-900); }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.text-info { color: var(--info-color); }
.text-white { color: var(--white); }
.text-gray-50 { color: var(--gray-50); }
.text-gray-100 { color: var(--gray-100); }
.text-gray-200 { color: var(--gray-200); }
.text-gray-900 { color: var(--gray-900); }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }

/* Gradient Text */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==========================================================================
   2. LOADING OVERLAY
   ========================================================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    transition: opacity var(--transition-slow);
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    animation: float 2s ease-in-out infinite;
}

.loading-text {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    opacity: 0.9;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: var(--accent-color);
    border-radius: var(--radius-full);
    animation: shimmer 2s infinite linear;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */

.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-normal);
    border-bottom: 1px solid var(--gray-200);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--text-xl);
    color: var(--secondary-color);
}

.logo i {
    background: var(--primary-gradient);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-lg);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-link {
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--gray-50);
}

.nav-link.active {
    color: var(--primary-color);
    background: var(--gray-50);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: var(--text-xl);
    color: var(--gray-700);
    cursor: pointer;
    padding: var(--space-2);
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    font-size: var(--text-base);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.2) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn:hover::before {
    opacity: 1;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-ghost:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-group {
    display: inline-flex;
    gap: var(--space-2);
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */

.hero-section {
    background: var(--secondary-gradient);
    color: var(--white);
    padding: var(--space-16) 0;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeIn 0.8s ease-out;
}

.hero-title {
    font-size: var(--text-6xl);
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #E0F7FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--accent-color);
    border-radius: var(--radius-full);
    opacity: 0.3;
}

.hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-8);
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item i {
    font-size: var(--text-2xl);
    color: var(--accent-color);
}

.stat-value {
    font-size: var(--text-2xl);
    font-weight: 800;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    opacity: 0.9;
    display: block;
}

.hero-search {
    margin-bottom: var(--space-8);
}

.search-form {
    position: relative;
}

.search-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.search-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-wrapper i {
    padding: var(--space-4);
    color: var(--white);
    font-size: var(--text-lg);
}

.search-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: var(--space-4);
    color: var(--white);
    font-size: var(--text-base);
    outline: none;
    width: 100%;
}

.search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-wrapper .btn {
    border-radius: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin-top: var(--space-2);
    z-index: var(--z-dropdown);
    display: none;
    overflow: hidden;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    text-decoration: none;
    color: var(--gray-800);
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--gray-100);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--gray-50);
    color: var(--primary-color);
}

.suggestion-item i {
    color: var(--gray-500);
    width: 20px;
    text-align: center;
}

.hero-image {
    animation: slideInRight 0.8s ease-out;
}

.live-match-preview {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.live-match {
    text-align: center;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--danger-color);
    color: var(--white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-badge i {
    font-size: var(--text-xs);
    animation: pulse 2s infinite;
}

.league-name {
    font-size: var(--text-sm);
    opacity: 0.9;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.match-teams .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
}

.match-teams .team img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-2);
    background: rgba(255, 255, 255, 0.1);
}

.match-teams .team-name {
    font-weight: 700;
    font-size: var(--text-lg);
}

.match-score {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-3xl);
    font-weight: 800;
    font-family: var(--font-mono);
}

.match-score .score {
    min-width: 40px;
    text-align: center;
}

.match-score .divider {
    opacity: 0.5;
}

.match-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    opacity: 0.9;
}

/* ==========================================================================
   6. LIVE MATCHES SECTION
   ========================================================================== */

.live-matches-section {
    padding: var(--space-16) 0;
    background: var(--gray-50);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-3xl);
    color: var(--gray-900);
    margin-bottom: 0;
}

.section-title i {
    color: var(--primary-color);
}

.live-count {
    background: var(--danger-color);
    color: var(--white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
    margin-left: var(--space-3);
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-6);
}

.match-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.match-card.live {
    border-left: 4px solid var(--danger-color);
    animation: pulse 2s infinite;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.league-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.league-info img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.league-info span {
    font-weight: 600;
    color: var(--gray-800);
    font-size: var(--text-sm);
}

.match-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-status.live {
    color: var(--danger-color);
}

.match-status.live i {
    animation: pulse 2s infinite;
}

.match-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    text-align: center;
}

.team img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--gray-200);
    padding: var(--space-1);
    background: var(--white);
}

.team-name {
    font-weight: 700;
    color: var(--gray-900);
    font-size: var(--text-base);
}

.team-city {
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.match-score {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-2xl);
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--primary-color);
}

.match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-200);
}

.match-time {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.no-matches {
    text-align: center;
    padding: var(--space-12);
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
}

.no-matches i {
    font-size: var(--text-5xl);
    color: var(--gray-400);
    margin-bottom: var(--space-4);
}

.no-matches p {
    color: var(--gray-600);
    margin-bottom: var(--space-6);
}

/* ==========================================================================
   7. UPCOMING MATCHES SECTION
   ========================================================================== */

.upcoming-matches-section {
    padding: var(--space-16) 0;
}

.date-filter {
    display: flex;
    gap: var(--space-2);
}

.filter-btn {
    padding: var(--space-2) var(--space-4);
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background: var(--gray-200);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.matches-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.timeline-match {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    background: var(--white);
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    border: 1px solid var(--gray-200);
}

.timeline-match:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.match-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.match-date .day {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.match-date .month {
    font-size: var(--text-sm);
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-info {
    flex: 1;
}

.league {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.league img {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.league span {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.teams .team {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
}

.teams .team img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.teams .team span {
    font-weight: 600;
    color: var(--gray-900);
}

.vs {
    color: var(--gray-500);
    font-size: var(--text-sm);
    font-weight: 700;
}

.match-time {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.match-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.match-action:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(2px);
}

/* ==========================================================================
   8. STATISTICS SECTION
   ========================================================================== */

.stats-section {
    padding: var(--space-16) 0;
    background: var(--gray-50);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.stat-card {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-6);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--white);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   9. LEAGUES SECTION
   ========================================================================== */

.leagues-section {
    padding: var(--space-16) 0;
}

.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-6);
}

.league-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
}

.league-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.league-header {
    padding: var(--space-6);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.league-header img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--gray-200);
    padding: var(--space-1);
    background: var(--white);
}

.league-info h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.league-stats {
    display: flex;
    gap: var(--space-4);
}

.league-stats span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.league-stats i {
    color: var(--primary-color);
}

.league-standings {
    padding: var(--space-4);
}

.standing-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.standing-row:hover {
    background: var(--gray-50);
}

.standing-row .position {
    width: 30px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

.standing-row img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.team-name {
    flex: 1;
    font-weight: 600;
    color: var(--gray-900);
    font-size: var(--text-sm);
}

.points {
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

.league-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

/* ==========================================================================
   10. NEWS SECTION
   ========================================================================== */

.news-section {
    padding: var(--space-16) 0;
    background: var(--gray-50);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-6);
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--primary-color);
    color: var(--white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.news-content {
    padding: var(--space-6);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.news-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    line-height: 1.4;
}

.news-title a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--gray-600);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-200);
}

.read-more {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.read-more:hover {
    gap: var(--space-3);
    color: var(--primary-dark);
}

.news-stats {
    display: flex;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.news-stats span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* ==========================================================================
   11. TOP SCORERS SECTION
   ========================================================================== */

.top-scorers-section {
    padding: var(--space-16) 0;
}

.scorers-table {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.table-header {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}

.table-header .row {
    display: grid;
    grid-template-columns: 1fr 5fr 3fr 3fr;
    gap: var(--space-4);
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--text-sm);
}

.table-body {
    padding: var(--space-2);
}

.table-body .row {
    display: grid;
    grid-template-columns: 1fr 5fr 3fr 3fr;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    align-items: center;
}

.table-body .row:hover {
    background: var(--gray-50);
}

.rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-full);
    font-weight: 700;
}

.rank.top-1 {
    background: var(--accent-gradient);
    color: var(--white);
}

.rank.top-2 {
    background: var(--gray-300);
    color: var(--gray-900);
}

.rank.top-3 {
    background: var(--warning-light);
    color: var(--warning-color);
}

.player-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.player-info img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--gray-200);
}

.player-name {
    font-weight: 600;
    color: var(--gray-900);
}

.player-position {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.team-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.team-info img {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.team-info span {
    font-weight: 600;
    color: var(--gray-800);
    font-size: var(--text-sm);
}

.goals {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.goals-count {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.penalty {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

/* ==========================================================================
   12. CTA SECTION
   ========================================================================== */

.cta-section {
    padding: var(--space-16) 0;
    background: var(--primary-gradient);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-6);
    color: var(--white);
}

.cta-content p {
    font-size: var(--text-xl);
    margin-bottom: var(--space-8);
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-column-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-4);
    position: relative;
    padding-bottom: var(--space-2);
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

.footer-links {
    list-style: none;
}

.footer-link {
    color: var(--gray-400);
    text-decoration: none;
    display: block;
    padding: var(--space-2) 0;
    transition: all var(--transition-fast);
}

.footer-link:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-800);
    text-align: center;
    color: var(--gray-500);
    font-size: var(--text-sm);
}

.social-links {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    color: var(--white);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* ==========================================================================
   14. RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .hero-title {
        font-size: var(--text-5xl);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .matches-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .leagues-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --text-3xl: 1.75rem;
        --text-2xl: 1.5rem;
        --text-xl: 1.25rem;
        --text-lg: 1.125rem;
    }
    
    .hero-section {
        padding: var(--space-12) 0;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: var(--space-6);
        box-shadow: var(--shadow-xl);
        border-radius: var(--radius-2xl);
        margin: var(--space-4);
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: var(--space-3);
        border-radius: var(--radius-lg);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header .row,
    .table-body .row {
        grid-template-columns: 1fr 3fr 2fr 1fr;
        font-size: var(--text-xs);
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .leagues-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .search-wrapper {
        flex-direction: column;
    }
    
    .search-wrapper .btn {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
    
    .match-content {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .match-teams {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .teams {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .table-header .row,
    .table-body .row {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .team-info span {
        display: none;
    }
}

/* ==========================================================================
   15. DARK MODE
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --gray-50: #111827;
        --gray-100: #1F2937;
        --gray-200: #374151;
        --gray-300: #4B5563;
        --gray-400: #9CA3AF;
        --gray-500: #D1D5DB;
        --gray-600: #E5E7EB;
        --gray-700: #F3F4F6;
        --gray-800: #F9FAFB;
        --gray-900: #FFFFFF;
        --white: #111827;
        --black: #FFFFFF;
    }
    
    body {
        background: var(--gray-50);
        color: var(--gray-500);
    }
    
    .header {
        background: var(--gray-100);
        border-bottom-color: var(--gray-200);
    }
    
    .match-card,
    .league-card,
    .news-card,
    .scorers-table,
    .no-matches {
        background: var(--gray-100);
        border-color: var(--gray-200);
    }
    
    .team-name,
    .league-info span,
    .standing-row .team-name,
    .news-title a {
        color: var(--gray-800);
    }
    
    .footer {
        background: var(--black);
    }
}

/* ==========================================================================
   16. PRINT STYLES
   ========================================================================== */

@media print {
    .header,
    .footer,
    .cta-section,
    .social-links,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .hero-section {
        padding: 1cm 0;
        background: none;
        color: #000;
        clip-path: none;
    }
    
    .match-card,
    .league-card,
    .news-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .no-matches {
        background: none;
        box-shadow: none;
    }
}

/* ==========================================================================
   17. ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !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: 0;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    border-radius: var(--radius-md);
    z-index: var(--z-modal);
}

.skip-to-content:focus {
    top: var(--space-4);
}

.focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ==========================================================================
   18. CUSTOM SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

::-webkit-scrollbar-thumb:active {
    background: var(--primary-color);
}

/* ==========================================================================
   19. FORM ELEMENTS
   ========================================================================== */

input,
select,
textarea {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    padding: var(--space-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--gray-800);
    transition: all var(--transition-fast);
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-500);
}

/* ==========================================================================
   20. CUSTOM COMPONENTS
   ========================================================================== */

/* Badge */
.badge {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-primary {
    background: var(--primary-gradient);
    color: var(--white);
}

.badge-secondary {
    background: var(--secondary-gradient);
    color: var(--white);
}

.badge-accent {
    background: var(--accent-gradient);
    color: var(--white);
}

.badge-success {
    background: var(--success-color);
    color: var(--white);
}

.badge-warning {
    background: var(--warning-color);
    color: var(--white);
}

.badge-danger {
    background: var(--danger-color);
    color: var(--white);
}

/* Alert */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    margin-bottom: var(--space-4);
}

.alert-success {
    background: var(--success-light);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-warning {
    background: var(--warning-light);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-danger {
    background: var(--danger-light);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-info {
    background: var(--info-light);
    border-color: var(--info-color);
    color: var(--info-color);
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background: var(--gray-900);
    color: var(--white);
    text-align: center;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    position: absolute;
    z-index: var(--z-tooltip);
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    font-size: var(--text-sm);
    font-weight: normal;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--gray-900) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Progress Bar */
.progress {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-lg {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: var(--radius-full);
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.ripple:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: var(--space-4);
    right: var(--space-4);
    padding: var(--space-4) var(--space-6);
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.toast-success {
    background: var(--success-color);
}

.toast-warning {
    background: var(--warning-color);
}

.toast-danger {
    background: var(--danger-color);
}

.toast-info {
    background: var(--info-color);
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: var(--text-lg);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.toast-close:hover {
    opacity: 1;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.modal-title {
    font-size: var(--text-2xl);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--text-xl);
    color: var(--gray-600);
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
}

.page-item {
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.page-link:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.page-item.active .page-link {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Tabs */
.tabs {
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--space-6);
}

.tab-list {
    display: flex;
    gap: var(--space-4);
    list-style: none;
    overflow-x: auto;
}

.tab-item {
    flex-shrink: 0;
}

.tab-link {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tab-link:hover {
    color: var(--gray-900);
}

.tab-item.active .tab-link {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    padding: var(--space-6) 0;
}

/* Accordion */
.accordion {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--gray-200);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: var(--space-4);
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.accordion-header:hover {
    background: var(--gray-50);
}

.accordion-icon {
    transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 var(--space-4);
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.accordion-item.active .accordion-content {
    padding: var(--space-4);
    max-height: 1000px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-6);
}

/* Statistics Counter */
.counter {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

/* Live Update Indicator */
.live-update-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--gray-600);
}

.live-update-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

/* Match Events Timeline */
.match-events {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.match-event {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.match-event-time {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--primary-color);
    min-width: 30px;
}

.match-event-type {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.match-event-type.goal {
    background: var(--success-color);
}

.match-event-type.card {
    background: var(--warning-color);
}

.match-event-type.substitution {
    background: var(--info-color);
}

.match-event-player {
    flex: 1;
    font-weight: 600;
    color: var(--gray-900);
}

/* League Standings Table */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.standings-table th {
    background: var(--gray-100);
    padding: var(--space-3);
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--text-xs);
    border-bottom: 1px solid var(--gray-200);
}

.standings-table td {
    padding: var(--space-3);
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-800);
}

.standings-table tr:last-child td {
    border-bottom: none;
}

.standings-table tr:hover {
    background: var(--gray-50);
}

.standings-table .team-cell {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.standings-table .position {
    width: 30px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
}

.standings-table .form {
    display: flex;
    gap: var(--space-1);
}

.standings-table .form-indicator {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
}

.standings-table .form-indicator.win {
    background: var(--success-color);
}

.standings-table .form-indicator.draw {
    background: var(--warning-color);
}

.standings-table .form-indicator.lose {
    background: var(--danger-color);
}

/* Player Stats */
.player-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.player-stat-item {
    background: var(--gray-50);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    text-align: center;
}

.player-stat-value {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: var(--space-1);
    font-family: var(--font-mono);
}

.player-stat-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Match Statistics */
.match-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.stat-bar-label {
    width: 120px;
    font-weight: 600;
    color: var(--gray-900);
    font-size: var(--text-sm);
}

.stat-bar-value {
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-mono);
    width: 40px;
    text-align: right;
}

.stat-bar-track {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

/* Live Commentary */
.live-commentary {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.commentary-item {
    padding: var(--space-3);
    border-bottom: 1px solid var(--gray-100);
}

.commentary-item:last-child {
    border-bottom: none;
}

.commentary-time {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--primary-color);
    margin-right: var(--space-2);
}

.commentary-text {
    color: var(--gray-800);
}

/* Team Formation */
.team-formation {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    position: relative;
}

.formation-field {
    height: 300px;
    background: linear-gradient(to bottom, #2E8B57 0%, #1A5D3A 100%);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--gray-300);
}

.formation-player {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gray-900);
    font-size: var(--text-sm);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Heatmap */
.heatmap {
    width: 100%;
    height: 200px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.heatmap-point {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    opacity: 0.7;
    transform: translate(-50%, -50%);
}

/* Match Head to Head */
.h2h-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    text-align: center;
}

.h2h-stat {
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.h2h-stat-value {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: var(--space-1);
    font-family: var(--font-mono);
}

.h2h-stat-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
}

/* Live Score Ticker */
.score-ticker {
    background: var(--primary-gradient);
    color: var(--white);
    padding: var(--space-2) 0;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding: 0 var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.ticker-match {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* League Fixtures */
.fixtures-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.fixtures-table th {
    background: var(--gray-100);
    padding: var(--space-3);
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--gray-200);
}

.fixtures-table td {
    padding: var(--space-3);
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-800);
}

.fixtures-table tr:last-child td {
    border-bottom: none;
}

.fixtures-table .fixture-date {
    color: var(--gray-600);
    font-size: var(--text-sm);
    white-space: nowrap;
}

.fixtures-table .fixture-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.fixtures-table .fixture-team {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
}

.fixtures-table .fixture-team.home {
    justify-content: flex-end;
    text-align: right;
}

.fixtures-table .fixture-vs {
    color: var(--gray-500);
    font-weight: 700;
}

/* ==========================================================================
   21. PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.backface-hidden {
    backface-visibility: hidden;
}

.transform-3d {
    transform: translateZ(0);
}

.content-visibility-auto {
    content-visibility: auto;
}

/* ==========================================================================
   22. BROWSER SPECIFIC FIXES
   ========================================================================== */

/* Firefox */
@ -moz-document url-prefix() {
    .hero-section::before {
        background: 
            radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%) no-repeat,
            radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%) no-repeat;
    }
}

/* Safari */
@media not all and (min-resolution: 0.001dpcm) {
    @supports (-webkit-appearance: none) {
        .gradient-text {
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
    }
}

/* Edge */
@supports (-ms-ime-align: auto) {
    .gradient-text {
        background: var(--primary-gradient);
        color: transparent;
    }
}

/* ==========================================================================
   23. UTILITY CLASSES FOR JS INTERACTIONS
   ========================================================================== */

.js-hidden {
    display: none !important;
}

.js-visible {
    display: block !important;
}

.js-loading {
    position: relative;
    overflow: hidden;
}

.js-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    animation: var(--animation-shimmer);
}

.js-updated {
    animation: highlightUpdate 1s ease-out;
}

@keyframes highlightUpdate {
    0% {
        background-color: rgba(16, 185, 129, 0.3);
    }
    100% {
        background-color: transparent;
    }
}

/* ==========================================================================
   24. PRINT OPTIMIZATIONS
   ========================================================================== */

@media print {
    @page {
        margin: 0.5in;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 {
        font-size: 24pt;
    }
    
    h2 {
        font-size: 18pt;
    }
    
    h3 {
        font-size: 14pt;
    }
    
    .no-print {
        display: none !important;
    }
    
    .page-break {
        page-break-before: always;
    }
    
    .avoid-break {
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   25. FALLBACK STYLES FOR OLD BROWSERS
   ========================================================================== */

/* IE 11 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .hero-content {
        display: flex;
        flex-direction: column;
    }
    
    .stats-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    .stat-card {
        width: 300px;
        margin: 10px;
    }
    
    .grid {
        display: flex;
        flex-wrap: wrap;
    }
}

/* Legacy Edge */
@supports (-ms-ime-align: auto) {
    .search-suggestions {
        display: none;
    }
    
    .search-wrapper:focus-within .search-suggestions {
        display: block;
    }
}

/* ==========================================================================
   26. CUSTOM PROPERTIES FALLBACK
   ========================================================================== */

/* Fallback for browsers that don't support CSS Custom Properties */
@supports not (--css: variables) {
    :root {
        --primary-color: #2E8B57;
        --secondary-color: #1A365D;
        --accent-color: #FF6B35;
        --white: #FFFFFF;
        --gray-50: #F9FAFB;
        --gray-100: #F3F4F6;
        --gray-900: #111827;
    }
    
    .hero-section {
        background: linear-gradient(135deg, #1A365D 0%, #0F1F3D 100%);
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #2E8B57 0%, #1A5D3A 100%);
    }
}

/* ==========================================================================
   27. HIGH CONTRAST MODE
   ========================================================================== */

@media (prefers-contrast: high) {
    .hero-section {
        background: var(--secondary-color);
    }
    
    .btn-primary {
        background: var(--primary-color);
        border: 2px solid currentColor;
    }
    
    .match-card {
        border: 2px solid var(--gray-300);
    }
}

/* ==========================================================================
   28. REDUCED TRANSPARENCY
   ========================================================================== */

@media (prefers-reduced-transparency: reduce) {
    .hero-section::before,
    .stat-item,
    .search-wrapper,
    .live-match-preview {
        backdrop-filter: none;
        background: var(--secondary-color);
    }
    
    .stat-item {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* ==========================================================================
   29. CUSTOM SCROLL SNAP
   ========================================================================== */

.scroll-snap-container {
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4) 0;
}

.scroll-snap-item {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 300px;
}

/* ==========================================================================
   30. FINAL TOUCHES & POLISH
   ========================================================================== */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

/* Selection color */
::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Placeholder styling */
::-webkit-input-placeholder {
    color: var(--gray-500);
    opacity: 1;
}

::-moz-placeholder {
    color: var(--gray-500);
    opacity: 1;
}

:-ms-input-placeholder {
    color: var(--gray-500);
    opacity: 1;
}

:-moz-placeholder {
    color: var(--gray-500);
    opacity: 1;
}

/* Autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--white) inset !important;
    -webkit-text-fill-color: var(--gray-900) !important;
    caret-color: var(--gray-900);
}

/* Number input spinner */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: auto;
    cursor: pointer;
}

/* File input */
input[type="file"] {
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-right: var(--space-3);
}

/* Range input */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
}

/* Checkbox and Radio */
input[type="checkbox"],
input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: var(--space-2);
    vertical-align: middle;
}

/* Details summary */
details {
    margin-bottom: var(--space-4);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-900);
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: '▶';
    float: right;
    transition: transform var(--transition-fast);
}

details[open] summary::after {
    transform: rotate(90deg);
}

/* Mark styling */
mark {
    background: var(--warning-light);
    color: var(--gray-900);
    padding: 0 var(--space-1);
    border-radius: var(--radius-sm);
}

/* Code styling */
code {
    font-family: var(--font-mono);
    background: var(--gray-100);
    color: var(--danger-color);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
}

pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: 1.5;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Blockquote */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: var(--space-4);
    margin: var(--space-6) 0;
    font-style: italic;
    color: var(--gray-700);
}

blockquote cite {
    display: block;
    margin-top: var(--space-2);
    font-style: normal;
    color: var(--gray-600);
    font-size: var(--text-sm);
}

/* Horizontal Rule */
hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: var(--space-8) 0;
}

/* Definition List */
dl {
    margin: var(--space-4) 0;
}

dt {
    font-weight: 700;
    color: var(--gray-900);
    margin-top: var(--space-2);
}

dd {
    margin-left: var(--space-4);
    color: var(--gray-700);
}

/* Address */
address {
    font-style: normal;
    line-height: 1.6;
}

/* Time */
time {
    color: var(--gray-600);
    font-size: var(--text-sm);
}

/* Small */
small {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

/* Abbreviation */
abbr[title] {
    text-decoration: none;
    border-bottom: 1px dotted var(--gray-400);
    cursor: help;
}

/* Superscript and Subscript */
sup,
sub {
    font-size: var(--text-xs);
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

/* Keyboard */
kbd {
    font-family: var(--font-mono);
    background: var(--gray-100);
    color: var(--gray-900);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    font-size: var(--text-sm);
    box-shadow: 0 1px 0 var(--gray-300);
}

/* Variable */
var {
    font-family: var(--font-mono);
    font-style: italic;
    color: var(--primary-color);
}

/* Sample Output */
samp {
    font-family: var(--font-mono);
    background: var(--gray-100);
    color: var(--gray-900);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
}

/* Output */
output {
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-weight: 600;
}

/* Meter */
meter {
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
}

meter::-webkit-meter-bar {
    background: var(--gray-200);
    border: none;
    border-radius: var(--radius-full);
}

meter::-webkit-meter-optimum-value {
    background: var(--success-color);
    border-radius: var(--radius-full);
}

meter::-webkit-meter-suboptimum-value {
    background: var(--warning-color);
    border-radius: var(--radius-full);
}

meter::-webkit-meter-even-less-good-value {
    background: var(--danger-color);
    border-radius: var(--radius-full);
}

/* Progress */
progress {
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
}

progress::-webkit-progress-bar {
    background: var(--gray-200);
    border-radius: var(--radius-full);
}

progress::-webkit-progress-value {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

progress::-moz-progress-bar {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

/* Fieldset and Legend */
fieldset {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin: var(--space-4) 0;
}

legend {
    font-weight: 600;
    color: var(--gray-900);
    padding: 0 var(--space-2);
}

/* Optgroup */
optgroup {
    font-weight: 600;
    color: var(--gray-900);
}

optgroup option {
    font-weight: normal;
    color: var(--gray-700);
}

/* Datalist */
datalist {
    display: none;
}

/* ==========================================================================
   31. PERFORMANCE OPTIMIZATIONS (CONTINUED)
   ========================================================================== */

/* Containment for performance */
.contain-layout {
    contain: layout style paint;
}

.contain-content {
    contain: content;
}

.contain-strict {
    contain: strict;
}

/* Content visibility for off-screen content */
.lazy-load {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Will-change for animations */
.animate-transform {
    will-change: transform;
}

.animate-opacity {
    will-change: opacity;
}

/* Backface visibility for 3D transforms */
.preserve-3d {
    transform-style: preserve-3d;
}

.backface-hidden {
    backface-visibility: hidden;
}

/* Hardware acceleration */
.gpu-accelerated {
    transform: translateZ(0);
}

/* Image rendering */
.pixelated {
    image-rendering: pixelated;
}

.crisp-edges {
    image-rendering: crisp-edges;
}

/* Print styles for specific elements */
@media print {
    .print-break-before {
        page-break-before: always;
    }
    
    .print-break-after {
        page-break-after: always;
    }
    
    .print-break-inside-avoid {
        page-break-inside: avoid;
    }
    
    .print-hide {
        display: none !important;
    }
}

/* ==========================================================================
   32. END OF CSS FILE
   ========================================================================== */