/* ══ Urbanova Enhanced UI — Dropdowns, Mobile Nav, Components ══ */

/* ── Enhanced Dropdown with Sections ── */

.nav-dropdown-menu-sections {
  min-width: 280px;
  padding: 8px 0;
}

.nav-dropdown-menu-sections .dropdown-section {
  padding: 4px 0;
}

.nav-dropdown-menu-sections .dropdown-section:not(:last-child)::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--border);
  margin: 4px 12px;
}

.nav-dropdown-menu-sections .dropdown-label {
  display: block;
  padding: 6px 16px 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  pointer-events: none;
}

.nav-dropdown-menu-sections a {
  padding: 8px 16px;
  font-size: 0.78rem;
}

.nav-dropdown-menu-sections a svg {
  width: 16px;
  height: 16px;
}

/* ── User Section Dropdown (from Action-dropdown-menu-examples) ── */

.nav-dropdown-user {
  min-width: 300px;
  padding: 0;
}

.nav-dropdown-user .dropdown-user-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.nav-dropdown-user .dropdown-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
  overflow: hidden;
}

.nav-dropdown-user .dropdown-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-dropdown-user .dropdown-user-info {
  flex: 1;
  min-width: 0;
}

.nav-dropdown-user .dropdown-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  display: block;
}

.nav-dropdown-user .dropdown-user-email {
  font-size: 0.72rem;
  color: var(--muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-dropdown-user .dropdown-user-body {
  padding: 8px 0;
}

.nav-dropdown-user .dropdown-user-body .dropdown-section:not(:last-child)::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--border);
  margin: 4px 12px;
}

.nav-dropdown-user .dropdown-user-body a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  font-size: 0.78rem;
  color: var(--color-text);
  transition: all .2s var(--ease);
  border-radius: 0;
}

.nav-dropdown-user .dropdown-user-body a:hover {
  background: var(--gold-light);
  color: var(--navy);
  padding-left: 24px;
}

.nav-dropdown-user .dropdown-user-body a svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-dropdown-user .dropdown-user-body a:hover svg {
  opacity: 1;
}

.nav-dropdown-user .dropdown-user-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--border);
}

.nav-dropdown-user .dropdown-user-footer a {
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  background: var(--gold);
  transition: all .25s var(--ease);
  display: flex;
  align-items: center;
}

.nav-dropdown-user .dropdown-user-footer a:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 155, 60, 0.3);
}

/* ── Enhanced Dropdown Trigger Animation ── */

.nav-dropdown .nav-dropdown-arrow {
  transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: all .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Dropdown Icon Badge Style (from Dropdown-menus-light) ── */

.nav-dropdown-menu a .icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--gold-light);
  flex-shrink: 0;
}

.nav-dropdown-menu a .icon-badge svg {
  width: 14px;
  height: 14px;
}

/* ── Dropdown Menu Search (from Action-dropdown-menu-examples) ── */

.dropdown-search {
  padding: 8px 12px;
  position: relative;
}

.dropdown-search input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  background: var(--cream);
  color: var(--color-text);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  box-sizing: border-box;
}

.dropdown-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.dropdown-search svg {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--muted);
  pointer-events: none;
}

/* ── Mobile Bottom Nav Enhanced ── */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(2, 12, 20, 0.06);
  padding: 4px 0 env(safe-area-inset-bottom, 4px);
  animation: bottomNavUp .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bottomNavUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.mobile-bottom-nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .25s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  position: relative;
  min-height: 44px;
  justify-content: center;
}

.mobile-bottom-nav a .nav-icon {
  font-size: 1.4rem;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
  color: var(--gold);
}

.mobile-bottom-nav a.active::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

/* ── Floating WhatsApp Button Adjustment ── */
#waFloat { right: 20px; bottom: 80px; }
#backToTop { right: 20px; bottom: 136px; }

/* ── Responsive Adjustments ── */

@media (max-width: 768px) {
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 68px; }
  #waFloat { right: 16px; bottom: 80px; }
  #backToTop { right: 16px; bottom: 138px; }
}

@media (max-width: 480px) {
  .mobile-bottom-nav a { font-size: 0.55rem; padding: 6px 6px; }
  .mobile-bottom-nav a .nav-icon { font-size: 1.25rem; width: 24px; height: 24px; }
}
