/* Custom CSS for TPL Padel Leagues */

/* Global Styles - Logo Inspired Colors */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #727272;
    --success-color: #059669;
    --gold-color: #FFD700;
    --dark-gold: #DAA520;
    --danger-color: #dc2626;
    --light-color: #f8fafc;
    --dark-color: #1a1a1a;
    --accent-color: #FFD700;
    
    /* Subtle gradients with black and gold */
    --gradient-primary: linear-gradient(135deg, rgba(26, 26, 26, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    --gradient-secondary: linear-gradient(135deg, rgba(26, 26, 26, 0.08) 0%, rgba(218, 165, 32, 0.08) 100%);
    --gradient-success: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    --gradient-light: linear-gradient(135deg, rgba(26, 26, 26, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    --gradient-gold-light: linear-gradient(135deg, #FFD700 0%, #F5D76E 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --gradient-dark-light: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
    --gradient-section: linear-gradient(135deg, #1a1a1a 0%, #FFD700 100%);
    --gradient-text: linear-gradient(135deg, #1a1a1a 0%, #F5D76E 100%);
    
    --shadow-light: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.16);
    --shadow-medium: 0 3px 6px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-heavy: 0 8px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.1);
    --shadow-gold: 0 4px 15px rgba(255, 215, 0, 0.3);
    --blur-light: blur(6px);
    --blur-medium: blur(10px);
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
}

/* Utility Classes */
.text-gold {
    color: var(--gold-color) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #ffffff;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #0f0f0f 50%, #1a1a1a 75%, #0a0a0a 100%);
    position: relative;
    min-height: 100vh;
}

/* Animated Glass Beams Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.03) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 215, 0, 0.02) 50%, transparent 70%);
    background-size: 100px 100px, 150px 150px;
    animation: glassBeam 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 215, 0, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 90%, rgba(255, 215, 0, 0.04) 0%, transparent 50%);
    animation: glassWave 15s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes glassBeam {
    0% {
        transform: translateX(-100%) rotate(0deg);
    }
    100% {
        transform: translateX(100%) rotate(360deg);
    }
}

@keyframes glassWave {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.3;
        transform: scale(0.9);
    }
}

/* Compact, modern font scaling */
@media (min-width: 1200px) {
    body { font-size: 14px; }
    .display-1 { font-size: 3rem !important; }
    .display-2 { font-size: 2.5rem !important; }
    .display-3 { font-size: 2.2rem !important; }
    .display-4 { font-size: 1.8rem !important; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
}

@media (min-width: 1400px) {
    body { font-size: 14px; }
    .display-1 { font-size: 3.2rem !important; }
    .display-2 { font-size: 2.8rem !important; }
    .display-3 { font-size: 2.4rem !important; }
    .display-4 { font-size: 2rem !important; }
}

@media (min-width: 1920px) {
    body { font-size: 15px; }
    .container { max-width: 1400px !important; }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation Styles - Glassmorphism */
.navbar {
    backdrop-filter: var(--blur-medium);
    background: rgba(26, 26, 26, 0.15) !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 65px;
    width: auto;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 0.6rem 1rem !important;
    border-radius: var(--border-radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-link:hover {
    color: var(--gold-color) !important;
    background: rgba(255, 215, 0, 0.15);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: var(--gradient-gold);
    box-shadow: var(--shadow-gold);
}

.nav-link::after {
    display: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/home-hero.png') no-repeat center center;
    background-size: cover;
    animation: heroZoom 20s ease-in-out infinite;
    z-index: 0;
}
.hero-title{
    font-size: 6rem !important;
    letter-spacing: .1em !important;
}

@keyframes heroZoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--blur-medium);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem 1.2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.25);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-color);
    display: block;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.025em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
section {
    padding: 3rem 0;
    position: relative;
}

section:nth-child(even) {
    background: rgba(26, 26, 26, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

section:nth-child(odd) {
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 215, 0, 0.05);
    border-bottom: 1px solid rgba(255, 215, 0, 0.05);
}

/* Modern section headers */
section h2 {
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-section);
    border-radius: 2px;
}

/* Season Cards - Modern Design */
.season-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
    height: 100%;
    color: #ffffff;
}

.season-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.season-card:hover::before {
    transform: scaleX(1);
}

.season-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 215, 0, 0.6);
}

.season-card.current-season {
    border: 2px solid var(--success-color);
    background: rgba(5, 150, 105, 0.1);
    backdrop-filter: blur(15px);
}

.season-card.current-season::before {
    background: var(--success-color);
    transform: scaleX(1);
    height: 3px;
}

.season-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.season-header h3 {
    font-weight: 700;
    margin: 0;
    font-size: 1.4rem;
}

.season-header .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
}

.season-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.season-stats .stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

.season-stats .stat:hover {
    transform: translateY(-2px);
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
}

.season-stats .stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.season-stats .stat-label {
    font-size: 0.8rem;
    color: #d1d5db;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* League Cards */
.league-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid rgba(255, 215, 0, 0.2);
    color: #ffffff;
}

.league-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 215, 0, 0.6);
}

