/* ==========================================================================
   Weticket — Mobile Navigation & Drawer Component
   Universal responsive header & drawer navigation across all pages
   ========================================================================== */

/* Header Mobile Adjustments */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none !important;
  }

  .navbar .nav-actions .nav-signin-link,
  .navbar .nav-actions .btn-signup {
    display: none !important;
  }

  .navbar .hamburger-btn,
  .header .mobile {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    color: #18181b;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .navbar .hamburger-btn:hover,
  .header .mobile:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
  }

  .navbar .nav-container {
    padding: 0 16px;
    height: 64px;
  }
}

/* Also for promotores header with .actions */
@media (max-width: 900px) {
  .header .nav nav {
    display: none !important;
  }
  .header .actions a {
    display: none !important;
  }
  .header .actions .search {
    display: inline-flex !important;
  }
}

/* Mobile Drawer Overlay / Backdrop */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

/* Mobile Drawer Container */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  height: 100vh;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.active {
  transform: translateX(0);
}

/* Lock body scroll when drawer open */
body.mobile-drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Drawer Header */
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #f4f4f5;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #09090b;
}

.mobile-drawer-brand .brand-icon,
.mobile-drawer-brand .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #000000;
  color: #ffffff;
  border-radius: 8px;
}

.mobile-drawer-brand .brand-icon svg,
.mobile-drawer-brand .logo svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f4f4f5;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71717a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
  background: #000000;
  color: #ffffff;
}

/* Drawer Body */
.mobile-drawer-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Quick Search inside Drawer */
.mobile-drawer-search {
  width: 100%;
}

.mobile-drawer-search-form {
  display: flex;
  align-items: center;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 6px 10px 6px 14px;
  gap: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mobile-drawer-search-form:focus-within {
  background: #ffffff;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.mobile-drawer-search-form svg {
  color: #71717a;
  flex-shrink: 0;
}

.mobile-drawer-search-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #09090b;
  outline: none;
}

.mobile-drawer-search-form button {
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease;
}

.mobile-drawer-search-form button:hover {
  transform: scale(1.05);
}

/* Navigation Links List */
.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #27272a;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.18s ease;
}

.mobile-drawer-link .link-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #18181b;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.mobile-drawer-link:hover {
  background: #f4f4f5;
  color: #000000;
  padding-left: 18px;
}

.mobile-drawer-link.active {
  background: #000000;
  color: #ffffff;
}

.mobile-drawer-link.active .link-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.mobile-drawer-badge {
  margin-left: auto;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #52525b;
}

.mobile-drawer-link.active .mobile-drawer-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Section divider inside drawer */
.mobile-drawer-divider {
  height: 1px;
  background: #f4f4f5;
  margin: 4px 0;
}

/* User & Promoter Action Buttons */
.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.btn-drawer-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1.5px solid #000000;
  background: transparent;
  color: #000000;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-drawer-outline:hover {
  background: #f4f4f5;
}

.btn-drawer-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1.5px solid #000000;
  background: #000000;
  color: #ffffff;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-drawer-primary:hover {
  background: #27272a;
  border-color: #27272a;
}

.btn-drawer-create {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px;
  background: #22c55e;
  color: #ffffff;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.btn-drawer-create:hover {
  background: #16a34a;
}

/* Drawer Footer */
.mobile-drawer-footer {
  padding: 16px 20px;
  background: #fafafa;
  border-top: 1px solid #f4f4f5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-footer-moz {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #71717a;
  font-weight: 500;
}

.drawer-footer-payments {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #a1a1aa;
}

.drawer-footer-payments span {
  display: inline-block;
  padding: 2px 6px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 4px;
  color: #52525b;
  font-weight: 600;
}
