/* 
   VIBRANT ARENA DESIGN SYSTEM 
   Modern, High-Energy, & Theatrical 
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@700;900&family=Plus+Jakarta+Sans:wght@400;500;700;800&display=swap');

:root {
    --va-navy: #0f172a;
    --va-magenta: #db2777;
    --va-cyan: #06b6d4;
    --va-gold: #fbbf24;
    --va-silver: #94a3b8;
    --va-bronze: #d97706;
    --va-glass: rgba(255, 255, 255, 0.85);
    --va-glass-dark: rgba(15, 23, 42, 0.85);
    
    --va-radius: 20px;
    --va-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.vibrant-arena-root {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: #f1f5f9;
    color: var(--va-navy);
    line-height: 1.6;
}

/* --- PREMIUM UTILITIES --- */

.va-glass {
    background: var(--va-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--va-radius);
    box-shadow: var(--va-shadow);
}

.va-glass-dark {
    background: var(--va-glass-dark);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--va-radius);
    color: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.va-btn-primary {
    background: linear-gradient(135deg, var(--va-magenta), #9d174d);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 20px rgba(219, 39, 119, 0.3);
}

.va-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(219, 39, 119, 0.4);
    color: #fff;
}

.va-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 39, 119, 0.4);
    color: #fff;
    text-decoration: none;
}

/* --- THEATRICAL ANIMATIONS --- */

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-scale { animation: fadeInScale 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.animate-slide-up { animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* --- MOBILE & RESPONSIVE STRATEGY --- */

/* Sticky Mobile Action Dock */
.va-mobile-dock {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--va-glass-dark);
    backdrop-filter: blur(20px);
    padding: 12px 20px;
    z-index: 9999;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -5px 25px rgba(0,0,0,0.2);
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 767px) {
    .va-mobile-dock { display: flex; }
    .vibrant-arena-root { padding-bottom: 80px; } /* Prevent dock from covering content */
    
    .va-display-title { font-size: 2.8rem; }
    .va-hero-stats { gap: 20px; }
    
    /* Horizontal Scroll for Tabs */
    .va-modern-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        padding-bottom: 10px;
    }
    .va-modern-tabs::-webkit-scrollbar { display: none; }
    .va-modern-tabs li { flex: 0 0 auto; }
}

/* Touch-Target Optimization (48px Rule) */
.va-modern-tabs li a, 
.va-btn-primary, 
.va-stat-badge {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Stacking Logic */
.va-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* --- INTERACTIVE ELEMENTS --- */
.va-clock {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.va-time-unit {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 12px;
    min-width: 60px;
}

.va-time-unit strong {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
}

.va-time-unit span {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.7;
}

.va-podium-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    height: 300px;
    padding-bottom: 20px;
}

.va-podium-column {
    flex: 1;
    max-width: 120px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.va-podium-block {
    border-radius: 12px 12px 0 0;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-1 .va-podium-block { height: 180px; background: var(--va-gold); }
.rank-2 .va-podium-block { height: 130px; background: var(--va-silver); }
.rank-3 .va-podium-block { height: 90px; background: var(--va-bronze); }

.va-rank-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255,255,255,0.4);
}

.va-podium-user {
    margin-bottom: 15px;
}

.va-winner-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background-size: cover;
    background-position: center;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.va-podium-user p {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--va-navy);
    margin: 0;
}
/* Toast Notifications */
.va-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--va-magenta);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(219, 39, 119, 0.4);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.va-toast.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- HERO & TYPOGRAPHY --- */
.va-hero {
    position: relative;
    padding: 120px 0 160px;
    background-size: cover;
    background-position: center;
    color: white;
    margin-top: -30px;
}

.va-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}

.va-hero-content {
    position: relative;
    z-index: 2;
}

.va-display-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff !important;
    margin-bottom: 20px;
    text-shadow: 0 5px 25px rgba(0,0,0,0.8);
    line-height: 1.1;
    max-width: 800px;
}

.va-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.va-stat-item {
    display: flex;
    flex-direction: column;
}

.va-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.va-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.va-countdown-box {
    padding: 30px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.va-stat-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.va-pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(219, 39, 119, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(219, 39, 119, 0); }
    100% { box-shadow: 0 0 0 0 rgba(219, 39, 119, 0); }
}

.va-stat-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.va-pulse {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
