/* IPL Analytics - Ultra-Professional Sports Theme */

/* Tailwind CSS Import */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@3.4.0/dist/tailwind.min.css');

/* Google Fonts - Premium Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Premium Color Palette */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-orange: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --gradient-purple: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);

    /* Dark Theme Colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;

    /* Accent Colors */
    --accent-orange: #f97316;
    --accent-purple: #a855f7;
    --accent-green: #10b981;
    --accent-blue: #3b82f6;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow-orange: 0 0 40px rgba(249, 115, 22, 0.3);
    --shadow-glow-purple: 0 0 40px rgba(168, 85, 247, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ==================== ANIMATED BACKGROUND ==================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(249, 115, 22, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* ==================== TYPOGRAPHY ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ==================== BUTTONS - PREMIUM DESIGN ==================== */
.btn-primary {
    @apply px-8 py-4 font-bold rounded-2xl text-white relative overflow-hidden transition-all duration-300;
    background: var(--gradient-orange);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4), 0 0 0 0 rgba(249, 115, 22, 0.5);
    transform: translateY(0);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.5), 0 0 0 4px rgba(249, 115, 22, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    @apply px-8 py-4 font-bold rounded-2xl text-white relative overflow-hidden transition-all duration-300;
    background: var(--gradient-purple);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.5), 0 0 0 4px rgba(168, 85, 247, 0.2);
}

.btn-outline {
    @apply px-8 py-4 font-bold rounded-2xl relative overflow-hidden transition-all duration-300;
    background: transparent;
    border: 2px solid rgba(249, 115, 22, 0.5);
    color: var(--accent-orange);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--accent-orange);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

/* ==================== STAT CARDS - GLASSMORPHISM ==================== */
.stat-card {
    @apply rounded-3xl p-8 relative overflow-hidden;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-orange);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.2), 0 0 0 1px rgba(249, 115, 22, 0.3);
    border-color: rgba(249, 115, 22, 0.3);
}

.stat-icon {
    @apply text-6xl mb-4;
    filter: drop-shadow(0 4px 12px rgba(249, 115, 22, 0.4));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.stat-value {
    @apply text-5xl font-black mb-3;
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(249, 115, 22, 0.3));
}

.stat-label {
    @apply font-semibold text-sm uppercase tracking-widest;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

/* ==================== FEATURE CARDS - MODERN DESIGN ==================== */
.feature-card {
    @apply rounded-3xl p-10 relative overflow-hidden;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 24px 64px rgba(249, 115, 22, 0.25), 0 0 0 1px rgba(249, 115, 22, 0.4);
    border-color: rgba(249, 115, 22, 0.5);
}

.feature-icon-wrapper {
    @apply w-20 h-20 rounded-2xl flex items-center justify-center mb-6 relative;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    @apply text-3xl font-black text-white mb-4;
    letter-spacing: -0.02em;
}

.feature-description {
    @apply text-slate-300 mb-6 leading-relaxed;
    font-size: 1.05rem;
}

.feature-link {
    @apply inline-flex items-center font-bold text-lg relative;
    color: var(--accent-orange);
    transition: all 0.3s;
}

.feature-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s;
}

.feature-link:hover::after {
    width: 100%;
}

/* ==================== SEASON HIGHLIGHT - PREMIUM ==================== */
.season-highlight-card {
    @apply rounded-[2rem] p-12 relative overflow-hidden;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
}

.highlight-stat {
    @apply rounded-2xl p-8 text-center relative overflow-hidden;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s;
}

.highlight-stat:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(249, 115, 22, 0.3);
}

.highlight-badge {
    @apply font-black text-sm py-3 px-6 rounded-full mb-5 inline-block uppercase tracking-wider;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.1em;
}

.player-name {
    @apply text-3xl font-black text-white mb-3;
    letter-spacing: -0.02em;
}

.player-stat {
    @apply text-xl font-bold;
    color: var(--text-secondary);
}

