/* --- PREMIUM SAAS DESIGN SYSTEM --- */
:root {
    /* Color Palette */
    --bg-base: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1c1c1c;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    --text-dark: #52525b;
    
    --accent-primary: #00e5ff; /* Neon Cyan */
    --accent-glow: rgba(0, 229, 255, 0.15);
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Layout Variables */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- GLOBAL RESETS & SCROLLBAR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-card-hover);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-dark);
}

/* --- HEADER / NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 32px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent-primary);
}

.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.main-nav a:hover, .main-nav a.active {
    color: var(--text-main);
}

/* --- BENTO BOX GRID LAYOUT --- */
.bento-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 100px auto 60px;
    padding: 0 24px;
}

.bento-span-12 { grid-column: span 12; }

.bento-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Global Micro-interaction */
a.bento-item:hover, .bento-item.interactive:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    background-color: var(--bg-card-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* --- HERO COMPONENT (Shrunk per request) --- */
.hero {
    /* Reduced padding significantly */
    padding: 40px 24px; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: var(--radius-lg);
    border-top: 1px solid rgba(0, 229, 255, 0.2);
}

.hero-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    /* Shrunk glow radius */
    width: 400px; 
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 100px;
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.live-badge .dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}

.hero h1 {
    /* Scaled down font size */
    font-size: clamp(2rem, 4vw, 3rem); 
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero h1 span {
    color: var(--text-muted);
}

.hero-desc {
    /* Slightly smaller text for tighter design */
    font-size: 1rem; 
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- SECTION TYPOGRAPHY --- */
.section-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 20px;
    padding-left: 4px;
}

/* --- DIRECTORY GRID (Nested in Bento) --- */
.directory-wrapper {
    background: transparent;
    padding: 0;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dir-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    text-decoration: none;
    color: var(--text-main);
}

.dir-icon {
    font-size: 2rem;
    background: rgba(255,255,255,0.03);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.dir-card:hover .dir-icon {
    border-color: var(--accent-primary);
    background: rgba(0, 229, 255, 0.05);
}

.dir-meta {
    flex: 1;
    margin: 0 20px;
}

.dir-meta h3 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.dir-meta p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    color: var(--text-dark);
    transition: var(--transition);
}

.dir-card:hover .arrow-icon {
    color: var(--accent-primary);
    transform: translateX(4px);
}

/* --- MATCH CARDS (Dynamically injected by app.js) --- */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    width: 100%;
}

.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.match-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    background-color: var(--bg-card-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.match-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.match-league {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.match-time {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.match-teams {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.4;
}

.watch-btn-full {
    display: block;
    text-align: center;
    width: 100%;
    padding: 12px;
    background: var(--bg-base);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
    margin-top: auto;
}

.match-card:hover .watch-btn-full {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
}


/* --- SEO AUTHORITY MATRIX --- */
.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.seo-item {
    padding: 32px;
}

.seo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-dark);
}

.seo-item:hover .status-indicator {
    background-color: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-glow);
}

.seo-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.seo-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.seo-item strong {
    color: var(--text-main);
    font-weight: 500;
}

/* --- SYSTEM FAQ --- */
.faq-wrap {
    padding: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 24px;
}

.faq-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-box h4::before {
    content: '';
    display: block;
    width: 1px;
    height: 16px;
    background: var(--accent-primary);
}

.faq-box p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding-left: 13px;
}

/* --- TAG CLOUD --- */
.tag-container {
    padding: 32px;
    display: flex;
    justify-content: center;
    background: transparent;
    border: none;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 900px;
}

.tag-cloud span {
    font-size: 0.75rem;
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    transition: var(--transition);
    cursor: default;
}

.tag-cloud span:hover {
    color: var(--text-muted);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

/* --- FOOTER --- */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 40px 24px;
    text-align: center;
}

.footer-logo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-logo span {
    color: var(--text-dark);
}

.footer-description {
    color: var(--text-dark);
    font-size: 0.8rem;
}

/* --- MOBILE RESPONSIVE HOOKS --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .directory-grid, .seo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* True Mobile Phone Adjustments */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(16px);
        border-left: 1px solid var(--border-subtle);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 40px;
    }

    .main-nav.active { right: 0; }
    
    .menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .main-nav a {
        font-size: 1.25rem;
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    /* Convert Bento grid to a flexible column stack for phones */
    .bento-container {
        display: flex;
        flex-direction: column;
        padding: 0 16px;
        margin-top: 80px;
        gap: 16px;
    }

    /* Shrink the hero even further for small phone screens */
    .hero { padding: 32px 16px; }
    .hero h1 { font-size: 1.8rem; margin-bottom: 12px; }
    .hero-desc { font-size: 0.9rem; }
    
    /* Convert nested grids to single columns */
    .directory-grid, .seo-grid, .match-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    /* Shrink inner paddings to save screen space */
    .dir-card { padding: 16px; }
    .dir-icon { width: 50px; height: 50px; font-size: 1.5rem; }
    .faq-wrap { padding: 24px 16px; }
    .seo-item { padding: 24px 16px; }
}