/* ===============================
   Base
================================ */
body {
  margin: 0;
  background: #eef4f8;
  color: #1e293b;
  font-size: 16px;
}

/* ===============================
   Fonts by language
================================ */
body.font-ar {
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
}

body.font-latin {
  font-family: 'Inter', Arial, sans-serif;
}

/* ===============================
   Typography hierarchy
================================ */
h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 10px;
}

h2 {
  font-size: 26px;
  font-weight: 700;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

p {
  line-height: 1.9;
  font-size: 16px;
  color: #475569;
}

/* ===============================
   Numbers (stats)
================================ */
.stat-number {
  font-family: 'Inter', monospace;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .5px;
}

/* ===============================
   Buttons
================================ */
.btn {
  font-weight: 600;
  letter-spacing: .3px;
}

.topbar{background:#fff;box-shadow:0 4px 20px rgba(0,0,0,.05)}
.topbar-container{max-width:1300px;margin:auto;padding:12px 20px;
display:flex;align-items:center;justify-content:space-between}
.logo{display:flex;align-items:center;gap:10px;font-weight:bold;color:#0369a1}
.logo img{height:38px}
.main-menu a{margin:0 8px;text-decoration:none;color:#334155;
padding:6px 14px;border-radius:999px;display:inline-flex;gap:6px}
.main-menu a:hover{background:#0284c7;color:#fff}
.lang-switch button{border:none;background:#f1f5f9;
padding:6px 10px;border-radius:999px;margin-left:5px;cursor:pointer}
.burger{display:none;font-size:26px;cursor:pointer}

@media(max-width:900px){
  .main-menu{display:none;position:absolute;top:70px;
  background:#fff;flex-direction:column;padding:10px;
  border-radius:16px;box-shadow:0 20px 40px rgba(0,0,0,.15)}
  .burger{display:block}
}
.container {
  max-width: 1300px;
  margin: auto;
  padding: 40px 20px;
}

.card.soft {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.home-card {
  text-align: center;
}

.home-card h1 {
  color: #0369a1;
  margin-bottom: 10px;
}

.home-card p {
  color: #64748b;
  font-size: 18px;
}

.home-actions {
  margin-top: 25px;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  margin: 5px;
}

.btn.primary {
  background: #0284c7;
  color: #fff;
}

.btn.outline {
  border: 2px solid #0284c7;
  color: #0284c7;
}

.main-menu a.active {
  background: #0284c7;
  color: #fff;
}

.main-menu img {
  width: 18px;
  height: 18px;
}

@media (max-width:900px){
  .main-menu{
    position:fixed;
    top:70px;
    inset-inline-end:15px;
    background:#fff;
    width:220px;
    border-radius:18px;
    padding:10px;
    display:none;
    flex-direction:column;
    animation:fade .2s ease;
  }
}
@keyframes fade{from{opacity:0;transform:translateY(-5px)}
to{opacity:1}}

/* =========================
   Burger Menu
========================= */
.burger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  background: #0284c7;
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
}

/* Mobile */
@media (max-width: 900px) {
  .burger {
    display: block;
  }

  .main-menu {
    position: fixed;
    top: 70px;
    inset-inline-end: 15px; /* RTL + LTR */
    background: #fff;
    width: 220px;
    border-radius: 18px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
    z-index: 999;
    animation: menuFade .2s ease;
  }

  .main-menu a {
    justify-content: flex-start;
    padding: 10px 14px;
  }
}

@keyframes menuFade {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.stat-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px 30px;
  min-width: 180px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.stat-number {
  font-size: 32px;
  font-weight: bold;
  color: #0284c7;
  display: block;
}

.stat-label {
  color: #64748b;
  margin-top: 6px;
  display: block;
}

.shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 50px auto;
}

.shortcut-card {
  background: #fff;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0,0,0,.07);
  text-align: center;
  transition: transform .2s ease;
}

.shortcut-card:hover {
  transform: translateY(-4px);
}

.shortcut-card h3 {
  color: #0369a1;
  margin-bottom: 10px;
}

.shortcut-card p {
  color: #64748b;
  margin-bottom: 20px;
}

.site-footer {
  width: 100%;
  padding: 25px 10px;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
}

.footer-inner {
  max-width: 1300px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer-logo {
  height: 42px; /* ⬅️ متوازن */
  opacity: 0.9;
}

.footer-text {
  line-height: 1.6;
}

.footer-credit {
  font-size: 12px;
  opacity: 0.8;
}

.footer-credit a {
  color: #0284c7;
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 600px) {
  .footer-logo {
    height: 34px;
  }

  .site-footer {
    padding: 18px 8px;
    font-size: 12px;
  }
}


/* =========================
   Language Switch Loader
========================= */
.lang-loader {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lang-loader.active {
  display: flex;
}

.lang-loader .spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #e5e7eb;
  border-top-color: #0284c7;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.lang-switch button {
  border: none;
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: #334155;
}

.lang-switch button.active {
  background: #0284c7;
  color: #fff;
}


.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-color: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.icon-home     { mask-image: url("assets/icons/home.svg"); }
.icon-season   { mask-image: url("assets/icons/calendar.svg"); }
.icon-results  { mask-image: url("assets/icons/chart.svg"); }
.icon-members  { mask-image: url("assets/icons/users.svg"); }
.icon-contact  { mask-image: url("assets/icons/mail.svg"); }

.main-menu a.active .menu-icon {
  filter: none;
  opacity: 1;
}

.main-menu a:not(.active) .menu-icon {
  opacity: 0.6;
}

html[dir="rtl"] .logo-text {
  color: #0369a1;
}

html[dir="ltr"] .logo-text {
  color: #0284c7;
}

.logo-text {
  font-weight: 800;
  font-size: 18px;
  color: #0f172a;
  transition: color .2s ease;
}

/* Hover على menu */
.main-menu a:hover ~ .logo .logo-text {
  color: #0369a1;
}

/* Active page */
.main-menu a.active ~ .logo .logo-text {
  color: #0284c7;
}
