/* ================================================
   B4Sport Modern Template  v1.0
   ================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --color-primary: #1e40af;
  --color-nav-bg: #1e293b;
  --color-nav-text: #e2e8f0;
  --color-nav-hover: #60a5fa;
  --color-nav-active-bg: rgba(255, 255, 255, 0.08);
  --color-header-bg: #ffffff;
  --color-page-bg: #f1f5f9;
  --color-footer-bg: #1e293b;
  --color-footer-bottom: #0f172a;
}

/* ===== GLOBAL ===== */
body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: var(--color-page-bg);
  color: #334155;
}

/* ===== TOP HEADER ===== */
.site-header {
  background: var(--color-header-bg);
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
}

.site-logo {
  max-height: 80px;
  max-width: 200px;
  object-fit: contain;
}

.mobile-logo {
  max-height: 40px;
  object-fit: contain;
}

.site-header-content h1,
.site-header-content h2,
.site-header-content p {
  margin: 0;
  color: #1e293b;
}

/* ===== NAVIGATION BAR ===== */
.site-nav {
  background: var(--color-nav-bg);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ----- Desktop menu (ul generated by Page::getNewMenu) ----- */
.site-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.site-menu-item {
  position: relative;
}

.site-menu-item > a {
  display: flex;
  align-items: center;
  padding: 1rem 1.2rem;
  color: var(--color-nav-text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.site-menu-item > a:hover,
.site-menu-item.menu-active > a {
  color: var(--color-nav-hover);
  background-color: var(--color-nav-active-bg);
}

/* ----- Dropdown submenu ----- */
.site-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--color-primary);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  list-style: none;
  padding: 0.4rem 0;
  margin: 0;
}

.site-menu-item:hover > .site-submenu {
  display: block;
}

.site-submenu-item > a {
  display: block;
  padding: 0.55rem 1.25rem;
  color: #334155;
  font-size: 0.875rem;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}

.site-submenu-item > a:hover {
  background: #eff6ff;
  color: var(--color-primary);
}

/* ----- Mobile hamburger ----- */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0.9rem 0;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-nav-text);
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}

/* ----- Mobile nav panel ----- */
.mobile-nav-body {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0 1rem;
}

/* ----- Mobile menu (ul/li rendered by getNewMenu) ----- */
.mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-item > a {
  display: block;
  padding: 0.65rem 0.75rem;
  color: var(--color-nav-text);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.15s;
}

.mobile-menu-item > a:hover,
.mobile-menu-item.menu-active > a {
  color: var(--color-nav-hover);
}

.mobile-submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.2);
}

.mobile-submenu-item > a {
  display: block;
  padding: 0.55rem 0.75rem 0.55rem 1.75rem;
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color 0.15s;
}

.mobile-submenu-item > a:hover {
  color: var(--color-nav-hover);
}

/* ----- Mobile language switcher (inside mobile nav) ----- */
.mobile-lang-wrap {
  padding: 0.5rem 0.75rem;
}

.mobile-lang-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mobile-lang-item a {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  color: #94a3b8;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.mobile-lang-item a:hover {
  color: var(--color-nav-text);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ----- Language switcher (in header) ----- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #475569;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  transition:
    border-color 0.15s,
    color 0.15s;
}

.lang-toggle:hover {
  border-color: #94a3b8;
  color: #1e293b;
}

/* ===== MAIN CONTENT ===== */
.content-body {
  background: #ffffff;
  border-radius: 6px;
  padding: 2rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  min-height: 200px;
}

@media (max-width: 767.98px) {
  .content-body {
    padding: 1rem;
  }
}

/* ===== SIDEBAR ===== */
aside {
  /* sidebar column */
}

/* ===== 404 PAGE ===== */
.page-404 {
  padding: 3rem 0;
}

.page-404 .error-code {
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.15;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-footer-bg);
  color: #94a3b8;
  margin-top: 3rem;
}

.site-footer a {
  color: #60a5fa;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-content {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-bottom {
  background: var(--color-footer-bottom);
  padding: 0.75rem 0;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-bottom a {
  color: #60a5fa;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #ffffff;
}
