/* Google Font import is in HTML already (Unbounded) */

/* Keyframes for Slide Down Entrance (Desktop Only) */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* =========================================
   DEFAULT / DESKTOP STYLES (Solid Fixed Bar)
   ========================================= */
.custom-navbar {
  background: #080808;
  /* Solid Black/Dark Background */
  border-bottom: 2px solid #007bff;
  /* Solid Blue Border Line */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  /* Standard shadow, no glow */

  /* Full Width & Scroll Away (Static) */
  width: 100%;
  margin: 0;
  position: relative;
  /* Scrolls with page */
  top: auto;
  left: auto;

  padding: 0.8rem 2rem;
  border-radius: 0;

  /* No Glass Effects */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  /* Animation */
  animation: slideDown 0.5s ease-out;
}

/* [REMOVED .custom-navbar:hover to prevent border flash] */

/* BRAND LOGO */
.custom-navbar .navbar-brand {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #ffffff 0%, #a2d9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
  letter-spacing: 1.5px;
}

/* NAV LINKS */
.custom-navbar .nav-link {
  font-family: 'Unbounded', sans-serif;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  /* Keep text above background */
}

/* Hover Effect - Sliding Gradient */
.custom-navbar .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
  z-index: -1;
  /* Behind text */
}

.custom-navbar .nav-link:hover {
  color: #ffffff;
  background: rgba(0, 123, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

.custom-navbar .nav-link:hover::before {
  transform: translateX(100%);
}

/* Icon Animation */
.custom-navbar .nav-link i {
  transition: transform 0.3s ease;
}

.custom-navbar .nav-link:hover i {
  transform: rotate(-10deg) scale(1.2);
}

/* BUTTONS & PROFILE */
.btn-login {
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: white !important;
  border: none;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
  height: 42px;
  display: flex;
  align-items: center;
}

.btn-login:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6);
}

.user-profile-link {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 123, 255, 0.3);
  padding: 2px 15px 2px 2px !important;
  border-radius: 50px !important;
  height: 42px;
}

.user-profile-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 123, 255, 0.8);
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #007bff;
}

/* DROPDOWN MENU */
.dropdown-menu {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 123, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  margin-top: 15px;
  padding: 0;
  overflow: hidden;
  animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  padding: 12px 20px;
  color: #ccc;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: linear-gradient(90deg, rgba(0, 123, 255, 0.2), transparent);
  color: #ffffff;
  padding-left: 25px;
}

/* BODY PADDING - REMOVED since navbar is now relative */
body {
  padding-top: 0;
}

/* CART TOGGLE */
#cart-toggle {
  color: #ffffff !important;
  text-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  display: flex;
  align-items: center;
}

/* TOGGLER ICON */
.navbar-toggler {
  border: none;
  color: #ffffff;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


/* =========================================
   MOBILE LAYOUT (Max Width 991px)
   ========================================= */
@media (max-width: 991px) {
  /*
     With the new Solid/Fixed Desktop design, 
     we don't need heavy overrides here anymore.
     The global .custom-navbar styles will handle width/color.
  */

  /* Adjust body padding slightly if needed, but 100px is generally safe */
  body {
    padding-top: 0;
  }

  /* Center content on very small screens (e.g. narrow phones) */
  @media (max-width: 500px) {
    .container-fluid.d-flex {
      flex-direction: column;
      justify-content: center !important;
      padding-bottom: 0.5rem;
    }

    .navbar-brand {
      margin-right: 0 !important;
      margin-bottom: 0.5rem;
    }

    /* Icon Container */
    .d-flex.gap-2.gap-md-3 {
      justify-content: center;
      width: 100%;
    }
  }

  /* Adjust Toggler position */
  .navbar-toggler {
    border: none;
    color: #ffffff;
    outline: none;
    display: none;
    /* Ensure toggler hidden as we switch to Inline */
  }
}