/**
 * Mobile Navigation Component Styles
 * Glass effect bar with 3D colored icons
 */

/* ═══════════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV - GLASS BAR
   ═══════════════════════════════════════════════════════════════════ */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: 8px 12px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
}

/* Glass effect bar */
.mobile-nav.glass-bar {
  background: rgba(var(--color-surface-rgb, 15, 23, 42), 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  box-shadow:
    0 -4px 30px rgba(var(--shadow-color, 0, 0, 0), 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  /* Centered with equal margins */
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: calc(100% - 16px);
  max-width: 480px;
  margin: 0;
}

@media (max-width: 1024px) {
  .mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 4px;
  }
}

/* Tablet - wider bottom nav */
@media (min-width: 769px) and (max-width: 1024px) {
  .mobile-nav.glass-bar {
    max-width: 700px;
    padding: 10px 20px;
  }

  .mobile-nav-item {
    min-width: 80px;
    padding: 8px 12px;
  }

  .nav-icon-3d {
    width: 36px;
    height: 36px;
  }

  .mobile-nav-item span:not(.badge) {
    font-size: 11px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   NAV ITEMS - GLASS BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  min-width: 64px;
  flex: 1;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-weight: var(--font-medium);
  border: none;
  background: transparent;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* Glass button hover/active */
.mobile-nav-item:hover,
.mobile-nav-item:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mobile-nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════
   3D COLORED ICONS - RELIEF EFFECT
   ═══════════════════════════════════════════════════════════════════ */
.nav-icon-3d {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;

  /* 3D relief effect base */
  background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(0,0,0,0.1));
  box-shadow:
    2px 2px 6px rgba(0, 0, 0, 0.4),
    -1px -1px 4px rgba(255, 255, 255, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.1);
}

.nav-icon-3d svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

/* Active state - pressed effect */
.mobile-nav-item.active .nav-icon-3d {
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, 0.3),
    inset -1px -1px 3px rgba(255, 255, 255, 0.05);
  transform: scale(0.95);
}

.mobile-nav-item.active .nav-icon-3d svg {
  transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════════════
   ICON COLOR THEMES
   ═══════════════════════════════════════════════════════════════════ */

/* Home - Blue */
.icon-home {
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  box-shadow:
    3px 3px 10px rgba(59, 130, 246, 0.4),
    -2px -2px 6px rgba(255, 255, 255, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.2);
}

.icon-home svg {
  stroke: #fff;
}

/* Calendar/Rezervări - Green */
.icon-calendar {
  background: linear-gradient(145deg, #22c55e, #16a34a);
  box-shadow:
    3px 3px 10px rgba(34, 197, 94, 0.4),
    -2px -2px 6px rgba(255, 255, 255, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.2);
}

.icon-calendar svg {
  stroke: #fff;
}

/* More - Purple */
.icon-more {
  background: linear-gradient(145deg, #a855f7, #7c3aed);
  box-shadow:
    3px 3px 10px rgba(168, 85, 247, 0.4),
    -2px -2px 6px rgba(255, 255, 255, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.2);
}

.icon-more svg {
  stroke: #fff;
}

/* Messages - Cyan */
.icon-messages {
  background: linear-gradient(145deg, #06b6d4, #0891b2);
  box-shadow:
    3px 3px 10px rgba(6, 182, 212, 0.4),
    -2px -2px 6px rgba(255, 255, 255, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.2);
}

.icon-messages svg {
  stroke: #fff;
}

/* Notifications - Orange */
.icon-notifications {
  background: linear-gradient(145deg, #f97316, #ea580c);
  box-shadow:
    3px 3px 10px rgba(249, 115, 22, 0.4),
    -2px -2px 6px rgba(255, 255, 255, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.2);
}

.icon-notifications svg {
  stroke: #fff;
}

/* Favorite - Pink */
.icon-favorite {
  background: linear-gradient(145deg, #ec4899, #db2777);
  box-shadow:
    3px 3px 10px rgba(236, 72, 153, 0.4),
    -2px -2px 6px rgba(255, 255, 255, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.2);
}

.icon-favorite svg {
  stroke: #fff;
}

/* Profile - Indigo */
.icon-profile {
  background: linear-gradient(145deg, #6366f1, #4f46e5);
  box-shadow:
    3px 3px 10px rgba(99, 102, 241, 0.4),
    -2px -2px 6px rgba(255, 255, 255, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.2);
}

.icon-profile svg {
  stroke: #fff;
}

/* Settings - Gray/Slate */
.icon-settings {
  background: linear-gradient(145deg, #64748b, #475569);
  box-shadow:
    3px 3px 10px rgba(100, 116, 139, 0.4),
    -2px -2px 6px rgba(255, 255, 255, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.2);
}

.icon-settings svg {
  stroke: #fff;
}

/* Support - Teal */
.icon-support {
  background: linear-gradient(145deg, #14b8a6, #0d9488);
  box-shadow:
    3px 3px 10px rgba(20, 184, 166, 0.4),
    -2px -2px 6px rgba(255, 255, 255, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.2);
}

.icon-support svg {
  stroke: #fff;
}

/* Logout - Red */
.icon-logout {
  background: linear-gradient(145deg, #ef4444, #dc2626);
  box-shadow:
    3px 3px 10px rgba(239, 68, 68, 0.4),
    -2px -2px 6px rgba(255, 255, 255, 0.05),
    inset 1px 1px 2px rgba(255, 255, 255, 0.2);
}

.icon-logout svg {
  stroke: #fff;
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE BADGE
   ═══════════════════════════════════════════════════════════════════ */
.mobile-badge {
  position: absolute;
  top: 2px;
  right: 50%;
  transform: translateX(18px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: var(--font-bold);
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}

.mobile-badge:empty {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   DRAWER - GLASS PANEL
   ═══════════════════════════════════════════════════════════════════ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.drawer-overlay[hidden] {
  display: none;
}

.drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-modal);
  max-height: 85vh;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Glass drawer effect */
.drawer.glass-drawer {
  background: rgba(var(--color-surface-rgb, 15, 23, 42), 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  box-shadow:
    0 -10px 40px rgba(var(--shadow-color, 0, 0, 0), 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.drawer.open {
  transform: translateY(0);
}

.drawer[hidden] {
  display: none;
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  position: relative;
}

.drawer-header::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
}

.drawer-header h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  margin: 0;
}

.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text);
}

.drawer-close svg {
  width: 18px;
  height: 18px;
}

/* Drawer Body */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0));
}

/* ═══════════════════════════════════════════════════════════════════
   DRAWER ITEMS
   ═══════════════════════════════════════════════════════════════════ */
.drawer-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: var(--space-2);
}

.drawer-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

/* Drawer item with badge highlight */
.drawer-item-highlight {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Drawer Icon - 3D style */
.drawer-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.drawer-icon svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

/* Drawer Badge */
.drawer-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: var(--font-bold);
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.drawer-badge:empty {
  display: none;
}

/* Drawer Divider */
.drawer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: var(--space-3) 0;
}

/* Logout item */
.drawer-logout {
  color: var(--color-danger);
}

.drawer-logout:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════
   HIDE ON DESKTOP
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 1025px) {
  .mobile-nav,
  .drawer,
  .drawer-overlay {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   BODY PADDING WHEN MOBILE NAV VISIBLE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  body.user-dashboard {
    padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0) + var(--space-2));
  }

  /* Prevent scroll when drawer open */
  body.drawer-open {
    overflow: hidden;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   LANDSCAPE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
  .mobile-nav {
    padding: 6px 10px;
  }

  .nav-icon-3d {
    width: 28px;
    height: 28px;
  }

  .nav-icon-3d svg {
    width: 16px;
    height: 16px;
  }

  .mobile-nav-item {
    padding: 4px 6px;
    min-width: 56px;
  }

  .mobile-nav-item span:not(.mobile-badge) {
    font-size: 9px;
  }
}

