/*
 * ╔═══════════════════════════════════════════════════════╗
 * ║  MIRAGE REALITY LABS — Navbar & Footer Component CSS  ║
 * ╚═══════════════════════════════════════════════════════╝
 *
 * Add this to your global.css, or link separately:
 *   <link rel="stylesheet" href="css/components.css" />
 *
 * Requires these CSS variables to be defined in :root
 * (already present in global.css):
 *   --nc, --mg, --ep, --dv, --bg, --sur,
 *   --stroke, --text, --muted, --font, --mono, --r
 */

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 500;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 5, 5, 0.55);
  border-bottom: 1px solid var(--stroke);
  transition: background 0.3s;
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.nav__logo:hover { opacity: 0.85; }

.nav__logo-img {
  height: 50px;
  border-radius: 10px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.35));
  transition: filter 0.2s;
}
.nav__logo:hover .nav__logo-img {
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.65));
}

.nav__logo-text {
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
  color: #dbfcff;
  letter-spacing: -0.03em;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
  transition: text-shadow 0.2s;
}
.nav__logo:hover .nav__logo-text {
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.7);
}

/* On very small screens keep just the image, drop the text */
@media (max-width: 380px) {
  .nav__logo-text { display: none; }
}

/* Desktop links */
.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #8fa3a5);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__link:hover {
  color: var(--text, #e5e2e1);
}
.nav__link--active {
  color: var(--nc, #00f0ff);
  border-bottom: 2px solid var(--nc, #00f0ff);
  padding-bottom: 2px;
}

/* CTA button */
.nav__cta {
  background: var(--nc, #00f0ff);
  color: var(--dv, #050505);
  padding: 7px 20px;
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r, 2px);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.1s;
  white-space: nowrap;
}
.nav__cta:hover {
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.5);
}
.nav__cta:active {
  transform: scale(0.96);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text, #e5e2e1);
  transition: transform 0.3s, opacity 0.3s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  background: rgba(5, 5, 5, 0.97);
  border-top: 1px solid var(--stroke, rgba(255,255,255,0.10));
}
.nav__mobile.open {
  display: flex;
}
.nav__mobile-link {
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #8fa3a5);
  text-decoration: none;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color 0.2s, background 0.2s;
}
.nav__mobile-link:hover,
.nav__mobile-link.active {
  color: var(--nc, #00f0ff);
  background: rgba(0, 240, 255, 0.04);
}
.nav__mobile-cta {
  color: var(--nc, #00f0ff);
  font-weight: 700;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__hamburger {
    display: flex;
  }
  .nav__inner {
    height: 58px;
  }
}


/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 10;
  background: var(--dv, #050505);
  border-top: 1px solid var(--stroke, rgba(255,255,255,0.10));
  padding: 64px 0 32px;
}

/* Grid: brand left, nav cols right */
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

/* Brand block */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__logo {
  font-family: var(--font, sans-serif);
  font-size: 36px;
  font-weight: 700;
  font-style: italic;
  color: #e5e2e1;
  text-decoration: none;
  letter-spacing: -0.03em;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
  transition: text-shadow 0.2s;
}
.footer__logo:hover {
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.6);
}

.footer__desc {
  font-size: 14px;
  color: var(--muted, #8fa3a5);
  max-width: 320px;
  line-height: 1.65;
}

/* Social buttons */
.footer__socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sur, rgba(15,15,15,0.7));
  border: 1px solid var(--stroke, rgba(255,255,255,0.10));
  border-radius: var(--r, 2px);
  color: var(--muted, #8fa3a5);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.footer__social-btn:hover {
  color: var(--nc, #00f0ff);
  border-color: var(--nc, #00f0ff);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}
.footer__social-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Nav columns */
.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  justify-items: end;
}

.footer__hd {
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nc, #00f0ff);
  margin-bottom: 14px;
}

.footer__link {
  display: block;
  font-size: 14px;
  color: var(--muted, #8fa3a5);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s, transform 0.2s;
}
.footer__link:hover {
  color: var(--mg, #00ff85);
  transform: translateX(4px);
}

/* Bottom bar */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--stroke, rgba(255,255,255,0.10));
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #8fa3a5);
}

.footer__status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono, monospace);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--mg, #00ff85);
}

.footer__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mg, #00ff85);
  animation: mrl-blink 2s ease-in-out infinite;
}

@keyframes mrl-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__cols {
    justify-items: start;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .footer__cols {
    grid-template-columns: 1fr;
  }
}