/* =========================================
   LiveBola Premium Streaming CSS
   ========================================= */

/* --- Variables & Theming --- */
:root {
    /* Color Palette */
    --bg-darker: #050511;
    --bg-dark: #0a0b1a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    
    --accent-color: #00ff88;
    --accent-glow: rgba(0, 255, 136, 0.4);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a5b8;
    --text-muted: #6b7086;
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-highlight: rgba(255, 255, 255, 0.15);
    
    /* Layout & Utilities */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'General Sans', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(20, 50, 255, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    outline: none;
}

/* --- Typography --- */
h1, h2, h3, h4, .logo span {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-accent {
    color: var(--accent-color);
}

.text-muted {
    color: var(--text-muted);
}

.mt-2 {
    margin-top: 0.5rem;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hidden {
    display: none !important;
}

/* --- Components --- */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgba(5, 5, 17, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-smooth);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--accent-color);
    font-size: 28px;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-smooth);
}

.btn-primary {
    background-color: var(--bg-card);
    color: var(--accent-color);
    border: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 16px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-size: 20px;
}

.btn-icon:hover {
    background: var(--bg-card-hover);
    color: var(--accent-color);
    border-color: var(--border-highlight);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-accent {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero h1 {
    font-size: 56px;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A0A5B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
}

/* Matches Section */
.matches-section {
    padding: 40px 0 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.filter-tab {
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--bg-darker);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid var(--border-highlight);
}

/* Grid Layout */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* Match Card */
.match-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.match-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.match-card:hover::before {
    opacity: 1;
}

/* Match Status Banner inside card */
.match-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.status-live {
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-upcoming {
    color: #ffd700;
}

.status-finished {
    color: var(--text-muted);
}

.match-league {
    color: var(--text-secondary);
}

/* Teams container */
.teams-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 40%;
}

.team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: var(--bg-card);
    border-radius: 50%;
    padding: 8px;
    border: 1px solid var(--border-color);
}

.team-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    line-height: 1.3;
}

/* Score / VS */
.match-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 20%;
}

.score-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
}

.vs-text {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.match-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Card Action */
.card-action {
    margin-top: auto;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.match-card:hover .card-action.watch-btn {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-color);
    border-color: rgba(0, 255, 136, 0.2);
}

.watch-btn {
    color: var(--text-secondary);
}

.watch-btn i {
    margin-right: 6px;
}

/* Video Player Section */
.player-section {
    background: var(--bg-dark);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.player-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 32px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border-color);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-secondary);
}

/* Loaders & States */
.loader-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-spinner.large {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.matches-loader, .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    gap: 20px;
    color: var(--text-secondary);
    text-align: center;
}

.empty-state i {
    font-size: 64px;
    color: var(--border-highlight);
}

.empty-state h3 {
    color: var(--text-primary);
    font-size: 24px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    
    .hero h1 { font-size: 40px; }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    
    .filter-tab {
        white-space: nowrap;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}
