/* Futbol Turnuvası - Professional Modern Design */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    /* Primary Colors - Modern Green Palette */
    --primary-gradient: linear-gradient(135deg, #1a5928 0%, #2d8f3e 50%, #3cb371 100%);
    --primary-dark: #1a5928;
    --primary: #2d8f3e;
    --primary-light: #3cb371;
    --primary-lighter: #90EE90;
    
    /* Accent Colors */
    --accent: #10b981;
    --accent-light: #34d399;
    
    /* Neutral Colors */
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    
    /* Status Colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);
    --shadow-glow: 0 0 40px rgba(45, 143, 62, 0.3);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-bounce: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

/* Modern Navbar */
.navbar {
    background: var(--primary-gradient) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg), 0 4px 30px rgba(45, 143, 62, 0.2);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand i, .navbar-brand svg {
    font-size: 1.8rem;
}

/* Navbar Logo & Title */
.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.navbar-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.navbar-title {
    font-size: 1.4rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.nav-link {
    font-weight: 500;
    padding: 0.6rem 1rem !important;
    border-radius: var(--radius);
    margin: 0 0.15rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 60%;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section / Jumbotron */
.hero-section,
.jumbotron {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 3.5rem 2.5rem;
    color: var(--white);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.hero-section::before,
.jumbotron::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    transform: rotate(-15deg);
    pointer-events: none;
}

.hero-section::after,
.jumbotron::after {
    content: '\26BD';  /* Unicode for soccer ball */
    font-family: 'Font Awesome 6 Free', 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8rem;
    opacity: 0.15;
    pointer-events: none;
}

.hero-section h1,
.jumbotron h1,
.jumbotron .display-4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.75rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.hero-section .lead,
.jumbotron .lead {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
}

/* Modern Cards */
.card {
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    overflow: hidden;
}

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

.card-header {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-header h5 {
    color: var(--white);
    margin: 0;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--gray-900);
}

/* Glass Card Variant */
.card-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Stats Cards */
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.stat-card h5 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-card p {
    color: var(--gray-600);
    font-weight: 500;
    margin: 0;
}

/* Modern Tables */
.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--primary-gradient);
    color: var(--white);
    font-weight: 600;
    padding: 0.875rem 1rem;
    border: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.table thead th:first-child {
    border-radius: var(--radius-lg) 0 0 0;
}

.table thead th:last-child {
    border-radius: 0 var(--radius-lg) 0 0;
}

.table tbody tr {
    transition: var(--transition);
    background: var(--white);
}

.table tbody tr:hover {
    background: linear-gradient(90deg, var(--gray-50) 0%, var(--white) 100%);
}

.table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
}

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

.table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 var(--radius-lg);
}

.table tbody tr:last-child td:last-child {
    border-radius: 0 0 var(--radius-lg) 0;
}

.table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.table-container:hover {
    box-shadow: var(--shadow-lg);
}

.table-success thead th,
.table-success {
    background: var(--primary-gradient) !important;
    color: var(--white) !important;
}
    color: var(--white) !important;
}

/* Modern Buttons */
.btn {
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn:hover::before {
    left: 100%;
}

.btn-success,
.btn-primary-custom {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(45, 143, 62, 0.3);
}

.btn-success:hover,
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 143, 62, 0.4);
}

.btn-outline-success {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-success:hover {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.5em 1em;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--transition);
}

.badge:hover {
    transform: scale(1.05);
}

.badge.bg-success {
    background: var(--primary-gradient) !important;
    box-shadow: 0 2px 8px rgba(45, 143, 62, 0.25);
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%) !important;
    color: var(--gray-900);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.badge.bg-info {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.badge.bg-secondary {
    background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-500) 100%) !important;
}

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Section Headers */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

/* Team Color Circle */
.team-color-circle {
    border-radius: 50%;
    box-shadow: var(--shadow), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 3px solid rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.team-color-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 70%);
    pointer-events: none;
}

.team-color-circle i {
    font-size: 0.6em;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.team-color-circle:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--shadow-md), inset 0 -2px 4px rgba(0, 0, 0, 0.15);
    border-color: var(--white);
}

/* Match Cards */
.match-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    border: 1px solid var(--gray-100);
}

.match-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.match-card .vs {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0.5rem;
}

