/* Hockey Tournament Hub - 3D Animated Colorful Stylesheet */

:root {
    /* Rich Sport Palette */
    --primary: #059669;
    --primary-glow: #10b981;
    --primary-neon: #00f59b;
    --primary-light: #ecfdf5;
    --primary-dark: #064e3b;
    
    --cyan: #0284c7;
    --cyan-glow: #06b6d4;
    --cyan-light: #ecfeff;
    
    --gold: #d97706;
    --gold-glow: #f59e0b;
    --gold-light: #fffbeb;
    
    --rose: #e11d48;
    --rose-glow: #f43f5e;
    --rose-light: #fff1f2;
    
    --violet: #7c3aed;
    --violet-glow: #8b5cf6;
    --violet-light: #f5f3ff;
    
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --secondary-dark: #090d16;
    
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #0284c7;
    
    /* Backgrounds with Deep Sport Ambience */
    --bg-base: #f8fafc;
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --surface-glass: rgba(255, 255, 255, 0.9);
    --border: #e2e8f0;
    --border-light: rgba(226, 232, 240, 0.8);
    --border-glow: rgba(16, 185, 129, 0.4);
    
    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    /* 3D Depth Shadows & Glows */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.04);
    --shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 14px 28px -4px rgba(15, 23, 42, 0.1), 0 6px 12px -4px rgba(15, 23, 42, 0.06);
    --shadow-3d: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.05);
    --shadow-3d-hover: 0 22px 38px -8px rgba(5, 150, 105, 0.2), 0 10px 18px -6px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(16, 185, 129, 0.4);
    --shadow-neon: 0 0 20px rgba(16, 185, 129, 0.35);
    --shadow-gold: 0 0 20px rgba(245, 158, 11, 0.35);
    
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container-max: 1240px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    background-color: var(--bg-base);
    color: var(--text);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* 3D Hockey Atmosphere & Tactical Turf Background Pattern */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: 
        radial-gradient(circle at 10% 12%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 90% 18%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.09) 0%, transparent 42%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 45%, #e2e8f0 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Tactical Field Hockey Pitch Markings & Subtle Turf Weave Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('../images/hockey-pitch-pattern.svg'),
        radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 1000px 600px, 32px 32px;
    background-position: center 30%, center center;
    background-repeat: no-repeat, repeat;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

/* Floating Ambient Turf Lighting Orb 1 (Emerald Neon) */
body::after {
    content: "";
    position: fixed;
    top: 45%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.05) 45%, transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
    animation: ambientOrb 20s ease-in-out infinite alternate;
}

@keyframes ambientOrb {
    0% { transform: translateY(-50%) scale(1) rotate(0deg); }
    50% { transform: translateY(-40%) scale(1.18) rotate(90deg); }
    100% { transform: translateY(-60%) scale(0.92) rotate(180deg); }
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

/* -------------------------------------------------------------
   Page Header Standard Layout
------------------------------------------------------------- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.page-header-title-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 0;
}

.page-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* -------------------------------------------------------------
   SVG Icon Styling & Colorful Badges
------------------------------------------------------------- */
.svg-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:hover .svg-icon,
.nav-link:hover .svg-icon,
.card-3d:hover .svg-icon {
    transform: scale(1.12);
}

/* Colorful Icon Containers */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.icon-box-emerald {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.18);
}

.icon-box-cyan {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    color: #0284c7;
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.18);
}

.icon-box-gold {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.18);
}

.icon-box-rose {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    color: #e11d48;
    border: 1px solid rgba(244, 63, 94, 0.3);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.18);
}

.icon-box-violet {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.18);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.35rem; letter-spacing: -0.02em; }
h2 { font-size: 1.85rem; letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
    margin-bottom: 1rem;
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-glow);
}

/* -------------------------------------------------------------
   3D Navigation Header
------------------------------------------------------------- */
.header {
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ffffff;
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    color: var(--primary-neon);
    transform: translateY(-1px);
}

.logo-badge-3d {
    background: linear-gradient(135deg, #059669 0%, #00f59b 100%);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 245, 155, 0.4), inset 0 1px 1px rgba(255,255,255,0.6);
    transform: perspective(400px) rotateX(10deg);
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-badge-3d {
    transform: perspective(400px) rotateX(0deg) scale(1.1);
}

.logo-tag {
    font-size: 0.75rem;
    background: linear-gradient(135deg, var(--gold) 0%, #fde047 100%);
    color: #78350f;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-link {
    color: #94a3b8;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
}

/* -------------------------------------------------------------
   3D Buttons with Specular Highlights & High Contrast
------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    user-select: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff !important;
    border: 1px solid #065f46;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff !important;
    font-weight: 700;
    border: 1px solid #92400e;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.5);
}

.btn-cyan {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    font-weight: 700;
    border: 1px solid #075985;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-cyan:hover {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(2, 132, 199, 0.5);
}

.btn-secondary {
    background: #ffffff;
    color: var(--secondary) !important;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: var(--secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff !important;
    border: 1px solid #9f1239;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4);
}

.btn-sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.84rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.85rem 1.85rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

/* -------------------------------------------------------------
   3D Cards with Perspective & Ambient Lighting
------------------------------------------------------------- */
.card-3d, .card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow-3d);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.card-3d:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-3d-hover);
    border-color: rgba(16, 185, 129, 0.35);
}

