/* ==========================================================================
   BRANDING — أدوات AI بالعربي (preview only, loads after theme.css)
   Logo mark + hero search/stats + improved sticky nav. Navy/gold identity,
   Cairo font, dark/light themes. Does not touch live files.
   ========================================================================== */

/* ---------- Hero logo mark ---------------------------------------------- */
.hero-logo {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 26px rgba(250, 204, 21, .35));
}

/* ---------- Hero search (moved up from the toolbar) ---------------------- */
.hero-search { max-width: 640px; margin: 22px auto 0; }
.hero-search input {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.08rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.hero-search input::placeholder { color: var(--faint); }
.hero-search input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, .18);
}

/* ---------- Hero stats strip -------------------------------------------- */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
  margin-top: 20px;
  font-size: .98rem;
  color: #cbd5e1;
}
.hero-stats b { color: var(--gold); font-size: 1.15rem; }
header .channel { margin-top: 20px; }

/* ---------- Nav: brand image + grouped links ---------------------------- */
nav.mainnav .wrap { justify-content: space-between; }
.brand-img {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
}
.brand-text span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 4px;
}
.nav-links a { white-space: nowrap; }

/* ---------- Light theme -------------------------------------------------- */
html[data-theme="light"] .hero-search input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}
html[data-theme="light"] .hero-stats { color: #475569; }
html[data-theme="light"] .hero-logo {
  filter: drop-shadow(0 0 22px rgba(234, 179, 8, .45));
}

/* ---------- Mobile: brand row on top, links scroll horizontally ---------- */
@media (max-width: 600px) {
  .hero-logo { width: 96px; height: 96px; margin-bottom: 14px; }
  .hero-search input { font-size: 1.05rem; padding: 14px 18px; }
  nav.mainnav .wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 6px 0;
  }
  nav.mainnav .brand { justify-content: center; margin-inline-end: 0; }
  .nav-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a, .nav-links .theme-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
  }
}
