:root {
    --ipl-gold: #ffd700;
    --ipl-gold-glow: rgba(255, 215, 0, 0.4);
    --ipl-blue: #004ba0;
    --ipl-blue-light: #00d2ff;
    --card-bg: rgba(10, 10, 15, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-image: url('ipl_2026_grand_finale_bg_1776667514364.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    overflow-x: hidden;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.9) 100%);
    z-index: -1;
}

/* Tab Navigation */
nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 20px;
    z-index: 100;
}

.nav-btn {
    padding: 0.8rem 2rem;
    border: none;
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.nav-btn.active {
    background: var(--ipl-gold);
    color: #000;
    box-shadow: 0 0 20px var(--ipl-gold-glow);
}

/* Header Styling */
header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-top: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    background: linear-gradient(to bottom, #fff 30%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Content Sections */
.content-section {
    display: none;
    max-width: 1200px;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

.content-section.active {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

/* Winner Analysis Card */
.analysis-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.analysis-item h4 {
    color: var(--ipl-gold);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

/* Top 4 Section */
.top-4-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.rank-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--ipl-gold);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

/* Global Elements */
.winner-badge {
    display: inline-block;
    background: var(--ipl-gold);
    color: #000;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.win-index {
    font-size: 3rem;
    font-weight: 900;
    color: var(--ipl-gold);
}

.footer-info {
    margin-top: 4rem;
    text-align: center;
    opacity: 0.5;
    font-size: 0.8rem;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    background: rgba(0,255,0,0.1);
    color: #00ff00;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0,255,0,0.2);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