/* 3D Glass Surface */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-3d);
}

/* -------------------------------------------------------------
   Colorful Badges & Status Indicators
------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-full);
}

.badge-emerald, .badge-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.badge-gold, .badge-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.badge-cyan, .badge-info {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    color: #0369a1;
    border: 1px solid rgba(6, 182, 212, 0.4);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.15);
}

.badge-rose, .badge-danger {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    color: #9f1239;
    border: 1px solid rgba(244, 63, 94, 0.4);
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.15);
}

.badge-violet {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    color: #5b21b6;
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

.badge-live {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.6);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* -------------------------------------------------------------
   Hero Section with 3D Visual Depth
------------------------------------------------------------- */
/* -------------------------------------------------------------
   Hero Section with 3D Visual Depth & Field Hockey Action
------------------------------------------------------------- */
.hero {
    background: 
        linear-gradient(135deg, rgba(6, 15, 25, 0.94) 0%, rgba(10, 25, 42, 0.88) 45%, rgba(6, 78, 59, 0.86) 100%),
        url('../images/hero-hockey-action.jpg') center right / cover no-repeat;
    color: #ffffff;
    padding: 5.5rem 0 4.75rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('../images/hockey-pitch-pattern.svg') center center / 850px auto no-repeat,
        radial-gradient(circle at 85% 20%, rgba(0, 245, 155, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 15% 80%, rgba(6, 182, 212, 0.25) 0%, transparent 50%);
    opacity: 0.45;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    top: -60px;
    right: 18%;
    width: 380px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.2) 0%, rgba(0, 245, 155, 0.12) 40%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
    animation: floodlightGlow 7s ease-in-out infinite alternate;
}

@keyframes floodlightGlow {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.15); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: var(--radius-full);
    color: var(--primary-neon);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 20px rgba(0, 245, 155, 0.25);
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-title-highlight {
    background: linear-gradient(135deg, #00f59b 0%, #22d3ee 50%, #fde047 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.hero-stat-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 245, 155, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 245, 155, 0.5);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 245, 155, 0.2);
}

.hero-stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* 3D Hero Visual Showcase */
.hero-3d-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 245, 155, 0.2);
    transform: perspective(1000px) rotateY(-6deg) rotateX(4deg);
    transition: transform 0.4s ease;
    box-sizing: border-box;
    width: 100%;
    backdrop-filter: blur(14px);
}

.hero-3d-box:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Hero Live Match Action Preview Card */
.hero-live-preview {
    height: 125px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.hero-live-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transition: transform 0.5s ease;
}

.hero-3d-box:hover .hero-live-preview-img {
    transform: scale(1.06);
}

.hero-live-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 0.65rem 0.85rem;
}

.hero-live-pill {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: var(--radius-full);
    padding: 3px 9px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: livePulse 1.4s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
    100% { transform: scale(0.9); opacity: 1; }
}

.hero-box-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.hero-spec-pill {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Championship Glory Showcase Banner */
.hockey-showcase-banner {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hockey-showcase-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 35px rgba(245, 158, 11, 0.2);
}

.hockey-showcase-banner:hover .showcase-hover-zoom {
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .showcase-grid-responsive {
        grid-template-columns: 1fr !important;
    }
}

/* -------------------------------------------------------------
   Grid & Layout System
------------------------------------------------------------- */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* -------------------------------------------------------------
   Forms & Controls
------------------------------------------------------------- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 0.45rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) inset;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-glow);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* -------------------------------------------------------------
   Alerts & Notifications
------------------------------------------------------------- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    animation: alertSlideDown 0.3s ease-out;
}

@keyframes alertSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error, .alert-danger {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    color: #9f1239;
    border: 1px solid #fecdd3;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0.25rem;
}

.alert-close:hover {
    opacity: 1;
}

/* -------------------------------------------------------------
   Footer
------------------------------------------------------------- */
.footer {
    background: #090d16;
    color: #94a3b8;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
    color: #64748b;
}

/* -------------------------------------------------------------
   Responsive Breakpoints
------------------------------------------------------------- */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header, .header, .dashboard-wrapper, .hero, section, footer {
    width: 100%;
    box-sizing: border-box;
}

