/**
 * ==========================================
 * IPTVS PREMIUM STYLING - 2026 EDITION
 * ==========================================
 * Theme: Deep Midnight with Glassmorphism
 * Colors: #08080c (BG), #3d5afe (Royal Blue), #ff1744 (Action Red)
 * Features: Fluid Typography, Glassmorphism, Scroll Animations
 */

/* ==========================================
   CSS CUSTOM PROPERTIES
   ========================================== */
:root {
    /* Colors - Deep Midnight Palette */
    --midnight-bg: #08080c;
    --midnight-surface: #0f0f14;
    --midnight-card: #16161d;
    
    --royal-blue: #3d5afe;
    --royal-blue-light: #5c7cff;
    --royal-blue-dark: #304ffe;
    
    --action-red: #ff1744;
    --action-red-light: #ff4569;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6e6e7e;
    
    /* Glassmorphism */
    --glass-bg: rgba(61, 90, 254, 0.03);
    --glass-border: rgba(61, 90, 254, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Spacing & Typography */
    --container-width: 1280px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Animations */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--midnight-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fluid Typography using clamp() */
h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
.container {
    width: min(var(--container-width), 100% - 2rem);
    margin-inline: auto;
}

.section {
    padding: var(--spacing-xl) 0;
    scroll-margin-top: 100px;
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 1rem 0;
    box-shadow: var(--glass-shadow);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--royal-blue);
    transition: width var(--transition-normal);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(61, 90, 254, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 23, 68, 0.1), transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s var(--transition-normal) backwards;
}

.hero-gradient-text {
    background: linear-gradient(135deg, var(--royal-blue-light), var(--royal-blue), var(--action-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s 0.2s var(--transition-normal) backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s 0.4s var(--transition-normal) backwards;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
    animation: fadeInUp 0.8s 0.6s var(--transition-normal) backwards;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--royal-blue);
    box-shadow: 0 10px 40px rgba(61, 90, 254, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--royal-blue);
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-dark));
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(61, 90, 254, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(61, 90, 254, 0.6);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--royal-blue);
    color: var(--royal-blue);
}

.btn-secondary:hover {
    background: var(--royal-blue);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-action {
    background: linear-gradient(135deg, var(--action-red), var(--action-red-light));
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(255, 23, 68, 0.4);
}

.btn-action:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 23, 68, 0.6);
}

/* ==========================================
   GLASSMORPHISM CARDS
   ========================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--royal-blue), var(--action-red));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--royal-blue);
    box-shadow: var(--glass-shadow), 0 0 50px rgba(61, 90, 254, 0.2);
}

.glass-card:hover::before {
    transform: scaleX(1);
}

/* ==========================================
   PRICING TABLE
   ========================================== */
.pricing-section {
    background: var(--midnight-surface);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--royal-blue);
    box-shadow: 0 0 60px rgba(61, 90, 254, 0.3);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--royal-blue), var(--action-red));
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.pricing-card:hover {
    transform: translateY(-15px);
    border-color: var(--royal-blue);
    box-shadow: 0 20px 60px rgba(61, 90, 254, 0.3);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--royal-blue);
}

.plan-price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.plan-price span {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.plan-duration {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--royal-blue);
    font-weight: 900;
    font-size: 1.25rem;
}

/* ==========================================
   DEVICE COMPATIBILITY SECTION
   ========================================== */
.compatibility-section {
    background: var(--midnight-bg);
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.device-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.device-card:hover {
    transform: translateY(-10px);
    border-color: var(--royal-blue);
    box-shadow: 0 15px 50px rgba(61, 90, 254, 0.2);
}

.device-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.device-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.device-support {
    color: var(--royal-blue);
    font-weight: 500;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--midnight-surface);
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer p {
    color: var(--text-muted);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s var(--transition-normal) backwards;
}

.fade-in {
    animation: fadeIn 0.6s var(--transition-normal) backwards;
}

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-normal);
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--midnight-surface);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-grid,
    .device-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--royal-blue), var(--action-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   EVENTS SECTION STYLES
   ========================================== */
.events-section {
    padding: 100px 0;
}

.events-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.events-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.event-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--surface);
    border: 1px solid var(--glass-border);
}

.event-card.featured {
    grid-column: span 1;
}

.event-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(61, 90, 254, 0.3);
}

.event-card:hover img {
    transform: scale(1.1);
}

.event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: rgba(8, 8, 12, 0.75);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    transition: background 0.3s ease;
}

.event-card:hover .event-overlay {
    background: rgba(8, 8, 12, 0.85);
}

.event-overlay h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.event-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.event-badge.live {
    background: rgba(255, 23, 68, 0.9);
    color: #fff;
    animation: pulse 2s infinite;
}

.event-badge.upcoming {
    background: rgba(61, 90, 254, 0.9);
    color: #fff;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Sports League Grid */
.sports-league-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.league-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.league-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.league-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(61, 90, 254, 0.2);
}

.league-card:hover img {
    transform: scale(1.05);
}

.league-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 8, 12, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.league-card:hover .league-overlay {
    opacity: 1;
}

.league-overlay h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

/* Premium Sports League Grid (ElezaTV Style) */
.sports-league-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.league-card-premium {
    position: relative;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.league-card-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.85);
}

.league-card-premium:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(61, 90, 254, 0.4);
    border-color: rgba(61, 90, 254, 0.6);
}

.league-card-premium:hover img {
    transform: scale(1.15);
    filter: brightness(1);
}

.league-overlay-premium {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.7) 100%);
    backdrop-filter: blur(0px);
    transition: all 0.4s ease;
    padding: 2rem;
    text-align: center;
}

.league-card-premium:hover .league-overlay-premium {
    backdrop-filter: blur(4px);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.5) 100%);
}

.league-overlay-premium h4 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(61, 90, 254, 0.3);
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.2;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.league-card-premium:hover .league-overlay-premium h4 {
    transform: translateY(-5px);
    text-shadow: 0 6px 30px rgba(0, 0, 0, 1), 0 0 60px rgba(61, 90, 254, 0.6);
}

/* Responsive Events */
@media (max-width: 768px) {
    .events-row {
        grid-template-columns: 1fr;
    }
    
    .event-card.featured {
        grid-column: span 1;
    }
    
    .sports-league-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sports-league-grid-premium {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .league-card-premium {
        height: 280px;
    }
    
    .league-overlay-premium h4 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
}

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: calc(var(--spacing-lg) * 1.5); }
