/* 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 Blue Palette */
    --primary-gradient: linear-gradient(135deg, #163b70 0%, #1f5fbf 55%, #4d8de0 100%);
    --primary-dark: #163b70;
    --primary: #1f5fbf;
    --primary-light: #4d8de0;
    --primary-lighter: #dbe9ff;
    
    /* Accent Colors */
    --accent: #2f7de1;
    --accent-light: #7fb0f0;
    
    /* 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: #1f5fbf;
    --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(31, 95, 191, 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: auto;
}

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(--nav-gradient, 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: '';
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 8rem;
    height: 8rem;
    background-image: url('/uploads/site/33736.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    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;
    align-items: center;
}



.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;
    border-radius: 50px 50px 0 0;
}

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(31, 95, 191, 0.12);
}

.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(77, 141, 224, 0.16) 0%, rgba(31, 95, 191, 0.14) 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(31, 95, 191, 0.12) 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-success {
    background: linear-gradient(135deg, #4d8de0 0%, #1f5fbf 100%);
    color: #ffffff;
}

.position-badge-custom {
    background: var(--position-badge-color, #1f5fbf);
    color: #ffffff;
}


/* 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 {
        width: 4rem;
        height: 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;
        white-space: nowrap;
    }
    
    /* 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.10rem;
    }
    
    /* 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: 1px solid var(--gray-200);
    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);
    }
}

/* Navbar Dropdown (Desktop + Mobile stacked) */
.navbar .dropdown-menu{
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: .45rem;
    margin-top: .5rem;
}

.navbar .dropdown-item{
    color: rgba(255,255,255,0.92);
    border-radius: var(--radius);
    padding: .55rem .75rem;
    font-weight: 600;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus{
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.navbar .dropdown-item.active{
    background: rgba(255,255,255,0.20);
    color: #fff;
}

.navbar .dropdown-divider{
    border-top-color: rgba(255,255,255,0.16);
    margin: .35rem 0;
}

/* Mobilde dropdown'lar ALT ALTA (inline) açılsın */
@media (max-width: 991.98px){
    .navbar .dropdown-menu{
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: .25rem;
        padding: .35rem .25rem;
        background: rgba(255,255,255,0.10);
        border: 1px solid rgba(255,255,255,0.18);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: none;
    }

    .navbar .dropdown-item{
        padding: .55rem .6rem;
    }
}

/* Anchor scroll düzeltme: header yüksekliğini hesaba kat */
:root{
  --header-offset: 90px; /* varsayılan; JS ile dinamik set edeceğiz */
}

/* Tarayıcı anchor'a kaydırırken üstten pay bıraksın */
html{
  scroll-padding-top: var(--header-offset);
}

/* #id hedefleri header altında kalmasın */
[id]{
  scroll-margin-top: var(--header-offset);
}

/* Route-Aware Page Themes */
body[class*="route-"] {
    --page-shell-bg: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    --page-shell-overlay: radial-gradient(circle at 15% 10%, rgba(45, 143, 62, 0.12), transparent 36%),
        radial-gradient(circle at 85% 0%, rgba(16, 185, 129, 0.12), transparent 34%);
    --page-header-bg: linear-gradient(135deg, #f8fffb 0%, #edf8f1 100%);
    --page-accent: #2d8f3e;
    --page-title-gradient: linear-gradient(135deg, #1a5928 0%, #2d8f3e 100%);
    --page-card-border: rgba(45, 143, 62, 0.17);
    --page-card-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    --context-item-bg: rgba(255, 255, 255, 0.92);
    --context-icon-bg: rgba(45, 143, 62, 0.12);
    --nav-gradient: linear-gradient(120deg, #1a5928 0%, #2d8f3e 60%, #3cb371 100%);
}

body[class*="route-"] main.py-4 {
    position: relative;
    isolation: isolate;
}

body[class*="route-"] main.py-4::before,
body[class*="route-"] main.py-4::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

body[class*="route-"] main.py-4::before {
    z-index: -2;
    background: var(--page-shell-bg);
}

body[class*="route-"] main.py-4::after {
    z-index: -1;
    background: var(--page-shell-overlay);
}

body[class*="route-"] .page-header {
    background: var(--page-header-bg);
    box-shadow: var(--page-card-shadow);
}

body[class*="route-"] .page-header h1 {
    background: var(--page-title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body[class*="route-"] .card,
body[class*="route-"] .table-container,
body[class*="route-"] .match-card,
body[class*="route-"] .team-card {
    border: 1px solid var(--page-card-border);
}

body[class*="route-"] .card:hover,
body[class*="route-"] .match-card:hover,
body[class*="route-"] .team-card:hover {
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

body[class*="route-"] .section-title::before {
    background: var(--page-title-gradient);
}

.page-context-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--page-card-border);
    background: var(--page-header-bg);
    box-shadow: var(--shadow-sm);
}

.page-context-item {
    background: var(--context-item-bg);
    border-radius: var(--radius);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.page-context-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--context-icon-bg);
    color: var(--page-accent);
}

.page-context-label {
    font-size: 0.72rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.page-context-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
}

.page-context-note {
    font-size: 0.74rem;
    color: var(--gray-500);
    line-height: 1.2;
}

body.route-anasayfa,
body.route-turnuvalar-index {
    --page-shell-bg: linear-gradient(180deg, #f7fff8 0%, #eef8f1 100%);
    --page-shell-overlay: radial-gradient(circle at 12% 10%, rgba(22, 163, 74, 0.14), transparent 36%),
        radial-gradient(circle at 86% 6%, rgba(59, 130, 246, 0.12), transparent 33%);
    --page-header-bg: linear-gradient(135deg, #f8fff9 0%, #ecf8ee 100%);
    --page-accent: #2d8f3e;
    --page-title-gradient: linear-gradient(135deg, #14532d 0%, #2d8f3e 60%, #10b981 100%);
    --page-card-border: rgba(45, 143, 62, 0.18);
    --context-icon-bg: rgba(45, 143, 62, 0.14);
    --nav-gradient: linear-gradient(120deg, #14532d 0%, #2f855a 58%, #16a34a 100%);
}

body.route-turnuvalar-show {
    --page-shell-bg: linear-gradient(180deg, #f2f7ff 0%, #ebf4ff 100%);
    --page-shell-overlay: radial-gradient(circle at 8% 12%, rgba(30, 64, 175, 0.15), transparent 36%),
        radial-gradient(circle at 88% 0%, rgba(34, 197, 94, 0.13), transparent 35%);
    --page-header-bg: linear-gradient(140deg, #f4f9ff 0%, #e8f2ff 100%);
    --page-accent: #1e3a8a;
    --page-title-gradient: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #16a34a 100%);
    --page-card-border: rgba(30, 58, 138, 0.18);
    --context-icon-bg: rgba(30, 58, 138, 0.14);
    --nav-gradient: linear-gradient(120deg, #1e3a8a 0%, #1d4ed8 60%, #15803d 100%);
}

body.route-turnuvalar-canli-maclar {
    --page-shell-bg: linear-gradient(180deg, #fff5f5 0%, #fff1f2 100%);
    --page-shell-overlay: radial-gradient(circle at 10% 10%, rgba(239, 68, 68, 0.2), transparent 36%),
        radial-gradient(circle at 88% 4%, rgba(251, 146, 60, 0.17), transparent 34%);
    --page-header-bg: linear-gradient(135deg, #fff8f8 0%, #feecec 100%);
    --page-accent: #dc2626;
    --page-title-gradient: linear-gradient(135deg, #991b1b 0%, #dc2626 60%, #fb923c 100%);
    --page-card-border: rgba(220, 38, 38, 0.22);
    --context-icon-bg: rgba(220, 38, 38, 0.12);
    --nav-gradient: linear-gradient(120deg, #7f1d1d 0%, #dc2626 58%, #ea580c 100%);
}

body.route-turnuvalar-fikstur {
    --page-shell-bg: linear-gradient(180deg, #f3f8ff 0%, #edf5ff 100%);
    --page-shell-overlay: radial-gradient(circle at 16% 10%, rgba(37, 99, 235, 0.18), transparent 34%),
        radial-gradient(circle at 84% 0%, rgba(14, 165, 233, 0.16), transparent 36%);
    --page-header-bg: linear-gradient(135deg, #f6faff 0%, #eaf3ff 100%);
    --page-accent: #1d4ed8;
    --page-title-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 58%, #0ea5e9 100%);
    --page-card-border: rgba(29, 78, 216, 0.19);
    --context-icon-bg: rgba(37, 99, 235, 0.14);
    --nav-gradient: linear-gradient(120deg, #1e3a8a 0%, #2563eb 60%, #0891b2 100%);
}

body.route-turnuvalar-puan-durumu {
    --page-shell-bg: linear-gradient(180deg, #f2fdf7 0%, #eaf8f1 100%);
    --page-shell-overlay: radial-gradient(circle at 14% 9%, rgba(22, 163, 74, 0.16), transparent 35%),
        radial-gradient(circle at 85% 0%, rgba(21, 128, 61, 0.13), transparent 36%);
    --page-header-bg: linear-gradient(135deg, #f7fff9 0%, #e8f8ee 100%);
    --page-accent: #15803d;
    --page-title-gradient: linear-gradient(135deg, #14532d 0%, #15803d 52%, #22c55e 100%);
    --page-card-border: rgba(21, 128, 61, 0.18);
    --context-icon-bg: rgba(21, 128, 61, 0.12);
    --nav-gradient: linear-gradient(120deg, #14532d 0%, #15803d 58%, #16a34a 100%);
}

body.route-turnuvalar-gol-krali {
    --page-shell-bg: linear-gradient(180deg, #fff8ee 0%, #fff3e2 100%);
    --page-shell-overlay: radial-gradient(circle at 15% 11%, rgba(245, 158, 11, 0.2), transparent 35%),
        radial-gradient(circle at 84% 2%, rgba(249, 115, 22, 0.16), transparent 34%);
    --page-header-bg: linear-gradient(135deg, #fffbf2 0%, #fff1d9 100%);
    --page-accent: #d97706;
    --page-title-gradient: linear-gradient(135deg, #9a3412 0%, #d97706 56%, #f59e0b 100%);
    --page-card-border: rgba(217, 119, 6, 0.2);
    --context-icon-bg: rgba(245, 158, 11, 0.14);
    --nav-gradient: linear-gradient(120deg, #9a3412 0%, #d97706 58%, #f59e0b 100%);
}

body.route-turnuvalar-takimlar-index,
body.route-turnuvalar-takimlar-show {
    --page-shell-bg: linear-gradient(180deg, #f3fbff 0%, #ebf6ff 100%);
    --page-shell-overlay: radial-gradient(circle at 12% 12%, rgba(8, 145, 178, 0.16), transparent 36%),
        radial-gradient(circle at 86% 0%, rgba(37, 99, 235, 0.14), transparent 35%);
    --page-header-bg: linear-gradient(135deg, #f6fdff 0%, #e9f7ff 100%);
    --page-accent: #0e7490;
    --page-title-gradient: linear-gradient(135deg, #164e63 0%, #0e7490 50%, #2563eb 100%);
    --page-card-border: rgba(14, 116, 144, 0.18);
    --context-icon-bg: rgba(14, 116, 144, 0.13);
    --nav-gradient: linear-gradient(120deg, #164e63 0%, #0e7490 62%, #1d4ed8 100%);
}

body.route-turnuvalar-tamamlanan-maclar,
body.route-turnuvalar-tamamlanan-maclar-show {
    --page-shell-bg: linear-gradient(180deg, #f5f7fb 0%, #eef2f8 100%);
    --page-shell-overlay: radial-gradient(circle at 12% 10%, rgba(71, 85, 105, 0.2), transparent 35%),
        radial-gradient(circle at 88% 0%, rgba(37, 99, 235, 0.12), transparent 34%);
    --page-header-bg: linear-gradient(135deg, #f8faff 0%, #edf2fb 100%);
    --page-accent: #334155;
    --page-title-gradient: linear-gradient(135deg, #1f2937 0%, #334155 52%, #1d4ed8 100%);
    --page-card-border: rgba(51, 65, 85, 0.2);
    --context-icon-bg: rgba(51, 65, 85, 0.12);
    --nav-gradient: linear-gradient(120deg, #1f2937 0%, #334155 62%, #1d4ed8 100%);
}

body.route-duyurular-index,
body.route-duyurular-show {
    --page-shell-bg: linear-gradient(180deg, #fff9f2 0%, #fff3e8 100%);
    --page-shell-overlay: radial-gradient(circle at 14% 10%, rgba(234, 88, 12, 0.14), transparent 34%),
        radial-gradient(circle at 86% 2%, rgba(245, 158, 11, 0.12), transparent 34%);
    --page-header-bg: linear-gradient(135deg, #fffdf9 0%, #fff3e5 100%);
    --page-accent: #c2410c;
    --page-title-gradient: linear-gradient(135deg, #7c2d12 0%, #c2410c 56%, #f59e0b 100%);
    --page-card-border: rgba(194, 65, 12, 0.16);
    --context-icon-bg: rgba(194, 65, 12, 0.12);
    --nav-gradient: linear-gradient(120deg, #7c2d12 0%, #c2410c 60%, #d97706 100%);
}

body.route-hakkimizda,
body.route-iletisim,
body.route-sss,
body.route-turnuva-kurallari,
body.route-puanlama,
body.route-katilim-sartlari,
body.route-kullanim-kosullari,
body.route-gizlilik-cerez {
    --page-shell-bg: linear-gradient(180deg, #f7faff 0%, #edf4ff 100%);
    --page-shell-overlay: radial-gradient(circle at 12% 10%, rgba(30, 64, 175, 0.12), transparent 36%),
        radial-gradient(circle at 86% 0%, rgba(14, 165, 233, 0.1), transparent 34%);
    --page-header-bg: linear-gradient(135deg, #f9fcff 0%, #ebf3ff 100%);
    --page-accent: #1e3a8a;
    --page-title-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 56%, #0891b2 100%);
    --page-card-border: rgba(30, 58, 138, 0.15);
    --context-icon-bg: rgba(30, 58, 138, 0.1);
    --nav-gradient: linear-gradient(120deg, #1e3a8a 0%, #2563eb 60%, #0891b2 100%);
}

@media (max-width: 576px) {
    .page-context-strip {
        grid-template-columns: 1fr;
        padding: 0.7rem;
        gap: 0.55rem;
    }

    .page-context-item {
        padding: 0.65rem;
    }

    .page-context-icon {
        width: 34px;
        height: 34px;
    }

    .page-context-value {
        font-size: 1rem;
    }
}

/* 2026 Editorial Surface Refresh */
:root {
    --primary-dark: #163b70;
    --primary: #1f5fbf;
    --primary-light: #4d8de0;
    --primary-lighter: #dbe9ff;
    --accent: #2f7de1;
    --accent-light: #7fb0f0;
    --primary-gradient: linear-gradient(180deg, #163b70 0%, #163b70 100%);
    --shadow-md: 0 12px 24px rgba(16, 24, 21, 0.08);
    --shadow-lg: 0 18px 34px rgba(16, 24, 21, 0.12);
    --shadow-xl: 0 24px 44px rgba(16, 24, 21, 0.16);
    --shadow-glow: none;
    --radius-sm: 0.2rem;
    --radius: 0.45rem;
    --radius-md: 0.6rem;
    --radius-lg: 0.8rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
}

body {
    background: #edf3fe;
}

.navbar {
    background: #132b4d !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 30px rgba(16, 24, 21, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.9rem 0;
}

.navbar-brand {
    text-shadow: none;
}

.navbar-brand:hover {
    transform: none;
    opacity: 0.92;
}

.nav-link {
    border-radius: 0.45rem;
    margin: 0 0.1rem;
    font-weight: 700;
}

.nav-link::before {
    left: 1rem;
    bottom: 0.45rem;
    transform: none;
    height: 2px;
    background: #dbe9ff;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: calc(100% - 2rem);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.06);
    transform: none;
}

.hero-section,
.jumbotron {
    background: #17365f;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero-section::before,
.jumbotron::before {
    display: none;
}

.hero-section::after,
.jumbotron::after {
    opacity: 0.08;
    right: 2rem;
    width: 6rem;
    height: 6rem;
}

.card,
.table-container {
    border: 1px solid rgba(16, 24, 21, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

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

.card-header {
    background: #17365f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card {
    border: 1px solid rgba(16, 24, 21, 0.1);
}

.stat-card::before {
    display: none;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card h5 {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--primary-dark);
}

.table thead th {
    background: #17365f;
}

.table thead th:first-child,
.table thead th:last-child,
.table tbody tr:last-child td:first-child,
.table tbody tr:last-child td:last-child {
    border-radius: 0;
}

.table tbody tr:hover {
    background: #f2f5ee;
}

.btn {
    border-radius: 0.5rem;
    box-shadow: none !important;
}

.btn-success,
.btn-primary-custom {
    background: #1f5fbf;
}

.btn-success:hover,
.btn-primary-custom:hover {
    background: #174b98;
    transform: none;
}

.btn-outline-success {
    border-width: 1px;
    background: #f8faf6;
}

.btn-outline-success:hover {
    background: #1f5fbf;
    border-color: #1f5fbf;
    transform: none;
}

.text-success,
.link-success,
.text-success-emphasis {
    color: #1f5fbf !important;
}

.bg-success,
.text-bg-success {
    background-color: #1f5fbf !important;
    color: #ffffff !important;
}

.border-success {
    border-color: rgba(31, 95, 191, 0.28) !important;
}

.badge {
    border-radius: 0.5rem;
    box-shadow: none !important;
}

.badge:hover {
    transform: none;
}

.badge.bg-success {
    background: #1f5fbf !important;
}

.badge.bg-warning {
    background: #d3a24a !important;
    color: #20170a;
}

.badge.bg-danger {
    background: #c84c66 !important;
}

.badge.bg-info {
    background: #1f6fb2 !important;
}

.badge.bg-secondary {
    background: #475569 !important;
}

.page-header h1,
body[class*="route-"] .page-header h1 {
    background: none;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    background-clip: border-box;
    color: var(--page-accent, var(--primary-dark));
}

.section-title::before {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 0;
    background: var(--page-accent, var(--primary-dark));
    transform: rotate(45deg);
}

footer {
    background: #132b4d;
    border-radius: 1.1rem 1.1rem 0 0;
}

footer a:hover,
footer a.hover-primary:hover {
    transform: none;
}

.navbar .dropdown-menu {
    background: #162c4a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 30px rgba(16, 24, 21, 0.22);
}

.navbar .dropdown-item {
    border-radius: 0.45rem;
}

body[class*="route-"] {
    --page-shell-bg: #edf3fe;
    --page-shell-overlay: none;
    --page-header-bg: #eef4ff;
    --page-accent: #1f5fbf;
    --page-card-border: rgba(31, 95, 191, 0.16);
    --page-title-gradient: none;
    --nav-gradient: none;
    --page-card-shadow: 0 18px 34px rgba(16, 24, 21, 0.1);
}

body[class*="route-"] main.py-4::before {
    background: var(--page-shell-bg);
}

body[class*="route-"] main.py-4::after {
    background-color: transparent;
    background-image:
        linear-gradient(rgba(16, 24, 21, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 21, 0.05) 1px, transparent 1px);
    background-position: center top;
    background-size: 64px 64px;
    opacity: 0.22;
}

body[class*="route-"] .page-header {
    background: var(--page-header-bg);
    border: 1px solid var(--page-card-border);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.25rem;
}

body[class*="route-"] .card,
body[class*="route-"] .table-container,
body[class*="route-"] .match-card,
body[class*="route-"] .team-card {
    border-width: 1px;
}

.page-context-strip {
    border: 1px solid var(--page-card-border);
    border-radius: var(--radius-lg);
    background: #edf3fe;
    box-shadow: none;
}

.page-context-item {
    border-radius: var(--radius);
    border: 1px solid rgba(16, 24, 21, 0.08);
    box-shadow: none;
}

.page-context-icon {
    border-radius: 0.55rem;
}

@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        background: #162c4a;
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

body.route-anasayfa,
body.route-turnuvalar-index,
body.route-turnuvalar-puan-durumu {
    --page-accent: #1f5fbf;
    --page-card-border: rgba(31, 95, 191, 0.16);
    --context-icon-bg: rgba(31, 95, 191, 0.12);
}
