/* ==========================================================================
   Seedtag Common Navigation & Left Drawer Styles
   Used across all surfaces: Login Portal, Curation, and Publisher Panel
   ========================================================================== */

/* Top Navigation Bar */
.app-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 64px;
  background: rgba(11, 15, 25, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 1000;
  box-sizing: border-box;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

/* Hamburger Drawer Button */
.btn-drawer-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.btn-drawer-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.02);
}

.btn-drawer-toggle:active {
  transform: scale(0.96);
}

/* Horizontal Seedtag Logo */
.header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo {
  height: 28px;
  max-width: 170px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Service Badge Pill */
.header-service-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.header-service-pill.curation-pill {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.3);
}

.header-service-pill.publisher-pill {
  background: rgba(139, 92, 246, 0.14);
  color: #c084fc;
  border-color: rgba(139, 92, 246, 0.3);
}

.header-service-pill.login-pill {
  background: rgba(236, 72, 153, 0.12);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.3);
}

/* Header Right - User Email Display */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-user-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.75rem 0.35rem 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.header-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.header-user-email {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.01em;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Left Drawer Menu & Backdrop Overlay
   ========================================================================== */

/* Backdrop Overlay */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 12, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Left Slide-in Drawer */
.app-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #0d121f;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  visibility: hidden;
  box-sizing: border-box;
}

.app-drawer.open {
  transform: translateX(0);
  visibility: visible;
  box-shadow: 12px 0 35px rgba(0, 0, 0, 0.65);
}

/* Drawer Header */
.drawer-header {
  height: 64px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.drawer-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.btn-drawer-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.btn-drawer-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Drawer Nav & Section Title */
.drawer-section-title {
  padding: 1.25rem 1.25rem 0.6rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.drawer-nav {
  flex: 1;
  padding: 1.25rem 0.85rem 0.5rem;
  overflow-y: auto;
}

.drawer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: #cbd5e1;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.drawer-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
}

.drawer-item.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.12);
}

.drawer-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.drawer-item:hover .drawer-icon,
.drawer-item.active .drawer-icon {
  color: #818cf8;
}

.drawer-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.drawer-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: inherit;
}

.drawer-desc {
  font-size: 0.75rem;
  color: #94a3b8;
}

.drawer-item.active .drawer-desc {
  color: #a5b4fc;
}

/* Drawer Footer */
.drawer-footer {
  margin-top: auto;
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.drawer-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.drawer-user-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.drawer-user-label:not(:first-child) {
  margin-top: 0.65rem;
}

.drawer-user-email,
.drawer-user-agency {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-drawer-signout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-drawer-signout:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
  color: #ffffff;
}

@media (max-width: 640px) {
  .header-user-email {
    display: none;
  }
  .header-service-pill {
    display: none;
  }
}