.match-card .score {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 2rem 0;
    margin-top: auto;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover,
footer a.hover-primary:hover {
    color: var(--white);
    transform: translateY(-2px);
}

footer .hover-primary {
    transition: var(--transition);
}

/* Container adjustments */
.container {
    max-width: 1200px;
}

main{
    min-height: 100vh;
}

main.py-4 {
    padding: 2.5rem 0 !important;
}

/* Form Controls */
.form-control {
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 143, 62, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(45, 143, 62, 0.15) 100%);
    color: var(--primary-dark);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(185, 28, 28, 0.15) 100%);
    color: #b91c1c;
    border-left: 4px solid var(--danger);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

/* Standing Position Highlights */
.standing-champion {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%) !important;
}

.standing-promotion {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.1) 0%, transparent 100%) !important;
}

.standing-relegation {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, transparent 100%) !important;
}

/* Position badges in standings */
.position-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.position-badge-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #7c5c00;
}

.position-badge-2 {
    background: linear-gradient(135deg, #a8a8a8 0%, #d0d0d0 100%);
    color: #1a1a1a;
    font-weight: 800;
}

.position-badge-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a857 100%);
    color: #5a3d1a;
}

/* Jersey Number Style */
.jersey-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.jersey-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
}

.jersey-icon:hover {
    transform: scale(1.1);
}

