/*  /assets/css/nav.css  */

/* ===== Full-Screen Slide Nav Overlay ===== */
.nav-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: var(--color-primary, #11a8c3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.38s cubic-bezier(.77,0,.18,1), opacity .2s;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}
.nav-overlay.open {
  transform: none;
  opacity: 1;
  pointer-events: all;
}

/* Card inside overlay */
.nav-card {
  background: var(--color-secondary, #fff);
  color: var(--color-text, #222);
  box-shadow: 0 10px 36px rgba(0,0,0,.22);
  border-radius: 1.4em;
  min-width: 320px;
  max-width: 94vw;
  width: 400px;
  padding: 1.5em 1.2em 0.9em 1.2em; /* Tighter padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 350px; /* Lower min-height */
  gap: 0.8em;        /* Reduced gap between elements */
}
.nav-logo img {
  display: block;
  max-width: 120px;
  max-height: 80px;
  width: auto;
  height: auto;
  margin: 0 auto 0.6em auto; /* Less bottom margin */
  border-radius: 0.6em;
  box-shadow: 0 1px 8px rgba(0,0,0,0.10);
}
.nav-logo span {
  font-size: 1.7em;
  font-weight: 700;
  color: var(--color-primary, #11a8c3);
  display: block;
  margin-bottom: 0.6em; /* Less bottom margin */
  text-align: center;
}

.nav-close {
  position: absolute;
  top: 1.2em; right: 1.4em;
  background: none;
  border: none;
  font-size: 2.2em;
  color: var(--color-secondary, #e5911a);
  cursor: pointer;
  z-index: 10;
  padding: 0;
  transition: color .2s;
}
.nav-close:hover { color: var(--color-primary, #11a8c3); }

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--header-text, #fff);
  font-size: 1.6rem;
  line-height: 1;
  margin-left: 1em;
  z-index: 99999;
  position: relative;
}

.nav-menu {
  list-style: none;
  padding: 0; margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45em;     /* Much tighter spacing */
  align-items: stretch;
}
.nav-menu li { width: 100%; }
.nav-menu a {
  display: block;
  width: 100%;
  font-size: 1.13em;
  font-weight: 600;
  color: var(--color-primary, #11a8c3);
  background: none;
  border: none;
  text-align: left;
  padding: 0.48em 1em;
  border-radius: 0.6em;
  text-decoration: none;
  transition: background .17s, color .17s;
  letter-spacing: .02em;
}
.nav-menu a:hover, .nav-menu .active {
  background: var(--color-primary, #11a8c3);
  color: #fff;
}

.nav-auth { font-weight: 600; }
.nav-admin { color: var(--color-secondary, #e5911a); }

.nav-footer {
  margin-top: auto;
  width: 100%;
  text-align: center;
  font-size: 1.07em;
}
.nav-footer-social {
  margin: 0.7em 0 0 0;
  display: flex;
  justify-content: center;
  gap: 1.1em;
}
.nav-footer-social a {
  font-size: 1.3em;
  color: var(--color-primary, #11a8c3);
  transition: color .15s;
}
.nav-footer-social a:hover { color: var(--color-secondary, #e5911a); }

/* Hide scroll on body when nav open */
body.nav-open { overflow: hidden; }

/* Mobile Responsive */
@media (max-width: 480px) {
  .nav-card {
    min-width: 96vw;
    max-width: 100vw;
    width: 100vw;
    border-radius: 0;
    padding: 1.2em 0.6em 0.6em 0.6em;
  }
  .nav-logo img { max-width: 90px; max-height: 50px; }
}