.league-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-dark-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--gold-color);
    box-shadow: var(--shadow-medium);
}

.league-card h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.league-features {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.league-features li {
    padding: 0.5rem 0;
    text-align: left;
}

/* Club Cards */
.club-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.club-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-light);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.club-card:hover::before {
    opacity: 1;
}

.club-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: #cbd5e1;
}

.club-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-lg);
    background: var(--gradient-dark-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.3rem;
    color: var(--gold-color);
    font-weight: 700;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s ease;
}

.club-card:hover .club-logo {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow-heavy);
}

.club-card h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    color:white;
}

.club-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
}

.club-stats .stat {
    text-align: center;
}

.club-stats .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    color:rgba(255, 217, 0, 0.705);
}

.club-stats .stat-label {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* Search Bar */
.search-bar {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-bar input {
    padding: 1rem 1rem 1rem 3.5rem;
    border-radius: var(--border-radius-xl);
    border: 2px solid #e2e8f0;
    background: white;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-light);
}

.search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), var(--shadow-medium);
    outline: none;
    transform: translateY(-2px);
}

.search-bar input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Players Table */
.players-table-container {
    background: white;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid #e2e8f0;
}

.table {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.table thead th {
    background: var(--gradient-dark-light) !important;
    background: rgba(58, 53, 13, 0.432) !important;
    color: var(--gold-color);
    color:white;
    border: none;
    padding: 1rem 0.8rem;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}
.table td strong{
    font-weight: 700 !important;
}
.table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid #f1f5f9;
}

.table tbody tr:hover {
    background: var(--gradient-light);
    transform: translateX(3px);
}

.table tbody td {
    padding: 1rem 0.8rem;
    border: none;
    vertical-align: middle;
    font-weight: 500;
    font-size: 0.9rem;
}

.table tbody td:first-child {
    font-weight: 600;
    color: var(--dark-color);
}

.player-rating {
    background: var(--success-color);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
    min-width: 40px;
    text-align: center;
    box-shadow: var(--shadow-light);
}

/* Rankings */
.ranking-filters {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: var(--blur-medium);
    padding: 0.75rem;
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: var(--shadow-light);
}

.ranking-filters .btn {
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: transparent;
    color: var(--secondary-color);
}

.ranking-filters .btn:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.ranking-filters .btn.active {
    background: var(--gradient-dark-light);
    color: var(--gold-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.ranking-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--blur-light);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.ranking-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.ranking-item:hover::before {
    transform: scaleY(1);
}

.ranking-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-heavy);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(37, 99, 235, 0.2);
}

.ranking-position {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-dark-light);
    color: var(--gold-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.ranking-position.top-3 {
    background: var(--gradient-gold);
    color: var(--primary-color);
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.ranking-stats {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.ranking-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Matches */
.matches-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    height: 100%;
    transition: all 0.3s ease;
    color: #ffffff;
}

.matches-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 215, 0, 0.6);
}

.matches-card .card-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    color: #ffffff;
}