/* Player Photo */
.player-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-collapse {
        background: var(--dark-soft);
        border-radius: var(--radius-lg);
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-link::before {
        display: none;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: var(--radius);
        margin: 0.25rem 0;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    /* Navbar tablet */
    .navbar-logo {
        height: 45px;
        max-width: 130px;
    }
    
    .navbar-icon {
        font-size: 1.75rem;
    }
    
    .navbar-title {
        font-size: 1.25rem;
        max-width: 200px;
    }
    
    .hero-section,
    .jumbotron {
        padding: 2rem 1.25rem;
        border-radius: var(--radius-lg);
        margin-bottom: 1.25rem;
    }
    
    .hero-section h1,
    .jumbotron h1,
    .jumbotron .display-4 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .hero-section .lead,
    .jumbotron .lead {
        font-size: 1rem;
    }
    
    .hero-section::after,
    .jumbotron::after {
        font-size: 4rem;
        opacity: 0.08;
        right: 2%;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.6rem 0.4rem;
    }
    
    .page-header {
        margin-bottom: 1.25rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .page-header p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .section-title {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }
    
    .match-card {
        padding: 1rem;
        margin-bottom: 0.875rem;
    }
    
    .stat-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Responsive grid spacing */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Live Match Cards Mobile */
    .live-score-badge .display-4 {
        font-size: 2rem !important;
    }
    
    .live-score-badge .display-6 {
        font-size: 1.25rem !important;
    }
    
    /* Card improvements for mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    .card:hover {
        transform: none;
    }
    
    /* Jersey number mobile */
    .jersey-icon {
        width: 36px !important;
        height: 40px !important;
    }
    
    /* Buttons mobile */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.25rem;
        font-size: 1rem;
    }
    
    /* Score display mobile */
    .score {
        font-size: 1rem;
    }
    
    /* Position badge mobile */
    .position-badge {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    /* Navbar mobile */
    .navbar-logo {
        height: 40px;
        max-width: 120px;
    }
    
    .navbar-icon {
        font-size: 1.5rem;
        margin-right: 0.35rem;
    }
    
    .navbar-title {
        font-size: 1.1rem;
        max-width: 150px;
    }
    
    .navbar-brand {
        max-width: calc(100% - 50px);
    }
    
    .navbar-toggler {
        padding: 0.35rem 0.5rem;
        font-size: 1rem;
    }
    
    /* Container */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Cards */
    .card {
        border-radius: var(--radius-lg);
        margin-bottom: 0.875rem;
    }
    
    .card-body {
        padding: 0.875rem;
    }
    
    .stat-card h5 {
        font-size: 1.75rem;
    }
    
    .stat-card p {
        font-size: 0.85rem;
    }
    
    /* Hero section mobile */
    .hero-section,
    .jumbotron {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-section h1,
    .jumbotron h1,
    .jumbotron .display-4 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    .hero-section .lead,
    .jumbotron .lead {
        font-size: 0.9rem;
        margin-bottom: 1rem !important;
    }
    
    .hero-section .btn,
    .jumbotron .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-section .d-flex.flex-wrap,
    .jumbotron .d-flex.flex-wrap {
        flex-direction: column;
    }
    
    /* Table mobile */
    .table {
        font-size: 0.75rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.5rem 0.35rem;
        white-space: normal;
        word-break: break-word;
    }
    
    .table thead th {
        font-size: 0.65rem;
        letter-spacing: 0;
    }
    
    /* Page header mobile */
    .page-header h1 {
        font-size: 1.35rem;
    }
    
    .page-header p {
        font-size: 0.85rem;
    }
    
    /* Section title mobile */
    .section-title {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .section-title::before {
        width: 3px;
        height: 1.25rem;
    }
    
    /* Match card mobile */
    .match-card {
        padding: 0.75rem;
    }
    
    .match-card h6 {
        font-size: 0.8rem;
    }
    
    /* Live matches mobile */
    .live-score-badge .display-4 {
        font-size: 1.5rem !important;
    }
    
    .live-score-badge .display-6 {
        font-size: 1rem !important;
    }
    
    /* Player list mobile */
    .player-photo,
    .rounded-circle {
        width: 35px !important;
        height: 35px !important;
    }
    
    .jersey-icon {
        width: 32px !important;
        height: 36px !important;
    }
    
    /* Badge mobile */
    .badge {
        padding: 0.35em 0.75em;
        font-size: 0.7rem;
    }
    
    .badge.fs-4 {
        font-size: 1rem !important;
        padding: 0.5em 1em;
    }
    
    .badge.fs-5 {
        font-size: 0.9rem !important;
    }
    
    .badge.fs-6 {
        font-size: 0.8rem !important;
    }
    
    /* Footer mobile */
    footer {
        padding: 1.5rem 0;
    }
    
    footer p {
        font-size: 0.8rem;
    }
    
    /* Navbar brand mobile */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand i {
        font-size: 1.4rem;
    }
    
    /* Forms mobile */
    .form-control,
    .form-select {
        font-size: 0.85rem;
        padding: 0.45rem 0.7rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    /* Modal mobile */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: var(--radius-lg);
    }
    
    .modal-header {
        padding: 0.875rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    /* Navbar extra small */
    .navbar-logo {
        height: 35px;
        max-width: 100px;
    }
    
    .navbar-icon {
        font-size: 1.3rem;
        margin-right: 0.25rem;
    }
    
    .navbar-title {
        font-size: 0.95rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.4rem;
        font-size: 0.9rem;
    }
    
    /* Typography */
    .hero-section h1,
    .jumbotron h1,
    .jumbotron .display-4 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.15rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    h5 {
        font-size: 0.95rem;
    }
    
    h6 {
        font-size: 0.85rem;
    }
    
    /* Tables */
    .table {
        font-size: 0.7rem;
    }
    
    .table thead th {
        font-size: 0.6rem;
        padding: 0.4rem 0.2rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.35rem 0.25rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 0.75rem;
    }
    
    .card-body {
        padding: 0.625rem;
    }
    
    .card-header {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .match-card {
        padding: 0.5rem;
    }
    
    .match-card .flex-fill h6 {
        font-size: 0.7rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-card h5 {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        font-size: 0.8rem;
        padding: 0.4rem 0.65rem;
    }
    
    .form-label {
        font-size: 0.8rem;
    }
    
    /* Page elements */
    .page-header h1 {
        font-size: 1.15rem;
    }
    
    .page-header p {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 0.95rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand i {
        font-size: 1.2rem;
    }
    
    .navbar {
        padding: 0.4rem 0;
    }
    
    /* Images */
    .player-photo,
    .rounded-circle {
        width: 30px !important;
        height: 30px !important;
    }
    
    .jersey-icon {
        width: 28px !important;
        height: 32px !important;
    }
    
    /* Badges */
    .badge {
        padding: 0.25em 0.5em;
        font-size: 0.65rem;
    }
    
    .position-badge {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }
    
    /* Modal */
    .modal-dialog {
        margin: 0.25rem;
    }
    
    .modal-header {
        padding: 0.75rem;
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    .modal-footer {
        padding: 0.625rem 0.75rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    /* Container */
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Grid */
    .row {
        margin-left: -0.375rem;
        margin-right: -0.375rem;
    }
    
    .row > * {
        padding-left: 0.375rem;
        padding-right: 0.375rem;
    }
}

/* Team Logo and Badge Styles */
.team-logo {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-logo:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Enhanced Team Cards */
.team-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-slow);
}

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

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-light);
}

.team-card-logo {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 1.5rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.page-header h1 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.page-header p {
    margin: 0;
    color: var(--gray-600);
}

/* Enhanced Stat Cards */
.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.stat-item:hover {
    background: var(--gray-100);
    transform: translateX(5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Live Match Enhancements */
.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    margin-right: 0.5rem;
}

/* Score Display */
.score-display {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* Modern Badge Styles */
.badge-modern {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Improved Table Responsive */
.table-responsive {
    border-radius: var(--radius-lg);
}

@media (max-width: 767px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}
