/*
Theme Name: Football Live - يلا شوت
Theme URI: https://your-site.com
Author: Football Theme
Author URI: https://your-site.com
Description: ثيم كرة القدم - يلا شوت مباشر | مباريات اليوم بث مباشر مع لوحة تحكم كاملة وSEO قوي
Version: 2.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: football
Tags: rtl-language, football, sports, arabic, matches, seo
*/

/* =============================================
   GLOBAL RESET & BASE STYLES
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #DC2626 0%, #991B1B 100%);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #EF4444 0%, #DC2626 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    min-height: 100vh;
    overflow-x: hidden;
    direction: rtl;
}

body.menu-open { overflow: hidden; }

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

/* =============================================
   HEADER
   ============================================= */
header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(220,38,38,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
header:hover { border-bottom-color: #DC2626; }

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo { cursor: pointer; transition: transform 0.3s ease; text-decoration: none; }
.logo:hover { transform: scale(1.02); }
.logo h1 { color: #DC2626; font-size: 28px; font-weight: 700; text-shadow: 0 2px 4px rgba(220,38,38,0.2); }
.logo p { color: #991B1B; font-size: 14px; margin-top: -5px; }

/* Navigation */
nav ul { display: flex; list-style: none; gap: 30px; }
nav a { color: #1f2937; text-decoration: none; font-weight: 500; transition: color 0.3s; }
nav a:hover { color: #DC2626; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px; height: 24px;
    background: transparent; border: none;
    cursor: pointer; padding: 0; z-index: 1001;
    transition: all 0.3s ease;
}
.hamburger span {
    display: block; width: 100%; height: 3px;
    background: #333; border-radius: 3px; transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.hamburger.active span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

/* =============================================
   HERO BANNER
   ============================================= */
.cta-hero {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 10px 40px rgba(220,38,38,0.3);
}
.cta-hero-content h2 {
    color: white; font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}
.cta-hero-content p {
    color: white; font-size: 20px;
    margin-bottom: 30px; opacity: 0.95;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 0 0 rgba(255,255,255,0.7); }
    50% { box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 0 15px rgba(255,255,255,0); }
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    text-align: center; padding: 80px 0; color: white;
}
.hero h2 { font-size: 52px; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero p { font-size: 24px; margin-bottom: 40px; opacity: 0.95; }

/* =============================================
   MATCHES SECTION
   ============================================= */
.matches-section { background: #f0f4f8; padding: 80px 0; }
.matches-section h2 {
    text-align: center; font-size: 42px; margin-bottom: 60px;
    background: linear-gradient(135deg, #0077b6 0%, #005687 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0,119,182,0.2));
}

.albaflex {
    width: 100%; display: flex; flex-direction: column;
    box-sizing: border-box; padding: 12px 12px 0;
}
.albaflex .not-started { order: 3; }
.albaflex .live { order: 1; }
.albaflex .finished { order: 4; }

/* Date navigation */
.date-nav {
    display: flex; gap: 10px; justify-content: center;
    margin-bottom: 30px; flex-wrap: wrap;
}
.date-nav button {
    padding: 8px 18px; border-radius: 20px;
    border: 2px solid #DC2626; background: white;
    color: #DC2626; font-weight: 600; cursor: pointer;
    font-size: 14px; transition: all 0.3s;
    font-family: inherit;
}
.date-nav button.active,
.date-nav button:hover {
    background: #DC2626; color: white;
}

/* Filter by league */
.league-filter {
    display: flex; gap: 8px; margin-bottom: 20px;
    overflow-x: auto; padding-bottom: 8px; flex-wrap: wrap;
}
.league-pill {
    padding: 5px 15px; border-radius: 15px;
    background: #e2e8f0; color: #4a5568;
    cursor: pointer; white-space: nowrap;
    font-size: 13px; transition: all 0.2s;
    border: none; font-family: inherit;
}
.league-pill.active, .league-pill:hover {
    background: #0077b6; color: white;
}

/* Match Cards */
.AY_Match {
    order: 3; overflow: hidden; text-align: center;
    background: #ffffff; margin-bottom: 10px;
    position: relative; border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: all 0.2s ease-in-out;
}
.AY_Match:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.MT_Mask { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; cursor: pointer; }
.MT_MaskText { width: 100%; height: 100%; }
.AY_Match a { color: #1a202c; text-decoration: none; }

.MT_Info { border-bottom: 1px solid #e2e8f0; overflow: hidden; width: 100%; background: #f7fafc; }
.MT_Info ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.MT_Info li { width: 100% !important; text-align: right !important; flex: 1; font-size: 14px; padding: 5px 5px 7px; color: #4a5568; }
.MT_Info li span { margin-right: 5px; }

.AY_Inner { display: flex !important; align-items: center !important; }
.AY_Inner > div { flex: 0 0 auto; width: 33.33333333%; }

.MT_Team { display: flex; align-items: center; flex: 1; flex-direction: column; }
.TM_Logo { width: 50%; }
.TM_Logo img { margin: 10px auto; display: flex; width: 70px; height: 70px; object-fit: contain; }
.TM_Name { margin: 8px auto; font-weight: 600; font-size: 15px; color: #2d3748; }

.MT_Data { margin: 12px auto; display: flex; flex-direction: column; align-items: center; }
.MT_Time { font-size: 16px; color: #0077b6; font-weight: 600; }
.MT_Result { font-size: 22px; display: inline-flex; gap: 5px; justify-content: center; align-items: center; font-weight: 700; color: #1a202c; }

.MT_Stat {
    position: relative; background: #edf2f7;
    padding: 4px 10px 5px; display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 6px; color: #4a5568; font-size: 13px;
    font-weight: 600; text-align: center; margin: 6px auto 0;
    height: 25px; min-width: 60px; border: 1px solid #cbd5e0;
}

.AY_Match.not-started .MT_Result { display: none; }
.AY_Match.started .MT_Time,
.AY_Match.live .MT_Time,
.AY_Match.finished .MT_Time { display: none; }

@keyframes blinker {
    0%, 100% { background: #e53e3e; box-shadow: 0 0 10px rgba(229,62,62,0.5); }
    50% { background: #c53030; box-shadow: 0 0 18px rgba(197,48,48,0.7); }
}

.AY_Match.live .MT_Stat { background: #e53e3e; animation: blinker 900ms ease-in-out infinite; color: white; border-color: #fc8181; }
.AY_Match.live { border-color: #fc8181; box-shadow: 0 2px 12px rgba(229,62,62,0.15); }
.AY_Match.finished { opacity: 0.75; }
.AY_Match.finished .MT_Stat { background: #edf2f7; color: #a0aec0; border-color: #e2e8f0; }

/* Loading / No data */
.matches-loading { text-align: center; padding: 60px 20px; }
.matches-loading p { font-size: 16px; color: #6b7280; margin-top: 12px; }
.loading-spinner { width: 44px; height: 44px; border: 4px solid #e2e8f0; border-top-color: #DC2626; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.no-matches { text-align: center; padding: 60px 20px; color: #6b7280; }
.no-matches-icon { font-size: 48px; margin-bottom: 12px; }
.no-data__msg { min-height: 250px; display: flex; align-items: center; justify-content: center; width: 100%; color: #666; font-size: 18px; }

/* ─── New match card classes (matches.js output) ── */
.ay-match {
    position: relative; text-align: center;
    background: #fff; margin-bottom: 10px;
    border-radius: 10px; border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    overflow: hidden; transition: all .2s ease;
}
.ay-match:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.ay-match.live { border-color: #fc8181; box-shadow: 0 2px 12px rgba(229,62,62,.15); }
.ay-match.finished { opacity: .78; }

.ay-inner { display: flex; align-items: center; }
.ay-inner > .mt-team,
.ay-inner > .mt-data { flex: 0 0 auto; width: 33.333%; }

.mt-team { display: flex; flex-direction: column; align-items: center; padding: 12px 8px; }
.tm-logo img { width: 65px; height: 65px; object-fit: contain; display: block; margin: 0 auto 6px; }
.logo-placeholder { width: 55px; height: 55px; border-radius: 50%; background: linear-gradient(135deg,#DC2626,#991B1B); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; margin: 0 auto 6px; }
.tm-name { font-size: 14px; font-weight: 600; color: #2d3748; text-align: center; }

.mt-data { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; }
.mt-time { font-size: 16px; color: #0077b6; font-weight: 700; }
.mt-result { font-size: 22px; font-weight: 700; color: #1a202c; display: flex; align-items: center; gap: 4px; }
.rs-sep { color: #94a3b8; font-size: 18px; }
.mt-stat {
    padding: 3px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 700; margin-top: 6px;
    background: #edf2f7; color: #4a5568; border: 1px solid #cbd5e0;
}
.ay-match.live .mt-stat { background: #e53e3e; color: #fff; border-color: transparent; animation: blinker 900ms infinite; }
.ay-match.finished .mt-stat { background: #edf2f7; color: #a0aec0; }
.ay-match.comming-soon .mt-stat { background: #0f6f37; color: #fff; border-color: transparent; }
.tour-name { font-size: 11px; color: #94a3b8; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }

.mt-info { border-top: 1px solid #f1f5f9; background: #f8fafc; padding: 6px 12px; }
.mt-info ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 8px; justify-content: center; flex-wrap: wrap; }
.mt-info li { font-size: 12px; color: #6b7280; }

.mt-mask { position: absolute; inset: 0; z-index: 9; cursor: pointer; background: rgba(0,0,0,0); transition: background .2s; display: flex; align-items: center; justify-content: center; }
.ay-match:hover .mt-mask { background: rgba(0,0,0,.45); }
.mt-mask-play { opacity: 0; transition: opacity .2s; }
.ay-match:hover .mt-mask-play { opacity: 1; }

/* League filter buttons */
#league-filter { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.league-btn {
    padding: 6px 14px; border-radius: 18px;
    background: #e2e8f0; color: #4a5568;
    border: none; cursor: pointer; font-size: 13px;
    font-family: inherit; font-weight: 500; transition: all .2s;
}
.league-btn:hover { background: #0077b6; color: #fff; }
.league-btn.active { background: linear-gradient(135deg,#DC2626,#991B1B); color: #fff; }


/* =============================================
   FEATURES SECTION
   ============================================= */
.features { background: white; padding: 80px 0; }
.features h2 {
    text-align: center; font-size: 42px; margin-bottom: 60px;
    color: #1f2937; position: relative; padding-bottom: 20px;
}
.features h2::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 100px; height: 4px;
    background: linear-gradient(90deg, #DC2626 0%, #EF4444 100%); border-radius: 2px;
}
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 40px; }
.feature-card {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    padding: 40px 30px; border-radius: 15px; text-align: center;
    color: white; transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(220,38,38,0.2);
}
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(220,38,38,0.35); }
.feature-card h3 { font-size: 24px; margin-bottom: 15px; }

/* =============================================
   SPORTS / LEAGUES SECTION
   ============================================= */
.sports-list { background: #f8f9fa; padding: 80px 0; }
.sports-list h2 {
    text-align: center; font-size: 42px; margin-bottom: 60px;
    color: #1f2937; position: relative; padding-bottom: 20px;
}
.sports-list h2::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 100px; height: 4px;
    background: linear-gradient(90deg, #DC2626 0%, #EF4444 100%); border-radius: 2px;
}
.sports-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.sport-item {
    background: white; padding: 30px; border-radius: 10px;
    text-align: center; box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s; border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}
.sport-item:hover {
    transform: translateY(-5px); box-shadow: 0 8px 25px rgba(220,38,38,0.2);
    border-right-color: #DC2626;
}
.sport-item h3 { color: #DC2626; font-size: 22px; margin-bottom: 10px; font-weight: 600; }

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {
    background: linear-gradient(180deg, rgba(15,12,41,0.92) 0%, rgba(36,36,62,0.92) 100%);
    padding: 80px 0; text-align: center;
}
.contact-section h2 { font-size: 36px; color: white; margin-bottom: 40px; }
.contact-card {
    display: inline-flex; flex-direction: column;
    align-items: center; gap: 16px;
    background: rgba(26,26,46,0.9);
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 16px; padding: 40px 60px;
    box-shadow: 0 5px 30px rgba(0,212,255,0.15);
}
.contact-icon { font-size: 48px; }
.contact-card p { color: #b0b0b0; font-size: 16px; }
.contact-email { color: #00d4ff; font-size: 20px; font-weight: 700; text-decoration: none; transition: all 0.3s; }
.contact-email:hover { color: #b537f2; }

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: linear-gradient(to bottom, rgba(255,255,255,0.97), rgba(254,226,226,0.97));
    padding: 40px 0; text-align: center;
    color: #4b5563; border-top: 3px solid #DC2626;
    box-shadow: 0 -5px 20px rgba(220,38,38,0.1);
}
footer p { margin: 10px 0; }
footer a { color: #DC2626; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* =============================================
   BREADCRUMBS
   ============================================= */
.breadcrumb {
    background: rgba(255,255,255,0.9); padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}
.breadcrumb a { color: #DC2626; text-decoration: none; }
.breadcrumb span { color: #6b7280; margin: 0 5px; }

/* =============================================
   SINGLE MATCH PAGE
   ============================================= */
.match-single-wrap { background: #f0f4f8; min-height: 60vh; padding: 40px 0; }
.match-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 50px 0; text-align: center; color: white;
}
.match-hero .match-league { font-size: 16px; color: #94a3b8; margin-bottom: 10px; }
.match-hero .match-title { font-size: 32px; font-weight: 700; margin-bottom: 20px; }
.match-scoreboard {
    display: flex; align-items: center; justify-content: center;
    gap: 30px; margin: 20px 0;
}
.match-team-block { text-align: center; }
.match-team-logo { width: 90px; height: 90px; object-fit: contain; margin-bottom: 10px; }
.match-team-name { font-size: 20px; font-weight: 600; }
.match-score-center { text-align: center; }
.match-score-num { font-size: 48px; font-weight: 700; line-height: 1; }
.match-score-sep { font-size: 36px; color: #94a3b8; }
.match-status-badge {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    font-size: 14px; font-weight: 600; margin-top: 10px;
}
.match-status-badge.live { background: #e53e3e; color: white; animation: blinker 900ms infinite; }
.match-status-badge.not-started { background: #3b82f6; color: white; }
.match-status-badge.finished { background: #6b7280; color: white; }

.match-watch-btn {
    display: inline-block; margin-top: 25px;
    padding: 16px 50px; background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white; text-decoration: none; border-radius: 50px;
    font-size: 20px; font-weight: 700;
    box-shadow: 0 8px 25px rgba(220,38,38,0.5);
    transition: all 0.3s;
}
.match-watch-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(220,38,38,0.6); color: white; }

.match-info-box {
    background: white; border-radius: 12px; padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08); margin-top: 30px;
}
.match-info-box h3 { color: #DC2626; font-size: 20px; margin-bottom: 15px; border-bottom: 2px solid #fee2e2; padding-bottom: 10px; }
.match-info-table { width: 100%; border-collapse: collapse; }
.match-info-table td { padding: 10px 15px; border-bottom: 1px solid #f1f5f9; font-size: 15px; }
.match-info-table td:first-child { color: #6b7280; width: 40%; }
.match-info-table td:last-child { color: #1f2937; font-weight: 500; }

/* =============================================
   404 PAGE
   ============================================= */
.page-404-wrap { text-align: center; padding: 100px 0; color: white; }
.page-404-wrap h1 { font-size: 120px; font-weight: 700; line-height: 1; }
.page-404-wrap h2 { font-size: 30px; margin-bottom: 20px; }
.page-404-wrap a {
    display: inline-block; padding: 14px 40px;
    background: white; color: #DC2626; border-radius: 30px;
    text-decoration: none; font-weight: 700; font-size: 18px;
    transition: all 0.3s;
}
.page-404-wrap a:hover { transform: scale(1.05); }

/* =============================================
   ADMIN NOTICE AREA
   ============================================= */
.football-admin-notice {
    background: #fef3c7; border-right: 4px solid #f59e0b;
    padding: 15px 20px; margin: 20px 0; border-radius: 5px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .header-content { flex-direction: row; justify-content: space-between; align-items: center; }
    .hamburger { display: flex; }
    nav {
        position: fixed; top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        padding: 80px 20px 20px;
        transition: right 0.4s ease;
        z-index: 1000; overflow-y: auto;
    }
    nav.active { right: 0; }
    nav ul { flex-direction: column; gap: 0; text-align: right; }
    nav li { border-bottom: 1px solid #e0e0e0; }
    nav a { display: block; padding: 18px 20px; font-size: 18px; color: #333; transition: all 0.3s ease; }
    nav a:hover { background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%); color: white; padding-right: 30px; }
    body.menu-open::before {
        content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5); z-index: 999;
    }
    .hero h2 { font-size: 32px; }
    .hero p { font-size: 18px; }
    .features h2, .sports-list h2, .matches-section h2 { font-size: 28px; }
    .cta-hero-content h2 { font-size: 26px; }
    .cta-hero-content p { font-size: 15px; }
    .match-scoreboard { flex-direction: column; gap: 15px; }
    .match-score-num { font-size: 36px; }
    .contact-card { padding: 30px; width: 90%; }
    .TM_Logo img { width: 50px !important; height: 50px !important; }
    .MT_Info li { font-size: 12px !important; }
    .TM_Name { font-size: 13px; }
}

@media (max-width: 500px) {
    .logo h1 { font-size: 20px; }
    .logo p { font-size: 11px; }
    .hamburger { width: 26px; height: 20px; }
    nav { width: 250px; }
    .match-watch-btn { padding: 14px 30px; font-size: 17px; }
}
