/* ==========================================================================
   KATKI YAP! - GENEL STANDART MOBİL HEADER & YANDAN ÇIKAN MENÜ (DRAWER) SİSTEMİ
   Tüm sayfalarda yeknesak üst header, off-canvas yan menü ve sıfırlanmış alt boşluk
   ========================================================================== */

/* 1. ÜST HEADER STANDARDI (TÜM SAYFALAR İÇİN) */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.2s ease !important;
}

.site-header .nav-shell {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 76px !important;
  height: 76px !important;
  box-sizing: border-box !important;
}

.site-header .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.site-header .brand-custom-logo {
  max-height: 52px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.site-header .brand-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 800 !important;
  font-size: 20px !important;
  color: #14315F !important;
  letter-spacing: -0.02em !important;
}

.site-header .desktop-nav {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
}

.site-header .desktop-nav a {
  color: #475569 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.site-header .desktop-nav a:hover {
  color: #1F5FA8 !important;
}

.site-header .nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.site-header .header-notif-btn {
  position: relative !important;
}

.site-header .header-notif-badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background: #dc2626 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 1px 5px !important;
  border-radius: 10px !important;
  line-height: 1.2 !important;
}

/* Hamburger Tetikleyici Buton (Masaüstünde Gizli) */
.mobile-drawer-btn {
  display: none !important;
  width: 42px !important;
  height: 42px !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 11px !important;
  color: #1e293b !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease !important;
}

.mobile-drawer-btn:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #1F5FA8 !important;
}

.mobile-drawer-btn:active {
  background: #e2e8f0 !important;
  transform: scale(0.95) !important;
}

.mobile-drawer-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ==========================================================================
   2. MOBİL EKRANLAR (<= 900px) - SIKI KURAL: ÜSTTE BAŞKA BUTON OLMAYACAK
   ========================================================================== */
@media (max-width: 900px) {
  .site-header {
    height: 68px !important;
    min-height: 68px !important;
  }

  .site-header .nav-shell {
    height: 68px !important;
    min-height: 68px !important;
    padding: 0 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .site-header .brand-custom-logo {
    max-height: 48px !important;
    height: 46px !important;
    width: auto !important;
  }

  .site-header .brand-mark {
    width: 38px !important;
    height: 38px !important;
  }

  .site-header .brand-text {
    font-size: 20px !important;
  }

  /* Masaüstü linklerini gizle */
  .site-header .desktop-nav {
    display: none !important;
  }

  /* KESİN KURAL: Üstte başka hiçbir buton olmayacak, sadece hamburger butonu görünecek */
  .site-header .nav-actions {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header .nav-actions > *:not(#menuButton) {
    display: none !important;
  }

  .site-header .nav-actions .button,
  .site-header .nav-actions .button-primary,
  .site-header .nav-actions .button-ghost,
  .site-header .nav-actions .hide-mobile,
  .site-header .nav-actions .header-cta-btn {
    display: none !important;
  }

  /* Mobilde hamburger butonunu göster */
  .mobile-drawer-btn {
    display: inline-flex !important;
  }
}

/* ==========================================================================
   3. TÜM ALT MENÜLERİ KALDIR & ALT BOŞLUKLARI SIFIRLA
   ========================================================================== */
.mobile-app-bar,
.event-mobile-app-bar,
.app-nav-item,
.event-app-nav-item {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  opacity: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

body {
  padding-bottom: 0 !important;
}

.site-footer {
  padding-bottom: 0 !important;
}

.event-experience {
  padding-bottom: 0 !important;
}

/* ==========================================================================
   4. YANDAN ÇIKAN MENÜ (OFF-CANVAS DRAWER) VE KARARTMA (BACKDROP)
   ========================================================================== */
body.drawer-open {
  overflow: hidden !important;
  touch-action: none !important;
}

/* Karartma Örtüsü (Backdrop) */
.drawer-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.48) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 100040 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s !important;
}

.drawer-backdrop.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Yandan Çıkan Panel (Side Drawer) */
.mobile-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: min(340px, 86vw) !important;
  height: 100% !important;
  height: 100dvh !important;
  background: #ffffff !important;
  z-index: 100050 !important;
  box-shadow: -8px 0 36px rgba(15, 23, 42, 0.16) !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(100%) !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.mobile-drawer.open {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.drawer-inner {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
}

/* Drawer Başlığı */
.drawer-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 20px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
  flex-shrink: 0 !important;
  height: 68px !important;
  box-sizing: border-box !important;
}

.drawer-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  min-width: 0 !important;
}