.match-item {
    padding: 1.25rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    background: rgba(48, 45, 45, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    color: #ffffff;
}

.match-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.match-item:hover::before {
    transform: scaleY(0);
}

.match-item:hover {
    background: rgba(126, 122, 108, 0.03);
    transform: translateX(4px);
    border-color: rgba(53, 49, 32, 0.2);
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.match-score {
    margin-right: 15px;
    font-weight: 700;
}

.match-status {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.match-status.upcoming {
    background: #fff3cd;
    color: #856404;
}

.match-status.completed {
    background: #d1e7dd;
    color: #0f5132;
}

/* Tournament Bracket Container */
.bracket-wrapper {
    background: rgba(15, 15, 15, 0.4);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    overflow-x: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background:linear-gradient(135deg, #1a1a1a 0%, #12121249 100%);
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 80px;
    width: auto;
    border-radius: var(--border-radius-sm);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.6;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--gold-color) !important;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--gold-color);
}

.social-links a:hover {
    background: var(--gold-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-stats {
        margin-top: 3rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat-card {
        width: 150px;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .season-stats {
        flex-direction: column;
        text-align: center;
    }
    
    .club-stats {
        justify-content: space-between;
    }
    
    .ranking-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .ranking-filters .btn {
        width: 200px;
    }
    
    .tournament-bracket {
        padding: 1rem 0;
    }
    

}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .display-2 {
        font-size: 2.5rem !important;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-card {
        width: 120px;
        padding: 1rem;
    }
    
    /* Extra small screen bracket adjustments */
    .bracket-match {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .bracket-team {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .team-name {
        font-size: 0.75rem;
    }
    
    .team-score {
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Modern Button Styles - Glass Design */
.modern-btn {
    border-radius: var(--border-radius-xl) !important;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 26, 0.3) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -100%;
    width: 100%;
    height: calc(100% + 4px);
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        rgba(255, 215, 0, 0.3), 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    transition: left 0.6s ease;
    transform: skewX(-25deg);
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6) !important;
    background: rgba(26, 26, 26, 0.5) !important;
}

.primary-btn {
    background: rgba(255, 215, 0, 0.2) !important;
    border-color: rgba(255, 215, 0, 0.5) !important;
    color: #ffffff !important;
    font-weight: 700;
}

.primary-btn:hover {
    background: rgba(255, 215, 0, 0.3) !important;
    border-color: var(--primary-color) !important;
    color: var(--gold-color) !important;
    box-shadow: var(--shadow-gold);
}

.secondary-btn {
    background: rgba(26, 26, 26, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(26, 26, 26, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Load More Button - Modern Glass Design */
.load-more-btn {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -100%;
    width: 100%;
    height: calc(100% + 4px);
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        rgba(255, 215, 0, 0.4), 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    transition: left 0.6s ease;
    transform: skewX(-25deg);
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
    background: rgba(26, 26, 26, 0.6);
}

.load-more-btn .btn-text {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Button Icon Animations */
.modern-btn i, .load-more-btn i {
    transition: all 0.3s ease;
}

.modern-btn:hover i {
    transform: translateX(2px);
}

.load-more-btn:hover i {
    transform: translateY(1px);
}

/* Button Text Enhancement */
.modern-btn, .load-more-btn {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Enhanced spacing and layout */
.container {
    max-width: 1320px;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* Modern card enhancements */
.card, .season-card, .club-card, .league-card {
    border: 1px solid rgba(255, 215, 0, 0.2);
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(15px);
    color: #ffffff;
}

/* Universal card hover effect */
.card:hover, .season-card:hover, .club-card:hover, .league-card:hover, .matches-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 215, 0, 0.6);
}

/* Improved typography hierarchy */
.display-4 {
    font-weight: 800;
    letter-spacing: -0.025em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead {
    font-weight: 500;
    color: #d1d5db;
    line-height: 1.7;
}

/* Hero Typography */
.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-accent {
    color: var(--gold-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-weight: 400;
    line-height: 1.6;
    max-width: 550px;
}

/* Responsive optimizations for larger screens */
@media (min-width: 1920px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .stat-card {
        padding: 1.8rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
}

/* Dark Theme Additional Styling */
.table-dark {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.btn-outline-light {
    border-color: rgba(255, 215, 0, 0.6);
    color: #FFD700;
}

.btn-outline-light:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    color: #FFD700;
}

.text-muted {
    color: #9ca3af !important;
}

.text-secondary {
    color: #d1d5db !important;
}

/* Footer adjustments for dark theme */
.bg-dark {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

/* Additional glass effect for lists */
.list-group-item {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.1);
    color: #ffffff;
}

.list-group-item:hover {
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(255, 215, 0, 0.3);
}

/* jQuery Bracket Tournament Styles */
#bracket {
    height: 90vh;
    overflow: auto;
    padding: 20px 0;
    border-radius: var(--border-radius-lg);
}
#bracket .jQBracket {
    display: flex !important;
    width: 100% !important;
    height: 100%;
    align-items: center;
    justify-content: center;
}

/* Small footer line under each match with the set-by-set scores */
.set-scores {
    display: none;
    font-size: 12px;
    line-height: 1.2;
    opacity: .85;
    padding: 2px 6px 6px;
    color: rgba(255, 215, 0, 0.8);
    text-align: center;
    font-weight: 500;
}

/* Optional: lighter look for BYE/Qualifier lines */
.team.na { 
    opacity: .6; 
    font-style: italic;
}

/* Make the columns wider so long names fit comfortably */
#bracket .team {
    width: 320px !important;
    max-width: none;
    overflow: visible;
    white-space: normal;
    line-height: 1.2;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffffff;
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(10px);
    word-wrap: break-word;
    text-overflow: none;
}
#bracket .teamContainer .team:first-child {
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
}
#bracket .teamContainer .team:nth-child(2) {
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
}

/* Keep score column narrow so name area gets most space */
#bracket .score { 
    width: 40px !important;
    background: rgba(255, 215, 0, 0.2);
    color: #ffffff;
    font-weight: bold;
    padding: 10px 0px !important;
    border-radius: 0var(--border-radius-sm);
}
#bracket .teamContainer .team:first-child .score {
    border-radius: 0 var(--border-radius-sm) 0 0;
}
#bracket .teamContainer .team:nth-child(2) .score {
    border-radius: 0 0 var(--border-radius-sm) 0;
}

/* Nice layout for team cells */
#bracket .team-cell {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
}

#bracket .team-cell .avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

#bracket .team-cell .flags img {
    width: 16px;
    height: 12px;
    display: inline-block;
    border-radius: 2px;
}

#bracket .team-cell .name {
    white-space: normal !important;
    font-size: smaller;
    word-break: break-word;
    color: #ffffff;
    font-weight: 500;
    overflow: visible !important;
    text-overflow: none !important;
    max-width: fit-content !important;
    flex: 1;
    line-height: 1.3;
    display: inline-block !important;
}

/* Bracket connecting lines styling */
#bracket .connector {
    border-color: rgba(255, 215, 0, 0.4) !important;
}

/* Round headers */
#bracket .round-header {
    background: rgba(255, 215, 0, 0.2);
    color: #ffffff;
    border-radius: var(--border-radius-md);
    padding: 8px 16px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

/* Prevent text truncation anywhere in bracket */
#bracket * {
    text-overflow: none !important;
    overflow: visible !important;
}

#bracket .team span {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: none !important;
    word-wrap: break-word !important;
}