img, video, iframe, canvas {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .hide-mobile, .hide-tablet {
        display: none !important;
    }
    .header-nav {
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
    }
    .logo-link {
        font-size: 1rem;
        gap: 0.5rem;
        white-space: nowrap;
    }
    .logo-badge-3d {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    .logo-tag {
        display: none;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .page-header-actions {
        width: 100%;
    }
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-title { font-size: 2.25rem; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); }
    .hero-3d-box {
        transform: none !important;
        padding: 1.5rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }
    .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        background: #0f172a;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    }
    .nav-menu.show { display: flex; }

    /* Auto-collapse inline grid layouts on tablet/mobile screens */
    div[style*="grid-template-columns"],
    form[style*="grid-template-columns"],
    section[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    /* Container & Section padding for mobile/tablet */
    .container {
        padding: 0 1rem !important;
    }

    div[style*="padding: 3.5rem"],
    div[style*="padding: 3rem"],
    div[style*="padding: 2.5rem"],
    section[style*="padding: 5rem"] {
        padding: 1.5rem 1rem !important;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 2.5rem 0 2rem !important;
    }
    .hero-title {
        font-size: 1.85rem !important;
    }
    .hero-desc {
        font-size: 0.98rem !important;
        margin-bottom: 1.5rem !important;
    }
    .hero-cta-group {
        flex-direction: column !important;
        width: 100% !important;
    }
    .hero-cta-group .btn {
        width: 100% !important;
    }
    .hero-stats {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    .hero-3d-box {
        padding: 1.15rem 0.9rem !important;
        border-radius: var(--radius-md) !important;
    }
    .hero-box-specs {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
    .main-content-container {
        padding: 2rem 1rem !important;
    }
}

/* -------------------------------------------------------------
   Mobile App Sticky Bottom Navigation Bar & Compact Cards
------------------------------------------------------------- */
.mobile-app-bottom-bar {
    display: none;
}

@media (max-width: 1024px) {
    body {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .footer {
        padding: 2.75rem 0 calc(90px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.75rem !important;
    }

    .footer-title {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .footer-links li {
        margin-bottom: 0.5rem !important;
    }

    .footer-bottom {
        padding-top: 1.5rem !important;
        font-size: 0.8rem !important;
    }
    
    .mobile-app-bottom-bar {
        display: flex;
        position: fixed;
        bottom: max(12px, env(safe-area-inset-bottom, 12px));
        left: 12px;
        right: 12px;
        margin: 0 auto;
        max-width: 440px;
        height: 64px;
        background: rgba(11, 17, 32, 0.94);
        backdrop-filter: blur(24px) saturate(190%);
        -webkit-backdrop-filter: blur(24px) saturate(190%);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 24px;
        box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.2);
        z-index: 9990;
        align-items: center;
        justify-content: space-around;
        padding: 3px 6px;
        box-sizing: border-box;
    }
    
    .mobile-bottom-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #94a3b8;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        text-decoration: none;
        flex: 1;
        min-width: 0;
        height: 52px;
        padding: 3px 4px;
        border-radius: 16px;
        transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
        -webkit-tap-highlight-color: transparent;
        box-sizing: border-box;
    }

    .mobile-bottom-item span:not(.mobile-bottom-icon) {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 1.1;
    }
    
    .mobile-bottom-item:hover {
        color: #e2e8f0;
    }

    .mobile-bottom-item:active {
        transform: scale(0.92);
    }
    
    .mobile-bottom-item.active {
        color: #00f59b;
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 182, 212, 0.12) 100%);
        border: 1px solid rgba(0, 245, 155, 0.35);
        box-shadow: 0 4px 14px rgba(0, 245, 155, 0.16), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    }
    
    .mobile-bottom-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        color: inherit;
        transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.28s ease;
    }

    .mobile-bottom-icon svg {
        stroke: currentColor;
    }

    .mobile-bottom-item.active .mobile-bottom-icon {
        transform: translateY(-2px) scale(1.1);
        filter: drop-shadow(0 0 6px rgba(0, 245, 155, 0.6));
    }

    .mobile-bottom-item.active::after {
        content: "";
        position: absolute;
        bottom: 3px;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #00f59b;
        box-shadow: 0 0 6px #00f59b;
    }

    /* Mobile Card Compact Sizing ("cards thoda bada hai" fix) */
    .card-3d {
        padding: 1.15rem 1rem !important;
        border-radius: var(--radius-md) !important;
    }

    .tournament-card {
        border-radius: var(--radius-md) !important;
    }

    .tournament-card-body {
        padding: 1.15rem 1rem !important;
    }

    .tournament-banner-img {
        height: 130px !important;
    }

    .match-card {
        padding: 1rem !important;
    }

    .hero-stat-card {
        padding: 0.85rem 1rem !important;
    }

    .hero-stat-value {
        font-size: 1.65rem !important;
    }

    .player-card-3d, .player-card {
        padding: 0.85rem 1rem !important;
    }

    .hero-3d-box {
        padding: 1.15rem 1rem !important;
    }

    /* Modals & Dialogs on Mobile */
    .modal-3d, .modal-box {
        width: 94vw !important;
        max-width: 94vw !important;
        margin: 0.5rem !important;
    }

    /* Table responsive overflow */
    .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}
