/* ==========================================================================
   MRS ARENA - Gaming Dark Design System
   Pre-built Standalone CSS for cPanel Shared Hosting (No Node build required)
   Font: Hind Siliguri (Bengali) + Rajdhani / Chakra Petch (Gaming Header)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Rajdhani:wght@600;700&display=swap');

:root {
    --bg-base: #07090e;
    --bg-surface: #0f1523;
    --bg-surface-elevated: #161f33;
    --bg-glass: rgba(15, 21, 35, 0.85);

    --border-subtle: #1e293b;
    --border-accent: rgba(0, 229, 255, 0.3);

    --neon-cyan: #00e5ff;
    --neon-cyan-glow: rgba(0, 229, 255, 0.4);
    --neon-green: #00ff88;
    --neon-green-glow: rgba(0, 255, 136, 0.4);
    --neon-amber: #ffb703;
    --neon-red: #ff3366;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-bengali: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-gaming: 'Rajdhani', var(--font-bengali);
}

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

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

body {
    font-family: var(--font-bengali);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 72px; /* Bottom nav space */
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 229, 255, 0.08), transparent 70%),
        radial-gradient(circle at 100% 100%, rgba(0, 255, 136, 0.04), transparent 50%);
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-gaming);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    line-height: 1.25;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: #38bdf8;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 640px; /* Mobile First default */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
}

/* Header & Top Bar */
.arena-header {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 58px;
    height: auto;
    padding: 6px 0;
    display: flex;
    align-items: center;
}

.arena-brand {
    font-family: var(--font-gaming);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 12px var(--neon-cyan-glow);
}

.arena-brand span {
    color: var(--neon-cyan);
}

/* Cards */
.arena-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.arena-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 229, 255, 0.1);
}

.arena-card-glow-cyan {
    border-top: 2px solid var(--neon-cyan);
}

.arena-card-glow-green {
    border-top: 2px solid var(--neon-green);
}

/* Buttons (Min tap size 44px) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 1.25rem;
    font-family: var(--font-bengali);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 114, 255, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00d2ff 0%, #0081ff 100%);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.5);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-success {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
    color: #07090e;
    font-weight: 700;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(0, 229, 255, 0.05);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.badge-live {
    background: rgba(255, 51, 102, 0.15);
    color: var(--neon-red);
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.badge-live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-red);
    margin-right: 6px;
    box-shadow: 0 0 6px var(--neon-red);
    animation: pulse 1.5s infinite;
}

.badge-open {
    background: rgba(0, 255, 136, 0.15);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.badge-closed {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

/* Mobile Bottom Navigation (Only for mobile screens < 768px) */
.arena-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 50;
    padding: 0 8px;
}

@media (min-width: 768px) {
    .arena-bottom-nav {
        display: none !important;
    }
    body {
        padding-bottom: 0 !important;
    }
}

@media (max-width: 767px) {
    .hidden-mobile {
        display: none !important;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 10px;
    min-width: 60px;
    min-height: 48px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: var(--neon-cyan);
}

.bottom-nav-item:hover {
    color: var(--neon-cyan);
}

/* Keyframe Animations */
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* Grid & Utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.text-cyan { color: var(--neon-cyan); }
.text-green { color: var(--neon-green); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }

/* ==========================================================================
   Responsive Video Grid (Mobile: 2 columns, Desktop: 4 columns)
   ========================================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.video-card {
    background: rgba(15, 21, 35, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 229, 255, 0.2);
}

.video-card .thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.video-card .thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .thumbnail-wrapper img {
    transform: scale(1.06);
}

.video-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.9);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
    transition: transform 0.2s ease, background 0.2s ease;
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background: #ff0033;
}

.video-card .video-title {
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ==========================================================================
   Modern Tournament Cards (Cyber Glass Look)
   ========================================================================== */
.tournament-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .tournament-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}



/* Pulse Dot Animation */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse 1.5s infinite;
}

/* Feature Chips */
.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.feature-chip:hover {
    border-color: rgba(0, 229, 255, 0.3);
    color: #fff;
}

/* One-Tap Quick Filter Pills */
.filter-pill {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.filter-pill:hover {
    border-color: rgba(0, 229, 255, 0.4);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.filter-pill.active {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    font-weight: 700;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

/* ==========================================================================
   Commercial Esports Brand Logo & Header
   ========================================================================== */
.arena-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

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

.brand-crest-svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.35));
}

.brand-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-title-row {
    display: flex;
    align-items: center;
    font-family: var(--font-gaming);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.brand-word-mrs {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.brand-word-arena {
    background: linear-gradient(135deg, #00e5ff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 2px;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
}

.brand-subtitle {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: #64748b;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ==========================================================================
   Commercial Esports League Announcement Bar
   ========================================================================== */
.league-announcement-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: linear-gradient(90deg, rgba(14, 21, 37, 0.95) 0%, rgba(10, 14, 25, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.league-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.league-badge {
    background: linear-gradient(135deg, #00e5ff 0%, #0066ff 100%);
    color: #07090e;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.league-tagline {
    font-size: 0.82rem;
    color: #e2e8f0;
    font-weight: 600;
}

.league-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.league-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}

.feature-icon {
    width: 14px;
    height: 14px;
    color: var(--neon-cyan);
}

/* ==========================================================================
   Commercial Tournament Card Redesign
   ========================================================================== */
.tournament-card {
    background: linear-gradient(180deg, rgba(19, 26, 43, 0.85) 0%, rgba(11, 15, 26, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tournament-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.12);
}

/* Card Header */
.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.game-mode-tag {
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1;
}

.status-live {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

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

.status-open {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.status-closed {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.status-locked {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Card Title */
.tournament-title-link {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.65rem;
    transition: color 0.2s ease;
}

.tournament-title-link:hover {
    color: var(--neon-cyan);
}

/* Schedule Row */
.card-schedule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.card-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.reg-countdown-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    color: var(--neon-cyan);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* 3-Column Stats Matrix */
.card-stats-matrix {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    background: rgba(8, 11, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.75rem 0.65rem;
    margin-bottom: 0.85rem;
}

.stat-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-cell:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.stat-val {
    font-family: var(--font-gaming);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.stat-val-gold {
    color: #fbbf24;
}

.stat-val-green {
    color: #34d399;
}

.stat-val-cyan {
    color: #38bdf8;
}

/* Slot Capacity Bar */
.card-slot-wrap {
    margin-bottom: 0.85rem;
}

.card-slot-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 4px;
}

.slot-count strong {
    color: #ffffff;
}

.slot-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

.slot-fill {
    height: 100%;
    background: linear-gradient(90deg, #00e5ff 0%, #10b981 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Real CTA Buttons */
.btn-esports-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(135deg, #00e5ff 0%, #0066ff 100%);
    color: #07090e;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 229, 255, 0.3);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-esports-cta:hover {
    color: #000;
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
    transform: translateY(-1px);
}

.btn-esports-live {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #f87171;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-esports-live:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.btn-esports-completed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: #38bdf8;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-esports-completed:hover {
    border-color: #00e5ff;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
}

.btn-esports-locked {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #64748b;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 10px;
    cursor: not-allowed;
}