/* Removed custom hover to allow library's default highlighting */

/* Enhanced Mobile Responsive Design */

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .btn:hover, .nav-link:hover, .card:hover {
        transform: none;
    }
    
    .btn:active, .nav-link:active {
        transform: scale(0.98);
    }
    
    .card:active {
        transform: scale(0.99);
    }
}

/* Large tablets and small desktops */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stat-card {
        width: 140px;
        height: 120px;
    }
    
    .club-card {
        margin-bottom: 2rem;
    }
    
    .navbar-logo {
        height: 50px;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem !important;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.1;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem !important;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat-card {
        width: 120px;
        height: 100px;
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .navbar-logo {
        height: 45px;
    }
    
    .navbar-nav {
        gap: 0.25rem;
        text-align: center;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem !important;
    }
    
    section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem !important;
    }
    
    .club-card, .player-card {
        margin-bottom: 1.5rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .bracket-wrapper {
        padding: 1.5rem 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #bracket {
        height: 70vh;
        padding: 10px 0;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 200px;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-card {
        width: 100px;
        height: 90px;
        padding: 0.75rem;
        margin: 0.25rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-logo {
        height: 40px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(15px);
        border-radius: var(--border-radius-md);
        padding: 1rem;
        margin: 1rem -1rem 0;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
        margin-bottom: 0.25rem;
    }
    
    .nav-link:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2.5rem !important;
    }
    
    .club-card, .player-card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .hero-buttons .btn {
        width: 180px;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table th, .table td {
        padding: 0.5rem 0.25rem;
    }
    
    .ranking-filters {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .ranking-filters .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .glass-container {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .bracket-wrapper {
        padding: 1rem 0.5rem;
    }
    
    #bracket {
        height: 60vh;
    }
}

/* Extra small phones */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .stat-card {
        width: 90px;
        height: 80px;
        padding: 0.5rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .btn {
        padding: 0.45rem 1rem;
        font-size: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 160px;
    }
    
    .table-responsive {
        font-size: 0.75rem;
    }
    
    .bracket-wrapper {
        padding: 0.5rem;
    }
    
    #bracket {
        height: 50vh;
        font-size: 0.8rem;
    }
}

/* Landscape orientation for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle {
        margin-bottom: 1.5rem !important;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
    }
    
    .stat-card {
        width: 80px;
        height: 70px;
        padding: 0.5rem;
    }
    
    section {
        padding: 40px 0;
    }
}