/* ─── SEO Script — Premium Dark Theme ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --bg-dark: #07070d;
    --bg-card: #0d0d16;
    --bg-card-hover: #12121f;
    --accent: #e50914;
    --accent-soft: rgba(229, 9, 20, 0.15);
    --accent-glow: rgba(229, 9, 20, 0.4);
    --green: #00dc82;
    --green-soft: rgba(0, 220, 130, 0.12);
    --text: #f0f0f5;
    --text-dim: #8888a0;
    --border: rgba(255, 255, 255, 0.06);
    --glass: rgba(255, 255, 255, 0.04);
    --radius: 14px;
    --max-w: 1300px;
}

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

body {
    font-family: 'Inter', 'Tajawal', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Animated Background ─────────────────────────────────────── */
.bg-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-glow::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -200px; left: -100px;
    animation: float 20s ease-in-out infinite;
    opacity: 0.3;
}
.bg-glow::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0, 220, 130, 0.15) 0%, transparent 70%);
    bottom: -150px; right: -100px;
    animation: float 25s ease-in-out infinite reverse;
    opacity: 0.2;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 80px) scale(0.95); }
}

/* ─── Navbar ──────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 7, 13, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
}
.nav-logo .logo-icon {
    width: 38px; height: 38px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 25px var(--accent-glow);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}
.nav-links a {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text);
    background: var(--glass);
}
.nav-links .live-badge {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 0 8px transparent; }
}
.lang-switcher {
    display: flex;
    gap: 4px;
    margin-left: 10px;
}
.lang-switcher a {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.lang-switcher a:hover, .lang-switcher a.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

/* ─── Hero Section ────────────────────────────────────────────── */
.hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 20px 60px;
}
.hero h1 {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: clamp(15px, 2vw, 19px);
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 30px;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 30px var(--accent-glow);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--accent-glow);
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}
.hero-stat {
    text-align: center;
}
.hero-stat .num {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}
.hero-stat .label {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* ─── Section Headers ─────────────────────────────────────────── */
.section {
    position: relative;
    z-index: 1;
    padding: 60px 0;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}
.section-header h2 {
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-header h2 .icon {
    font-size: 28px;
}
.section-header .see-all {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}
.section-header .see-all:hover { gap: 10px; }

/* ─── Match Cards — Compact Row Design ────────────────────────── */
.matches-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.25s;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 14px;
}
.match-card:hover {
    border-color: rgba(229, 9, 20, 0.25);
    background: var(--bg-card-hover);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.match-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.match-league {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.match-time {
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    white-space: nowrap;
    flex-shrink: 0;
}
.match-teams {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}
.team-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.team-name:last-child { text-align: right; }
.match-vs {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent);
    background: var(--accent-soft);
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.match-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn-watch:hover {
    background: #ff1a26;
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* ─── Status Badges ───────────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.status-live {
    background: rgba(229, 9, 20, 0.15);
    color: #ff4444;
}
.status-ended {
    background: rgba(100, 100, 100, 0.15);
    color: #666;
}
.status-upcoming {
    background: rgba(0, 220, 130, 0.1);
    color: var(--green);
}
.live-dot {
    width: 6px; height: 6px;
    background: #ff4444;
    border-radius: 50%;
    animation: live-pulse 1.5s infinite;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* ─── League Cards ────────────────────────────────────────────── */
.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.league-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 14px;
    text-align: center;
    transition: all 0.25s;
    cursor: pointer;
}
.league-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.league-card .league-icon {
    font-size: 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 12px;
    display: inline-block;
    margin-bottom: 10px;
    letter-spacing: 1px;
    color: var(--accent);
}
.league-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}
.league-card p {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ─── Content Sections (multi-language) ───────────────────────── */
.content-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 20px;
}
.content-block h2, .content-block h3 {
    margin-bottom: 14px;
}
.content-block p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
}
.content-block ul {
    list-style: none;
    padding: 0;
}
.content-block li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.content-block li::before {
    content: '▸';
    color: var(--accent);
    font-weight: bold;
}

/* RTL support */
[dir="rtl"] .content-block,
.rtl-block {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', 'Inter', sans-serif;
}
.rtl-block li::before {
    content: '◂';
}

/* ─── How-to Steps ────────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: transform 0.3s;
}
.step-card:hover { transform: translateY(-3px); }
.step-num {
    width: 44px; height: 44px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    margin: 0 auto 14px;
}
.step-card h4 {
    font-size: 14px;
    margin-bottom: 6px;
}
.step-card p {
    font-size: 13px;
    color: var(--text-dim);
}

/* ─── Match Page (individual) ─────────────────────────────────── */
.match-hero {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    z-index: 1;
}
.match-hero .league-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 24px;
}
.match-hero h1 {
    font-size: clamp(24px, 4.5vw, 44px);
    font-weight: 900;
    margin-bottom: 14px;
}
.match-hero .match-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: var(--text-dim);
    font-size: 15px;
    flex-wrap: wrap;
}
.match-hero .match-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.match-teams-big {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
}
.team-big {
    text-align: center;
    flex: 1;
    max-width: 200px;
}
.team-big .team-initial {
    width: 80px; height: 80px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 12px;
    color: var(--accent);
}
.team-big h3 {
    font-size: 18px;
    font-weight: 700;
}
.vs-big {
    font-size: 20px;
    font-weight: 900;
    color: var(--accent);
    background: var(--accent-soft);
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ─── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 13px;
    color: var(--text-dim);
    position: relative;
    z-index: 1;
}
.breadcrumb a {
    color: var(--text-dim);
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.4; }

/* ─── Category Page Header ────────────────────────────────────── */
.cat-hero {
    text-align: center;
    padding: 70px 20px 50px;
    position: relative;
    z-index: 1;
}
.cat-hero .cat-icon {
    font-size: 16px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 20px;
    display: inline-block;
    margin-bottom: 16px;
    letter-spacing: 1px;
    color: var(--accent);
}
.cat-hero h1 {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 900;
    margin-bottom: 14px;
}
.cat-hero p {
    font-size: 16px;
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto;
}

/* ─── Footer ──────────────────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 50px 0 30px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
}
.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    padding: 5px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero { padding: 50px 15px 40px; }
    .hero-stats { gap: 20px; }
    .hero-stat .num { font-size: 22px; }
    .match-card { grid-template-columns: 1fr; gap: 8px; }
    .match-card-footer { justify-content: space-between; }
    .leagues-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
    .match-teams-big { gap: 20px; }
    .team-big .team-initial { width: 60px; height: 60px; font-size: 22px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .cat-hero .cat-icon { font-size: 14px; padding: 8px 16px; }
}
@media (max-width: 480px) {
    .leagues-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .match-teams { flex-wrap: wrap; justify-content: center; }
    .team-name:last-child { text-align: center; }
}

