/* ═══════════════════════════════════════
   AzSport — layout.css
   ═══════════════════════════════════════ */

* { box-sizing: border-box; }

body {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  background: var(--az-bg);
  color: var(--az-gray-700);
  direction: rtl;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--az-trans); }
img { max-width: 100%; height: auto; }

/* ── Topbar ── */
.az-topbar {
  background: var(--az-dark);
  color: #94a3b8;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.az-topbar a { color: #94a3b8; margin-right: 14px; }
.az-topbar a:hover { color: #fff; }
.az-topbar span { color: #94a3b8; margin-right: 14px; }
.az-logout-btn {
  background: none; border: none; color: #94a3b8;
  font-size: 12px; cursor: pointer; padding: 0; margin-right: 14px;
  font-family: inherit; transition: var(--az-trans);
}
.az-logout-btn:hover { color: #fff; }

/* تیکر اخبار */
.breaking-wrap { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.breaking-label {
  background: var(--az-primary);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 4px; white-space: nowrap;
}
.breaking-text {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #cbd5e1; font-size: 12px;
}

/* ── Header ── */
.az-header {
  background: #fff;
  padding: 12px 0;
  border-bottom: 3px solid var(--az-primary);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--az-shadow-md);
}

.az-logo {
  font-size: 26px; font-weight: 800;
  color: var(--az-primary); white-space: nowrap;
  display: flex; align-items: center;
}
.az-logo span { color: var(--az-dark); }
.az-logo-img { height: 46px; width: auto; display: block; }

/* جستجو */
.az-search-wrap {
  display: flex; align-items: center;
  background: var(--az-gray-50);
  border: 1px solid var(--az-gray-200);
  border-radius: 50px;
  overflow: hidden;
  max-width: 480px;
  transition: var(--az-trans);
}
.az-search-wrap:focus-within {
  border-color: var(--az-primary);
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}
.az-search-wrap input {
  border: none; background: none; padding: 9px 18px;
  font-family: inherit; font-size: 13px; flex: 1;
  direction: rtl; outline: none; color: var(--az-gray-700);
}
.az-search-btn {
  background: var(--az-primary); color: #fff; border: none;
  padding: 0 18px; height: 40px; cursor: pointer;
  font-size: 14px; transition: var(--az-trans);
}
.az-search-btn:hover { background: var(--az-primary-dark); }

/* شبکه‌های اجتماعی */
.az-social { display: flex; gap: 8px; }
.az-social a {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; transition: var(--az-trans);
}
.az-social .s-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.az-social .s-tw { background: #1da1f2; }
.az-social .s-yt { background: #ff0000; }
.az-social .s-tl { background: #0088cc; }
.az-social a:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }

/* ── Navbar ── */
.az-navbar {
  background: var(--az-navy);
  padding: 0;
}
.az-navbar .navbar-nav { gap: 0; }
.az-navbar .nav-link {
  color: #cbd5e1 !important; font-size: 13px; font-weight: 600;
  padding: 12px 14px !important; white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--az-trans);
}
.az-navbar .nav-link:hover,
.az-navbar .nav-link.active {
  color: #fff !important;
  border-bottom-color: var(--az-primary);
  background: rgba(255,255,255,.05);
}
.az-navbar .nav-link.hot { color: #fca5a5 !important; }

/* hamburger */
.az-navbar-toggler {
  border: 1px solid rgba(255,255,255,.2); border-radius: 8px;
  padding: 6px 10px;
}
.az-navbar-toggler .navbar-toggler-icon {
  filter: invert(1);
}

/* ── Ticker ── */
.az-ticker {
  background: var(--az-primary); overflow: hidden;
  padding: 7px 0; position: relative;
}
.az-ticker::before {
  content: '📢';
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: var(--az-primary-dark); padding: 7px 14px;
  font-size: 14px; z-index: 2;
}
.az-ticker-track {
  display: flex; gap: 48px;
  animation: tickerScroll 35s linear infinite;
  padding-right: 60px;
}
.az-ticker-track span {
  color: #fff; font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
.az-ticker-track span::before { content: '◆ '; font-size: 8px; opacity: .6; }
@keyframes tickerScroll {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ── Section Title ── */
.az-section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  border-right: 4px solid var(--az-primary);
  padding-right: 12px;
}
.az-section-title h2 {
  font-size: 16px; font-weight: 800; color: var(--az-dark);
  margin: 0;
}
.az-section-title a {
  font-size: 12px; color: var(--az-primary); font-weight: 600;
}
.az-section-title a:hover { color: var(--az-primary-dark); }

/* ── Footer ── */
.az-footer {
  background: var(--az-dark); color: #94a3b8;
  padding: 48px 0 0;
  margin-top: 40px;
}
.az-footer-logo { font-size: 26px; font-weight: 800; color: var(--az-primary); margin-bottom: 12px; }
.az-footer-logo span { color: #fff; }
.az-footer-logo-img { height: 54px; width: auto; margin-bottom: 14px; display: block; }
.az-footer p { font-size: 13px; line-height: 1.8; }
.az-footer h5 { color: #e2e8f0; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.az-footer ul { list-style: none; padding: 0; margin: 0; }
.az-footer ul li { margin-bottom: 8px; }
.az-footer ul li a { color: #94a3b8; font-size: 13px; }
.az-footer ul li a:hover { color: var(--az-primary); padding-right: 4px; }
.az-footer-soc { display: flex; gap: 10px; }
.az-footer-soc a {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff; transition: var(--az-trans);
}
.az-footer-soc .s-ig { background: #e1306c; }
.az-footer-soc .s-tw { background: #1da1f2; }
.az-footer-soc .s-yt { background: #ff0000; }
.az-footer-soc .s-tl { background: #0088cc; }
.az-footer-soc a:hover { transform: scale(1.1); }
.az-footer-bottom {
  background: rgba(0,0,0,.3); text-align: center;
  padding: 14px; font-size: 12px; color: #64748b;
  margin-top: 36px;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .az-header { padding: 10px 0; }
  .az-logo   { font-size: 22px; }
  .az-navbar .nav-link { padding: 10px 16px !important; border-bottom: none; border-right: 3px solid transparent; }
  .az-navbar .nav-link:hover, .az-navbar .nav-link.active { border-right-color: var(--az-primary); border-bottom-color: transparent; }
  .az-navbar .navbar-collapse { background: var(--az-navy); }
}
@media (max-width: 575.98px) {
  .az-logo { font-size: 20px; }
  .az-search-wrap { max-width: 100%; }
}
