/* Navbar Styles for The Brand Weave */

.tbw-navbar {
  background: #622b7c;
  box-shadow: 0 4px 24px rgba(98, 54, 255, 0.1);
  transition: background 0.3s, box-shadow 0.3s, border-radius 0.3s;
  font-family: "Outfit", sans-serif;
}

.tbw-navbar .nav-link {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #fff !important;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.tbw-navbar .nav-link:hover::after,
.tbw-navbar .nav-link:focus::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.tbw-navbar .dropdown-menu {
  min-width: 180px;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(98, 54, 255, 0.1), 0 1.5px 8px rgba(0, 0, 0, 0.04);
  background: #23272f;
  padding: 0.5rem 0;
  border: none;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  pointer-events: none;
  visibility: hidden;
}
.tbw-navbar .dropdown-menu.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}
.tbw-navbar .dropdown-item {
  color: #fff;
  font-family: "Outfit", sans-serif;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  margin: 0.15rem 0.5rem;
  transition: color 0.25s ease-out;
  position: relative;
  background-color: transparent !important;
}

.tbw-navbar .dropdown-item::after {
  content: "";
  position: absolute;
  width: calc(100% - 3rem);
  transform: scaleX(0);
  height: 2px;
  bottom: 0.5rem;
  left: 1.5rem;
  background-color: #ecba99;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.tbw-navbar .dropdown-item:hover,
.tbw-navbar .dropdown-item:focus {
  color: #ecba99;
  background: transparent;
}

.tbw-navbar .dropdown-item:hover::after,
.tbw-navbar .dropdown-item:focus::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.tbw-navbar .dropdown-toggle::after {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0.5em;
  vertical-align: middle;
}
.tbw-navbar .show > .dropdown-toggle::after {
  transform: rotate(180deg);
}

.tbw-navbar.scrolled {
  background: rgba(98, 43, 124, 0.65); /* semi-transparent for glass effect */
  box-shadow: 0 8px 32px rgba(98, 54, 255, 0.18);
  border-radius: 2em;
  width: 80%;
  margin: 1.5em auto 0 auto;
  padding: 0.5em 1em;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
}
.tbw-navbar.scrolled .nav-link,
.tbw-navbar.scrolled .navbar-brand,
.tbw-navbar.scrolled .tbw-search-icon {
  color: #fff !important;
}

/* Overlay for mobile menu */
.tbw-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 9999;
  display: none;
  flex-direction: column;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  animation: fadeInMenu 0.25s;
}
.tbw-mobile-menu.active {
  display: flex;
}
@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tbw-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.tbw-mobile-logo {
  height: 32px;
}
.tbw-mobile-close {
  font-size: 2rem;
  color: #222;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
.tbw-mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.tbw-mobile-nav li {
  font-size: 1.25rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: color 0.2s;
}
.tbw-mobile-nav li:last-child {
  margin-bottom: 0;
}
.tbw-mobile-nav li .arrow {
  font-size: 1.2em;
  color: #888;
  margin-left: 0.5em;
}
.tbw-mobile-nav li:hover {
  color: #D4214C;
}

@media (max-width: 767.98px) {
  .container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
