/* 93ok shared site chrome
   Navigation and footer styling inspired by the pj-ok.fun layout,
   adapted to the 93ok dark neon visual system. */

:root {
  --chrome-cyan: #22d3ee;
  --chrome-blue: #3b82f6;
  --chrome-violet: #8b5cf6;
  --chrome-rose: #f43f5e;
  --chrome-ink: #e5e7eb;
  --chrome-muted: #94a3b8;
  --chrome-line: rgba(148, 163, 184, .16);
  --chrome-panel: rgba(7, 12, 28, .94);
  --chrome-transition: .28s cubic-bezier(.4, 0, .2, 1);
}

/* Header */
.navbar {
  background: linear-gradient(115deg, rgba(3, 7, 18, .96), rgba(10, 14, 35, .9) 58%, rgba(20, 11, 36, .94)) !important;
  border-bottom: 1px solid rgba(34, 211, 238, .22) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .26), 0 1px 0 rgba(139, 92, 246, .22) !important;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--chrome-cyan), var(--chrome-violet), transparent);
  opacity: .8;
  pointer-events: none;
}

.navbar > .container {
  max-width: 1480px;
  min-height: 76px;
  gap: 18px;
}

.navbar-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: .32rem .6rem;
  border: 1px solid rgba(34, 211, 238, .2);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .08), rgba(139, 92, 246, .12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 24px rgba(34, 211, 238, .08);
  transition: transform var(--chrome-transition), border-color var(--chrome-transition), box-shadow var(--chrome-transition);
}

.navbar-brand:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, .56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 28px rgba(34, 211, 238, .18);
}

.navbar-brand img {
  display: block;
  width: auto;
  height: 46px;
  max-width: 172px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, .3));
}

.navbar-nav {
  gap: 3px;
  align-items: center;
}

.navbar-nav .nav-item {
  position: relative;
}

.navbar-nav .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .58rem .72rem !important;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #e2e8f0 !important;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color var(--chrome-transition), background var(--chrome-transition), border-color var(--chrome-transition), transform var(--chrome-transition);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  right: .72rem;
  bottom: 5px;
  left: .72rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--chrome-cyan), var(--chrome-violet));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--chrome-transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible,
.navbar-nav .nav-link.active {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(34, 211, 238, .12), rgba(139, 92, 246, .18));
  border-color: rgba(34, 211, 238, .24);
  transform: translateY(-1px);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus-visible::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* News follows the same active-state treatment as every other navigation item. */
.navbar-nav .nav-item:last-child .nav-link {
  margin-left: 0;
  padding-right: .72rem !important;
  padding-left: .72rem !important;
  color: #e2e8f0 !important;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.navbar-nav .nav-item:last-child .nav-link:hover,
.navbar-nav .nav-item:last-child .nav-link.active {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(34, 211, 238, .12), rgba(139, 92, 246, .18));
  border-color: rgba(34, 211, 238, .24);
  box-shadow: none;
}

.navbar-toggler {
  width: 46px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(34, 211, 238, .36) !important;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .12), rgba(139, 92, 246, .16)) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 .2rem rgba(34, 211, 238, .18);
}

.navbar-toggler-icon {
  filter: invert(1) sepia(1) saturate(4) hue-rotate(145deg) drop-shadow(0 0 4px rgba(34, 211, 238, .7));
}

/* Footer */
footer.site-footer,
footer.pt-5.pb-4 {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding-top: 64px !important;
  padding-bottom: 26px !important;
  color: var(--chrome-ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(34, 211, 238, .1), transparent 28%),
    radial-gradient(circle at 92% 14%, rgba(139, 92, 246, .15), transparent 30%),
    linear-gradient(180deg, #070b1b 0%, #030611 100%) !important;
  border-top: 1px solid rgba(34, 211, 238, .26) !important;
}

footer.site-footer::before,
footer.pt-5.pb-4::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--chrome-cyan), var(--chrome-violet), transparent);
  opacity: .78;
}

/* News pages should flow directly into the footer without an empty spacer. */
.news-page footer.site-footer {
  margin-top: 0;
}

footer.site-footer > .container,
footer.pt-5.pb-4 > .container {
  position: relative;
  z-index: 1;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) repeat(3, minmax(130px, .8fr)) minmax(190px, 1fr);
  gap: 34px 30px;
  align-items: start;
}

.site-footer .footer-brand {
  margin-bottom: 18px;
}

