/* ==========================================================================
   IMAGICA STUDIO — UNIVERSAL BRAND NAVBAR (IDENTICAL TO HOMEPAGE)
   ========================================================================== */

@import url('./cookie-consent.css');

:root {
  --nav-bg: #211927;
  --accent-mint: #A3FFB0;
  --accent-mint-glow: rgba(163, 255, 176, 0.18);
  --border-color: #382C44;
  --bg-card: #2A2132;
  --bg-card-hover: #34283E;
  --text-primary: #F5F5F7;
  --text-secondary: #A8A0B0;
}

.nav-about {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg, #211927);
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  outline: none !important;
  transition: background 0.25s ease;
}

.nav-about.scrolled {
  background: var(--nav-bg, #211927);
  border: none !important;
  border-bottom: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.nav-about-container {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0 32px 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-brand:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nav-brand-logo {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mint Green Outline Button: DOWNLOAD DESKTOP */
.btn-nav-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 9999px;
  border: 1.5px solid var(--accent-mint, #A3FFB0);
  background: transparent;
  color: var(--accent-mint, #A3FFB0);
  font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-nav-outline:hover {
  background: var(--accent-mint, #A3FFB0);
  color: #0E0D14 !important;
  box-shadow: 0 0 20px var(--accent-mint-glow, rgba(163, 255, 176, 0.25));
  transform: translateY(-1px);
}

/* Sign In Text Link */
.nav-signin-link {
  color: #ABA6BA;
  font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 8px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-signin-link:hover {
  color: #FFFFFF;
}

/* User Profile Navbar Trigger & Dropdown */
.nav-user-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-user-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card, #2A2132);
  border: 1px solid var(--border-color, #382C44);
  border-radius: 9999px;
  padding: 4px 12px 4px 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary, #F5F5F7);
  outline: none;
}

.nav-user-pill-btn:hover {
  background: var(--bg-card-hover, #34283E);
  border-color: var(--accent-mint, #A3FFB0);
  box-shadow: 0 0 16px var(--accent-mint-glow, rgba(163, 255, 176, 0.25));
}

.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-mint, #A3FFB0);
  color: #16101B;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.nav-user-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary, #F5F5F7);
  letter-spacing: 0.02em;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-chevron {
  color: var(--text-secondary, #A8A0B0);
  transition: transform 0.2s ease;
}

.nav-user-container.open .nav-user-chevron {
  transform: rotate(180deg);
  color: var(--accent-mint, #A3FFB0);
}

/* Dropdown Card */
.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 290px;
  background: var(--nav-bg, #211927);
  border: 1.5px solid var(--border-color, #382C44);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  z-index: 1000;
  animation: userDropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-user-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: var(--nav-bg, #211927);
  border-left: 1.5px solid var(--border-color, #382C44);
  border-top: 1.5px solid var(--border-color, #382C44);
  transform: rotate(45deg);
}

.nav-user-container.open .nav-user-dropdown {
  display: flex;
}

@keyframes userDropdownIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nav-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
}

.nav-dropdown-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-mint, #A3FFB0);
  color: #16101B;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.dropdown-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.nav-dropdown-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.nav-dropdown-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #F5F5F7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.nav-dropdown-email {
  font-size: 0.76rem;
  color: var(--text-secondary, #A8A0B0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.nav-dropdown-divider {
  width: 100%;
  height: 1px;
  background: var(--border-color, #382C44);
  margin: 6px 0 10px 0;
}

.nav-dropdown-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #D5CFDE;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.nav-dropdown-item svg {
  color: var(--accent-mint, #A3FFB0);
  flex-shrink: 0;
}

.nav-dropdown-logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: #FF6B8B;
  font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.nav-dropdown-logout-btn:hover {
  background: rgba(255, 107, 139, 0.12);
}

.nav-dropdown-logout-btn svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .nav-about-container {
    padding: 0 16px;
    height: 62px;
  }
  .nav-brand-logo {
    height: 28px;
    max-width: 120px;
  }
  .btn-nav-outline {
    padding: 5px 12px;
    font-size: 0.68rem;
  }
  .nav-signin-link {
    font-size: 0.7rem;
    padding: 4px 6px;
  }
}

@media (max-width: 480px) {
  .nav-about-container {
    padding: 0 12px;
    height: 58px;
  }
  .nav-brand-logo {
    height: 25px;
    max-width: 105px;
  }
  .nav-actions {
    gap: 8px;
  }
  .btn-nav-outline {
    padding: 4px 9px;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
  }
  .nav-user-pill-btn {
    padding: 3px 8px 3px 4px;
    gap: 5px;
  }
  .nav-user-avatar {
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
  }
  .nav-user-name {
    max-width: 68px;
    font-size: 0.72rem;
  }
}