/* ==================== RIVALRY PAGE ==================== */
.rivalry-container {
    @apply max-w-7xl mx-auto px-4 py-16;
}

.rivalry-vs-badge {
    @apply font-black mb-8;
    font-size: clamp(4rem, 10vw, 8rem);
    background: linear-gradient(135deg, #f97316 0%, #dc2626 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 24px rgba(249, 115, 22, 0.4));
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 4px 24px rgba(249, 115, 22, 0.4));
    }

    50% {
        filter: drop-shadow(0 8px 32px rgba(249, 115, 22, 0.6));
    }
}

.player-select-box {
    @apply rounded-2xl p-8 relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.rivalry-stat-card {
    @apply rounded-2xl p-8 text-center relative overflow-hidden;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.4s;
}

.rivalry-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.3);
}

.stat-highlight {
    @apply font-black mb-3;
    font-size: clamp(2.5rem, 6vw, 4rem);
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-title {
    @apply font-bold text-sm uppercase tracking-widest;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

/* ==================== VENUE PAGE ==================== */
.venue-hero {
    @apply rounded-[2rem] p-14 relative overflow-hidden mb-12;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 48px rgba(16, 185, 129, 0.1);
}

.venue-stat-box {
    @apply rounded-2xl p-8;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    transition: all 0.3s;
}

.venue-stat-box:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.3);
}

.performer-card {
    @apply rounded-2xl p-8 relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.performer-list-item {
    @apply flex justify-between items-center py-5 px-5 rounded-xl transition-all duration-300;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.performer-list-item:last-child {
    border-bottom: none;
}

.performer-list-item:hover {
    background: rgba(249, 115, 22, 0.1);
    transform: translateX(8px);
}

/* ==================== SEARCH & FORMS ==================== */
.search-box,
.select-box {
    @apply w-full px-6 py-4 rounded-xl text-white placeholder-slate-500 transition-all duration-300;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.search-box:focus,
.select-box:focus {
    @apply outline-none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1), 0 0 20px rgba(249, 115, 22, 0.2);
    background: rgba(30, 41, 59, 0.8);
}

/* ==================== NAVIGATION - MODERN ==================== */
.navbar {
    @apply sticky top-0 z-50;
    background: rgba(10, 14, 26, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-link {
    @apply text-slate-300 font-semibold transition-all duration-300 px-5 py-3 rounded-xl relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--accent-orange);
    background: rgba(249, 115, 22, 0.1);
}

.nav-link:hover::before {
    width: 60%;
}

.nav-link-active {
    color: var(--accent-orange);
    background: rgba(249, 115, 22, 0.15);
}

/* ==================== TABLES ==================== */
.data-table {
    @apply w-full border-collapse;
}

.data-table thead {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
    border-bottom: 2px solid var(--accent-orange);
}

.data-table th {
    @apply px-6 py-5 text-left text-xs font-black uppercase tracking-widest;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.data-table td {
    @apply px-6 py-5;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table tbody tr {
    transition: all 0.2s;
}

.data-table tbody tr:hover {
    background: rgba(249, 115, 22, 0.05);
    transform: translateX(4px);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* ==================== PROGRESS BARS ==================== */
.progress-bar {
    @apply h-4 rounded-full overflow-hidden relative;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    @apply h-full rounded-full relative overflow-hidden;
    background: var(--gradient-orange);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.6);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ==================== BADGES ==================== */
.badge {
    @apply inline-flex items-center px-4 py-2 rounded-full text-xs font-bold uppercase tracking-wider;
    letter-spacing: 0.1em;
}

.badge-orange {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.4);
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.2);
}

.badge-purple {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

.badge-green {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    border-radius: 10px;
    border: 3px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-orange);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .rivalry-vs-badge {
        font-size: 3.5rem;
    }

    .stat-highlight {
        font-size: 2.5rem;
    }

    .player-name {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }
}