/**
 * Homepage Styles - Clean Dark Theme
 * All text visible with proper contrast
 */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #0f0f23 100%);
    background-attachment: fixed;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(15, 15, 35, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
}

.site-logo img {
    height: 42px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.site-logo i {
    font-size: 30px;
    color: #3b82f6;
}

.site-logo span {
    color: #ffffff;
}

/* Navigation */
.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.25);
}

.nav-link.nav-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
}

.nav-link.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.nav-link i {
    font-size: 12px;
}

.text-live {
    color: #ef4444;
    font-size: 8px;
    animation: pulse 2s infinite;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Banner */
.hero-section {
    padding: 20px 0;
}

.banner-slider {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    aspect-ratio: 21/9;
    max-height: 420px;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.banner-overlay h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.banner-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.banner-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.banner-dots {
    display: flex;
    gap: 8px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    width: 26px;
    border-radius: 5px;
    background: #ffffff;
}

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

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.section-title i {
    color: #3b82f6;
}

.live-indicator {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Match Card */
.match-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.match-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.match-card.live {
    border-color: rgba(239, 68, 68, 0.5);
}

.match-poster {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    min-height: 200px;
}

.match-poster img {
    width: 100%;
    min-height: 200px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.match-card:hover .match-poster img {
    transform: scale(1.08);
}

.poster-placeholder {
    width: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
}

.poster-placeholder i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.2);
}

.match-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.match-badge.live {
    background: #ef4444;
    color: #ffffff;
}

.match-badge.live i {
    font-size: 8px;
    animation: pulse 1s infinite;
}

.match-badge.upcoming {
    background: #f59e0b;
    color: #ffffff;
}

.match-content {
    padding: 20px;
}

.match-title {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.4;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 16px;
}

.match-teams .team {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
}

.match-teams .vs {
    padding: 5px 14px;
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
}

.match-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 16px;
}

.match-meta i {
    color: #3b82f6;
}

.watch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.watch-btn.disabled {
    background: linear-gradient(135deg, #4b5563, #374151);
    cursor: not-allowed;
    opacity: 0.7;
}

.watch-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* No Matches */
.no-matches {
    text-align: center;
    padding: 80px 20px;
}

.no-matches-icon {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.no-matches h3 {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 10px;
}

.no-matches p {
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.site-footer {
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 36px;
    width: auto;
}

.footer-logo i {
    font-size: 26px;
    color: #3b82f6;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    max-width: 380px;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3b82f6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Ads */
.ad-container {
    width: 100%;
    text-align: center;
    margin: 20px 0;
    overflow: hidden;
}

.ad-container script { display: none !important; }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Tablet */
@media (max-width: 1024px) {
    .nav-link { padding: 8px 12px; font-size: 13px; }
    .section-title { font-size: 26px; }
    .matches-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    
    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 20px 40px;
        gap: 8px;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .site-nav.active { right: 0; }
    
    .nav-link {
        width: 100%;
        padding: 14px 18px;
        font-size: 15px;
        color: #ffffff;
    }
    
    .site-logo img { height: 34px; }
    .site-logo span { font-size: 16px; }
    
    .hero-section { padding: 15px 0; }
    .banner-slider { border-radius: 14px; aspect-ratio: 16/9; max-height: 260px; }
    .banner-overlay { padding: 20px; }
    .banner-overlay h2 { font-size: 18px; }
    .banner-arrow { width: 30px; height: 30px; }
    
    .matches-section { padding: 30px 0; }
    .section-title { font-size: 22px; }
    .section-subtitle { font-size: 14px; }
    .matches-grid { grid-template-columns: 1fr; gap: 16px; }
    
    .match-content { padding: 16px; }
    .match-title { font-size: 15px; }
    .match-teams { padding: 12px; }
    .match-teams .team { font-size: 13px; }
    
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 0 auto; }
    .container { padding: 0 15px; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header-container { padding: 12px 15px; }
    .site-logo img { height: 30px; }
    .site-logo span { font-size: 15px; }
    .banner-slider { max-height: 180px; }
    .banner-overlay h2 { font-size: 15px; }
    .section-title { font-size: 20px; }
    .watch-btn { padding: 12px; font-size: 14px; }
}

/* Selection & Scrollbar */
::selection { background: #3b82f6; color: #ffffff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; }