.drawer-logo {
  max-height: 46px !important;
  height: 44px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.drawer-brand-mark {
  width: 32px !important;
  height: 32px !important;
  border-radius: 9px !important;
  background: #1F5FA8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
}

.drawer-brand-mark svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
}

.drawer-brand-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 800 !important;
  font-size: 17px !important;
  color: #14315F !important;
  letter-spacing: -0.02em !important;
  white-space: nowrap !important;
}

.btn-drawer-close {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  cursor: pointer !important;
  padding: 0 !important;
  outline: none !important;
  transition: all 0.15s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

.btn-drawer-close:hover,
.btn-drawer-close:active {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

/* Drawer Gövdesi */
.drawer-body {
  flex: 1 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 16px 18px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

/* Kullanıcı Kartı (Giriş Yapılmış) */
.drawer-user-card {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.drawer-user-avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #1F5FA8, #2563eb) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 17px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 10px rgba(31, 95, 168, 0.25) !important;
}

.drawer-user-info {
  min-width: 0 !important;
  flex: 1 !important;
}

.drawer-user-name {
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.drawer-user-email {
  font-size: 11.5px !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-top: 1px !important;
}

.drawer-user-role-badge {
  display: inline-block !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  background: #e0f2fe !important;
  color: #0369a1 !important;
  padding: 1px 7px !important;
  border-radius: 6px !important;
  margin-top: 3px !important;
}

/* Ziyaretçi Kartı (Giriş Yapılmamış) */
.drawer-guest-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 14px !important;
}

.drawer-guest-title {
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #0f172a !important;
  margin: 0 0 3px 0 !important;
}

.drawer-guest-desc {
  font-size: 12px !important;
  color: #64748b !important;
  margin: 0 0 12px 0 !important;
  line-height: 1.4 !important;
}

.drawer-guest-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

.btn-drawer-auth {
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

.btn-drawer-login {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
}

.btn-drawer-login:active {
  background: #f1f5f9 !important;
}

.btn-drawer-register {
  background: #1F5FA8 !important;
  border: 1px solid #1F5FA8 !important;
  color: #ffffff !important;
}

.btn-drawer-register:active {
  background: #14315F !important;
}

/* Öne Çıkan Aksiyon: Etkinlik Oluştur Butonu */
.btn-drawer-create-event {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 44px !important;
  background: linear-gradient(135deg, #1F5FA8, #2563eb) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(31, 95, 168, 0.28) !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

.btn-drawer-create-event:active {
  transform: scale(0.98) !important;
  box-shadow: 0 2px 6px rgba(31, 95, 168, 0.2) !important;
}

.btn-create-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Davet Kodu Gir Butonu */
.drawer-code-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 10px 14px !important;
  background: #eff6ff !important;
  border: 1px dashed #93c5fd !important;
  border-radius: 11px !important;
  color: #1e40af !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  font-family: inherit !important;
  outline: none !important;
  transition: all 0.15s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

.drawer-code-btn:hover,
.drawer-code-btn:active {
  background: #dbeafe !important;
  border-color: #60a5fa !important;
}

.drawer-code-left {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Menü Grupları ve Bağlantıları */
.drawer-section-heading {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
  padding: 2px 4px 0 !important;
}

.drawer-nav-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.drawer-nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 9px 12px !important;
  border-radius: 10px !important;
  color: #334155 !important;
  text-decoration: none !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

.drawer-nav-link:hover,
.drawer-nav-link:active {
  background: #f1f5f9 !important;
  color: #1F5FA8 !important;
}

.drawer-nav-icon {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2px !important;
  color: #64748b !important;
  flex-shrink: 0 !important;
  transition: color 0.15s ease !important;
}

.drawer-nav-link:hover .drawer-nav-icon,
.drawer-nav-link:active .drawer-nav-icon {
  color: #1F5FA8 !important;
}

.drawer-badge {
  margin-left: auto !important;
  background: #dc2626 !important;
  color: #ffffff !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  padding: 1px 6px !important;
  border-radius: 10px !important;
  line-height: 1.3 !important;
}

/* Drawer Alt Bilgi & Çıkış */
.drawer-footer {
  padding: 14px 18px !important;
  border-top: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
  flex-shrink: 0 !important;
}

.drawer-logout-form {
  margin: 0 !important;
}

.btn-drawer-logout {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 40px !important;
  background: #fef2f2 !important;
  border: 1px solid #fee2e2 !important;
  color: #dc2626 !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition: all 0.15s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

.btn-drawer-logout:active {
  background: #fee2e2 !important;
  transform: scale(0.98) !important;
}

.drawer-footer-text {
  text-align: center !important;
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}
