/* ============================================================
   CHTAYGAR 2026 — FIFA/UEFA Corporate Style
   Palette: Navy #0A1628 + Slate #14253D + White cards + Gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #0A1628;
    --bg-section: #0E1D33;
    --bg-card: #14253D;
    --bg-card-hover: #1A2E4A;
    --bg-input: #0E1D33;
    --gold: #C9A84C;
    --gold-light: #E2C66D;
    --gold-dark: #A68A3A;
    --rouge: #E63946;
    --vert: #27AE60;
    --bleu: #3498DB;
    --bleu-light: #5DADE2;
    --violet: #8E44AD;
    --cyan: #1ABC9C;
    --text: #ECF0F1;
    --text-secondary: #BDC3C7;
    --text-muted: #7F8C8D;
    --text-dim: #566573;
    --border: rgba(255,255,255,0.08);
    --border-light: rgba(255,255,255,0.04);
    --accent: #3498DB;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.25);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.3);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.35);
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 14px;
    /* Legacy */
    --or: #C9A84C; --glass: #14253D; --glass-border: rgba(255,255,255,0.08);
    --navy-card: #14253D; --sombre-bg: #0A1628; --sombre-card: #14253D;
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Inter',sans-serif; background:var(--bg); color:var(--text); min-height:100vh; overflow-x:hidden; -webkit-font-smoothing:antialiased; }
h1,h2,h3,h4,h5,h6 { font-family:'Poppins',sans-serif; color:var(--text); }

::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:#2C3E50; border-radius:10px; }

