/* ==================================
   Navbar Page — Scoped Styles
   Wrapper: navbar.css
   747civilbarb
================================== */

/* Active navigation link */
.nav-link.active {
  color: #dfa4eb;           /* stronger contrast #dfa4eb */
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 4px;
  background-color: currentColor;
}

.nav-link:hover {
  opacity: 0.8;          /* subtle hover effect on text */
}

.nav-link.active:hover {
  opacity: 1;            /* no hover effect on active link */
} 

.nav-link.active,
.nav-link[aria-current="page"] {
  border-bottom: 0.5px solid #1700ad; /* bright accent color */
  color: #f1f66a;                  /* Active page */
  transition: border-color 0.3s ease;
}


/* ===== Navbar Styles ===== */

#main-nav {
  background: linear-gradient(135deg, #3d0025 10%, #d30b83 85%);
  color: #fff;
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0, 3.6);

  /* NEW: make navbar fixed at top */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
}

#main-nav .logo {
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  padding: 4px 8px;
  border-radius: 2px;
  background-image: url(/pictures/logo/Civilisation_ou_Barbarie_T7.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 250px;
  height: 48px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links li a:hover {
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive (mobile) */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px; /* height of navbar */
    right: 0;
    background: linear-gradient(135deg, #d30b83 0%, #a00862 100%);
    flex-direction: column;
    width: 200px;
    padding: 12px;
    display: none;
  }

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

  .nav-toggle {
    display: block;
  }
}
/* End of Nav bar styles */

/* ===== Body adjustment for fixed navbar ===== */
body {
  padding-top:  60px; /* height of navbar */
}



