
/* ────────────────────────────────
   PatriotChat Final Navbar CSS
   Fully Responsive: Mobile & Desktop
──────────────────────────────── */

/* Reset and Base */
html, body {
  margin: 0;
  padding: 0;
}
body {
  padding-top: 55px;
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 0, 0, 0.08);
}

/* Nav Container */
.main-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  background-color: #111;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Nav Inner Wrapper for Logo + Toggle */
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  width: 100%;
}

/* Brand Logo */
.nav-wrapper .brand {
  display: flex;
  align-items: center;
}
.nav-wrapper .brand img {
  height: 36px;
  transition: transform 0.2s ease;
}
.nav-wrapper .brand:hover img {
  transform: scale(1.05);
}

/* Hamburger Toggle */
.nav-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
  display: block;
  margin-left: auto;
}

/* Menu Links (mobile hidden) */
.nav-links {
  list-style: none;
  position: absolute;
  top: 60px;
  right: 10px;
  background-color: #111;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  min-width: 180px;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1001;
  gap: 0.5rem;
}
.nav-links.show {
  display: flex;
}
.nav-links li {
  margin: 0.5rem 0;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.4rem;
  border-radius: 6px;
  width: 100%;
}
.nav-links a:hover {
  background-color: #333;
}
.nav-links a.active {
  background-color: #222;
  font-weight: bold;
}
.nav-links .nav-icon {
  width: 18px;
  height: 18px;
}

/* Desktop View */
/* ─── Desktop Navigation (≥768px) ─── */
@media (min-width: 768px) {
  .main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.5rem 1rem;
    justify-content: space-between;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
    gap: 1.5rem;
    margin-left: auto;
  }

  .nav-links li {
    display: flex;
    align-items: center;
    margin: 0;
  }

  .nav-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    width: auto;
    height: auto;
    text-decoration: none;
    color: white;
  }

  .nav-links li a span {
    display: none; /* Hide text labels on desktop */
  }

  .nav-links .nav-icon {
    width: 22px;
    height: 22px;
  }
}


/* Mobile View */
@media (max-width: 767px) {
  .nav-links span {
    display: inline;
  }
}


@media (min-width: 768px) {
  /* Enforce fixed icon sizing and spacing */
  .nav-links .nav-icon {
    width: 32px !important;
    height: 32px !important;
  }

  /* Ensure the anchor wraps tightly around the icon */
  .nav-links li a {
    padding: 0.25rem;       /* Breathing room */
    min-width: 40px;        /* Prevent squishing */
    justify-content: center;
  }

  /* Avoid icon container stretching */
  .nav-links {
    justify-content: flex-end;
    width: auto !important;
  }
}

/* ========== NAVBAR ========== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}

.main-nav .brand {
  display: flex;
  align-items: center;
}

.main-nav .brand img {
  height: 36px;
}

.nav-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  display: none;
}

/* Nav Links */
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 10px;
  background: #111;
  border-radius: 10px;
  padding: 1rem;
  gap: 0.5rem;
  z-index: 999;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 6px;
}

.nav-links a:hover {
  background-color: #333;
}

.nav-links a.active {
  background-color: #222;
  font-weight: bold;
}

.nav-links .nav-icon {
  width: 20px;
  height: 20px;
}

.nav-links.show {
  display: flex;
}

/* Desktop */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    position: static;
    background: none;
    padding: 0;
    gap: 1.5rem;
    box-shadow: none;
  }

  .nav-links span {
    display: none;
  }

  .nav-links .nav-icon {
    width: 24px;
    height: 24px;
  }
}

/* ===============================
   PatriotChat - navbar.css
   Navigation styles (mobile + desktop)
================================= */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}

.main-nav .brand {
  display: flex;
  align-items: center;
}

.main-nav .brand img {
  height: 36px;
}

.nav-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  display: block;
}

/* Nav Links */
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 10px;
  background: #111;
  border-radius: 10px;
  padding: 1rem;
  gap: 0.5rem;
  z-index: 999;
}

.nav-links.show {
  display: flex;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 6px;
}

.nav-links a:hover {
  background-color: #333;
}

.nav-links a.active {
  background-color: #222;
  font-weight: bold;
}

.nav-links .nav-icon {
  width: 22px;
  height: 22px;
}

/* Desktop overrides */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
    gap: 1.5rem;
    align-items: center;
    margin-left: auto;
  }

  .nav-links span {
    display: none;
  }
}