/* ================= NAVBAR ================= */
#mainNavbar {
    background: #0D1B30;
    border-bottom: 1px solid var(--border);
    padding: 0;
    transition: all 0.3s;
    z-index: 1000;
}
#mainNavbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.4); background: #0B1726; }
.navbar-brand { gap:8px; }
.logo-icon {
    width:32px; height:32px; border-radius:6px;
    background:linear-gradient(135deg,var(--gold),var(--gold-dark));
    display:flex; align-items:center; justify-content:center;
    color:#fff; font-size:0.85rem; flex-shrink:0;
}
.logo-text { font-family:'Poppins',sans-serif; font-weight:800; font-size:1rem; color:#fff; line-height:1; }
.logo-text span { color:var(--gold); }
.logo-text small { color:var(--rouge); font-size:0.65rem; font-weight:700; margin-left:2px; }
@media(max-width:576px) { .logo-icon { width:26px; height:26px; font-size:0.7rem; } .logo-text { font-size:0.85rem; } }

.nav-link { color: var(--text-secondary) !important; font-weight:500; font-size:0.82rem; padding:12px 10px !important; transition:all 0.2s; border-bottom:2px solid transparent; border-radius:0; }
.nav-link:hover { color:#fff !important; border-bottom-color:var(--gold); }
.nav-link.active { color:#fff !important; border-bottom-color:var(--gold); font-weight:600; }
.nav-link.active::after { display:none; }

.btn-chtaygar-sm { background:var(--accent); color:#fff !important; border:none; border-radius:var(--radius-sm); padding:6px 16px; font-weight:600; font-size:0.78rem; transition:all 0.2s; }
.btn-chtaygar-sm:hover { background:#2980B9; }
.btn-outline-gold { border:1px solid var(--border); color:var(--text-secondary) !important; border-radius:var(--radius-sm); font-size:0.78rem; font-weight:500; background:transparent; }
.btn-outline-gold:hover { border-color:var(--gold); color:var(--gold) !important; }

.dropdown-menu-dark { background:var(--bg-card) !important; border:1px solid var(--border) !important; border-radius:var(--radius) !important; box-shadow:var(--shadow-lg) !important; padding:4px; }
.dropdown-menu-dark .dropdown-item { color:var(--text-secondary) !important; border-radius:var(--radius-sm); padding:8px 12px; font-size:0.82rem; }
.dropdown-menu-dark .dropdown-item:hover { background:rgba(52,152,219,0.1) !important; color:var(--bleu-light) !important; }
.dropdown-menu-dark .dropdown-item.active { background:rgba(52,152,219,0.15) !important; color:var(--bleu-light) !important; }
.dropdown-menu-dark .dropdown-divider { border-color:var(--border) !important; }
.dropdown-menu-dark .dropdown-item-text { color:var(--gold) !important; }

@media(max-width:992px) {
    #mainNavbar { padding:0.3rem 0; }
    .navbar-collapse { background:var(--bg-card); border-radius:var(--radius); padding:0.8rem; margin-top:0.5rem; border:1px solid var(--border); box-shadow:var(--shadow-lg); max-height:80vh; overflow-y:auto; }
    .nav-link { border-bottom:none !important; border-radius:var(--radius-sm); padding:10px 12px !important; }
    .nav-link:hover, .nav-link.active { background:rgba(52,152,219,0.1); }
}

/* ================= HERO ================= */
.hero-home { min-height:100vh; display:flex; align-items:center; position:relative; overflow:hidden; padding:80px 0 50px; background:linear-gradient(160deg, #071020 0%, #0D1F3C 30%, #122B4E 60%, #0A1628 100%); }
.hero-bg-overlay { position:absolute; inset:0; pointer-events:none; background:radial-gradient(ellipse 500px 400px at 75% 25%, rgba(52,152,219,0.06), transparent); }
.hero-badge { display:inline-flex; align-items:center; gap:8px; background:rgba(201,168,76,0.1); border:1px solid rgba(201,168,76,0.2); padding:6px 16px; border-radius:50px; font-size:0.78rem; font-weight:600; color:var(--gold); margin-bottom:1.5rem; }
.hero-badge .pulse-dot { width:7px; height:7px; border-radius:50%; background:var(--gold); animation:pulse 2s infinite; }
.hero-main-title { font-size:clamp(2rem,5vw,3.8rem); font-weight:900; line-height:1.08; margin-bottom:1.2rem; color:#fff; }
.hero-desc { color:var(--text-muted); font-size:0.95rem; line-height:1.8; margin-bottom:1.5rem; max-width:440px; }
.hero-mini-stats { display:flex; align-items:center; gap:14px; margin-bottom:2rem; flex-wrap:wrap; }
.hero-mini-stat { text-align:center; }
.hero-mini-val { display:block; font-size:1.4rem; font-weight:800; line-height:1; font-family:'Poppins',sans-serif; }
.hero-mini-label { font-size:0.6rem; color:var(--text-dim); text-transform:uppercase; letter-spacing:1px; }
.hero-mini-divider { width:1px; height:24px; background:rgba(255,255,255,0.08); }
.hero-cta { display:flex; gap:10px; flex-wrap:wrap; }

.btn-hero-primary { background:var(--accent); color:#fff; border:none; padding:12px 28px; border-radius:var(--radius); font-weight:700; font-size:0.9rem; transition:all 0.2s; display:inline-flex; align-items:center; gap:8px; text-decoration:none; }
.btn-hero-primary:hover { background:#2980B9; transform:translateY(-2px); color:#fff; }
.btn-hero-secondary { background:transparent; color:var(--text-secondary); border:1px solid var(--border); padding:12px 28px; border-radius:var(--radius); font-weight:600; font-size:0.9rem; transition:all 0.2s; display:inline-flex; align-items:center; gap:8px; text-decoration:none; }
.btn-hero-secondary:hover { border-color:var(--gold); color:var(--gold); transform:translateY(-2px); }

.hero-img-desktop { width:100%; max-width:400px; border-radius:var(--radius-lg); box-shadow:0 20px 60px rgba(0,0,0,0.5); border:1px solid var(--border); transition:transform 0.4s; }
.hero-img-desktop:hover { transform:scale(1.02); }
.hero-img-mobile { width:80%; max-width:280px; border-radius:var(--radius); box-shadow:0 15px 40px rgba(0,0,0,0.5); border:1px solid var(--border); }

/* ================= SECTIONS ================= */
.content-section { padding:3.5rem 0; }
.section-title { font-size:1.4rem; font-weight:800; margin-bottom:0.3rem; }
.section-subtitle { color:var(--text-muted); font-size:0.85rem; margin-bottom:2rem; }

/* ================= CARDS ================= */
.match-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:1.2rem; transition:all 0.25s; position:relative; overflow:hidden; }
.match-card::before { display:none; }
.match-card:hover { background:var(--bg-card-hover); border-color:rgba(52,152,219,0.3); transform:translateY(-2px); box-shadow:var(--shadow-md); }

.match-date { color:var(--text-muted); font-size:0.75rem; display:flex; align-items:center; gap:5px; }
.teams-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:0.8rem; }
.team-name { font-weight:600; font-size:0.82rem; }
.vs-badge { background:var(--accent); color:#fff; width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:0.6rem; flex-shrink:0; }
.match-venue { color:var(--text-dim); font-size:0.72rem; }
.match-venue i { color:var(--gold); }

.btn-prediction { background:var(--accent); color:#fff; border:none; border-radius:var(--radius-sm); padding:8px 16px; font-weight:600; font-size:0.78rem; width:100%; transition:all 0.2s; text-decoration:none; display:block; text-align:center; }
.btn-prediction:hover { background:#2980B9; color:#fff; }

/* ================= BARS ================= */
.probability-bar { height:6px; border-radius:10px; background:rgba(255,255,255,0.04); overflow:hidden; margin:6px 0; }
.probability-fill { height:100%; border-radius:10px; transition:width 1.5s ease-out; }
.probability-fill.win { background:var(--vert); }
.probability-fill.draw { background:var(--text-dim); }
.probability-fill.lose { background:var(--rouge); }

/* ================= STANDINGS ================= */
.standings-table { width:100%; border-collapse:collapse; }
.standings-table th { color:var(--text-dim); font-size:0.65rem; text-transform:uppercase; letter-spacing:1px; padding:10px 6px; border-bottom:1px solid var(--border); }
.standings-table td { padding:9px 6px; border-bottom:1px solid var(--border-light); font-size:0.8rem; color:var(--text-secondary); }
.standings-table tr:hover td { background:rgba(52,152,219,0.05); }
.standings-table tr.morocco td { background:rgba(230,57,70,0.06); color:var(--rouge); font-weight:600; }

/* ================= LIVE ================= */
.live-indicator { display:inline-flex; align-items:center; gap:5px; color:var(--rouge); font-weight:700; font-size:0.75rem; }
.live-dot { width:7px; height:7px; border-radius:50%; background:var(--rouge); animation:pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

/* ================= PREMIUM ================= */
.premium-lock { text-align:center; padding:2rem 1.5rem; background:rgba(201,168,76,0.05); border:1px solid rgba(201,168,76,0.12); border-radius:var(--radius-lg); margin:1rem 0; }

/* ================= SCORE CARDS ================= */
.score-card { background:var(--bg-section); border:1px solid var(--border); border-radius:var(--radius); padding:1rem; text-align:center; transition:all 0.2s; }
.score-card:hover { border-color:var(--accent); }
.score-card .score-value { font-size:1.6rem; font-weight:900; color:var(--text); font-family:'Poppins',sans-serif; }
.score-card .score-pct { color:var(--gold); font-weight:700; font-size:0.85rem; }

/* ================= FOOTER ================= */
.footer-section { background:#060E1A; padding:2.5rem 0 1.5rem; border-top:1px solid var(--border); }
.footer-brand { color:#fff; font-weight:800; font-size:1rem; margin-bottom:0.5rem; font-family:'Poppins',sans-serif; }
.footer-links { list-style:none; padding:0; }
.footer-links li { margin-bottom:6px; }
.footer-links a { color:var(--text-dim); text-decoration:none; font-size:0.78rem; transition:color 0.2s; }
.footer-links a:hover { color:var(--gold); }
.social-links { display:flex; gap:6px; margin-top:0.8rem; }
.social-btn { width:32px; height:32px; border-radius:var(--radius-sm); background:rgba(255,255,255,0.04); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--text-dim); text-decoration:none; transition:all 0.2s; font-size:0.8rem; }
.social-btn:hover { background:var(--accent); color:#fff; border-color:var(--accent); }
.social-btn.whatsapp-btn:hover { background:#25D366; border-color:#25D366; }
.btn-premium-sm { background:var(--gold); color:#fff; border:none; border-radius:var(--radius-sm); padding:6px 14px; font-weight:700; font-size:0.75rem; }

/* ================= WHATSAPP ================= */
.whatsapp-float { position:fixed; bottom:20px; right:20px; z-index:999; width:46px; height:46px; border-radius:50%; background:#25D366; color:#fff; font-size:1.2rem; display:flex; align-items:center; justify-content:center; box-shadow:0 3px 12px rgba(37,211,102,0.3); transition:all 0.2s; text-decoration:none; }
.whatsapp-float:hover { transform:scale(1.08); color:#fff; }

/* ================= LOADER ================= */
.page-loader { position:fixed; inset:0; background:var(--bg); z-index:9999; display:flex; align-items:center; justify-content:center; transition:opacity 0.3s; }
.page-loader.hidden { opacity:0; pointer-events:none; }
.loader-spinner { width:32px; height:32px; border:3px solid var(--border); border-top-color:var(--accent); border-radius:50%; animation:spin 0.6s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ================= AUTH ================= */
.auth-container { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:2rem 1rem; background:var(--bg); }
.auth-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); width:100%; max-width:420px; overflow:hidden; box-shadow:var(--shadow-lg); }
.auth-header { background:linear-gradient(135deg,#14253D,#1A2E4A); padding:1.8rem; text-align:center; border-bottom:1px solid var(--border); }
.auth-body { padding:1.8rem; }
.auth-body .form-control { background:var(--bg-input); border:1px solid var(--border); color:var(--text); border-radius:var(--radius-sm); padding:10px 14px; font-size:0.85rem; }
.auth-body .form-control:focus { border-color:var(--accent); box-shadow:0 0 0 2px rgba(52,152,219,0.15); color:var(--text); }
.auth-body .form-control::placeholder { color:var(--text-dim); }
.auth-body .form-label { color:var(--text-muted); font-size:0.8rem; font-weight:500; }
.btn-auth { background:var(--accent); color:#fff; border:none; border-radius:var(--radius-sm); padding:12px; font-weight:700; width:100%; font-size:0.9rem; }
.btn-auth:hover { background:#2980B9; color:#fff; }

/* ================= ANIMATIONS ================= */
.fade-in { opacity:1; transform:none; }
[data-aos] { opacity:1; transform:none; }

/* ================= RESPONSIVE ================= */
@media(max-width:576px) {
    .hero-home { padding:70px 0 25px; min-height:auto; }
    .hero-main-title { font-size:1.6rem; }
    .hero-desc { font-size:0.8rem; }
    .hero-mini-stats { gap:6px; } .hero-mini-val { font-size:1.1rem; } .hero-mini-divider { height:18px; }
    .hero-cta { flex-direction:column; gap:8px; }
    .hero-cta a { width:100%; justify-content:center; padding:10px 20px; font-size:0.85rem; }
    .hero-img-mobile { width:75%; max-width:240px; }
    .match-card { padding:1rem; }
    .team-name { font-size:0.7rem; }
    .vs-badge { width:26px; height:26px; font-size:0.5rem; }
    .section-title { font-size:1.2rem; }
    .content-section { padding:2rem 0; }
    .whatsapp-float { width:40px; height:40px; font-size:1rem; bottom:14px; right:14px; }
    .standings-table th, .standings-table td { padding:5px 3px; font-size:0.68rem; }
}

/* ================= LANGUAGE SELECTOR ================= */
.lang-selector { display:flex; gap:4px; align-items:center; }
.lang-btn { display:flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:var(--radius-sm); border:1px solid var(--border); background:transparent; transition:all 0.2s; text-decoration:none; opacity:0.5; }
.lang-btn:hover, .lang-btn.active { opacity:1; border-color:var(--gold); background:rgba(201,168,76,0.1); }

/* ================= RTL SUPPORT ================= */
[dir="rtl"] { direction:rtl; text-align:right; }
[dir="rtl"] .me-1 { margin-right:0 !important; margin-left:0.25rem !important; }
[dir="rtl"] .me-2 { margin-right:0 !important; margin-left:0.5rem !important; }
[dir="rtl"] .ms-auto { margin-left:0 !important; margin-right:auto !important; }
[dir="rtl"] .ms-lg-3 { margin-left:0 !important; margin-right:1rem !important; }
[dir="rtl"] .text-end { text-align:left !important; }
[dir="rtl"] .text-md-end { text-align:left !important; }
[dir="rtl"] .dropdown-menu-end { right:auto !important; left:0 !important; }
[dir="rtl"] .float-sm-right { float:left !important; }
[dir="rtl"] .fa-arrow-right::before { content:"\f060"; }
[dir="rtl"] .fa-chevron-right::before { content:"\f053"; }
[dir="rtl"] .navbar-nav { padding-right:0; }