.site-footer .footer-brand-mark {
  display: inline-flex;
  padding: .38rem .64rem;
  border: 1px solid rgba(34, 211, 238, .24);
  border-radius: 14px;
  background: rgba(34, 211, 238, .06);
  box-shadow: 0 0 24px rgba(34, 211, 238, .08);
}

.site-footer .footer-brand img {
  display: block;
  width: auto;
  height: 44px;
  max-width: 168px;
  object-fit: contain;
}

.site-footer .footer-desc {
  max-width: 360px;
  margin: 0 0 18px;
  color: var(--chrome-muted);
  font-size: .94rem;
  line-height: 1.8;
}

.site-footer .footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.site-footer .footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 .78rem;
  border: 1px solid rgba(34, 211, 238, .2);
  border-radius: 999px;
  color: #cffafe;
  background: linear-gradient(135deg, rgba(34, 211, 238, .1), rgba(139, 92, 246, .12));
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.site-footer .footer-title,
.site-footer .mini-title {
  margin: 0 0 15px;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.site-footer .footer-link-group,
.site-footer .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.site-footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.site-footer .footer-links a,
.site-footer .footer-link,
.site-footer .footer-contact a {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 0;
  color: #aebbd0;
  font-size: .9rem;
  line-height: 1.45;
  transition: color var(--chrome-transition), transform var(--chrome-transition);
}

.site-footer .footer-links a::before,
.site-footer .footer-link::before {
  content: "›";
  margin-right: .42rem;
  color: var(--chrome-cyan);
  opacity: .75;
  transition: transform var(--chrome-transition);
}

.site-footer .footer-links a:hover,
.site-footer .footer-link:hover,
.site-footer .footer-contact a:hover {
  color: #fff;
  transform: translateX(3px);
}

.site-footer .footer-links a:hover::before,
.site-footer .footer-link:hover::before {
  transform: translateX(2px);
}

.site-footer .footer-contact a,
.site-footer .footer-contact p {
  color: #aebbd0;
  font-size: .9rem;
  line-height: 1.75;
  margin: 0;
}

.site-footer .footer-contact a {
  color: #cffafe;
  font-weight: 700;
}

.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  margin-top: 34px;
  border-top: 1px solid var(--chrome-line);
  color: #718096;
  font-size: .82rem;
  line-height: 1.6;
}

/* Fallback styling for an older footer block while pages are being rebuilt. */
footer.pt-5.pb-4 > .container > .row {
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) repeat(2, minmax(150px, .8fr));
  gap: 30px;
  margin: 0 !important;
}

footer.pt-5.pb-4 > .container > .border-top {
  margin-top: 34px !important;
  border-top-color: var(--chrome-line) !important;
}

@media (min-width: 1360px) {
  .navbar-toggler { display: none; }
  .navbar-collapse { display: flex !important; flex-basis: auto; }
}

@media (max-width: 1359.98px) {
  .navbar > .container {
    min-height: 70px;
    flex-wrap: wrap;
  }
  .navbar .navbar-toggler {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .navbar .navbar-collapse:not(.show) { display: none !important; }
  .navbar .navbar-collapse.show {
    display: block !important;
    flex-basis: 100%;
    width: 100%;
    margin: .65rem 0 .4rem;
    padding: .55rem;
    border: 1px solid rgba(34, 211, 238, .2);
    border-radius: 16px;
    background: var(--chrome-panel);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .32);
  }
  .navbar .navbar-nav {
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
    gap: 4px;
  }
  .navbar .navbar-nav .nav-item,
  .navbar .navbar-nav .nav-link { width: 100%; }
  .navbar .navbar-nav .nav-link { display: flex; }
  .navbar-nav .nav-item:last-child .nav-link { margin-left: 0; }
  .site-footer-grid { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
}

@media (max-width: 767.98px) {
  footer.site-footer,
  footer.pt-5.pb-4 { margin-top: 0; padding-top: 50px !important; }
  .site-footer-grid,
  footer.pt-5.pb-4 > .container > .row { grid-template-columns: 1fr; gap: 25px; }
  .site-footer .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .navbar > .container { padding-right: 12px; padding-left: 12px; }
  .navbar-brand img { height: 40px; max-width: 145px; }
  .navbar-brand { padding: .28rem .45rem; }
  .navbar-toggler { width: 42px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .navbar-brand,
  .navbar-nav .nav-link,
  .site-footer .footer-links a,
  .site-footer .footer-link,
  .site-footer .footer-contact a { transition: none; }
}
