/* Dedicated Mobile Menu - Simple and Clean */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Menu Content */
.mobile-menu-content {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 10000;
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateY(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  background-color: rgba(26, 26, 26, 0.98);
  z-index: 10;
}

.mobile-menu-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.mobile-menu-close:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
  padding: 0.5rem 0;
}

/* Mobile Menu Items */
.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin: 0.5rem 1rem;
  color: #1a1a1a;
  background-color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 0.5rem;
  border-left: 3px solid transparent;
}

.mobile-menu-item:hover {
  background-color: #f8f9fa;
  color: #DAA520;
  border-left-color: #DAA520;
}

.mobile-menu-item.active {
  background-color: #DAA520;
  color: #ffffff;
  border-left-color: #DAA520;
}

.mobile-menu-item svg {
  flex-shrink: 0;
  opacity: 1;
  color: currentColor;
}

.mobile-menu-item:hover svg,
.mobile-menu-item.active svg {
  opacity: 1;
}

/* Primary Item (Register/Signup) */
.mobile-menu-item-primary {
  background-color: #DAA520;
  color: #ffffff;
  font-weight: 600;
  border-left-color: #DAA520;
}

.mobile-menu-item-primary:hover {
  background-color: #c89518;
  color: #ffffff;
}

/* Danger Item (Logout) */
.mobile-menu-item-danger {
  background-color: #ffffff;
  color: #dc3545;
}

.mobile-menu-item-danger:hover {
  background-color: #dc3545;
  color: #ffffff;
  border-left-color: #dc3545;
}

/* Divider */
.mobile-menu-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

/* User Navigation Icons - All Screen Sizes */
.user-nav-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

/* Hover effect removed per richiesta utente */
/* .user-nav-avatar:hover {
  border-color: #DAA520;
  transform: scale(1.05);
} */

.user-nav-settings-btn {
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-nav-settings-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.user-nav-settings-btn svg {
  width: 20px;
  height: 20px;
}

.user-nav-upload-btn {
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-nav-upload-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.user-nav-upload-btn svg {
  width: 20px;
  height: 20px;
}

.user-nav-logout-btn {
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-nav-logout-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.user-nav-logout-btn svg {
  width: 20px;
  height: 20px;
}

/* Legacy Mobile Navigation Icons (for backward compatibility) */
.mobile-nav-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.mobile-nav-avatar:hover {
  border-color: #DAA520;
  transform: scale(1.05);
}

.mobile-nav-settings-btn {
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-settings-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.mobile-nav-settings-btn svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-upload-btn {
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-upload-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.mobile-nav-upload-btn svg {
  width: 20px;
  height: 20px;
}

/* Ensure proper spacing on mobile */
@media (max-width: 991.98px) {
  .navbar-brand {
    flex: 1;
  }

  .mobile-nav-icons {
    margin-right: 0.5rem;
  }

  .navbar-toggler {
    margin-left: 0.5rem;
  }
}

/* Hide on desktop */
@media (min-width: 992px) {
  .mobile-menu-overlay {
    display: none;
  }

  .mobile-nav-icons {
    display: none;
  }
}

/* Bottom Navigation - Fixed Mobile Bar */
.bottom-nav-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 0 20px 0;
  /* Extra padding bottom for safe area on iOS */
  z-index: 1040;
  display: block;
}

@media (min-width: 992px) {
  .bottom-nav-mobile {
    display: none !important;
  }
}

.bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 10px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #a8a8a8;
  text-decoration: none;
  padding: 8px;
  transition: all 0.2s ease;
  position: relative;
  min-width: 48px;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: #ffffff;
}

.bottom-nav-item.active svg {
  stroke-width: 2.5px;
  /* Thicker stroke for active */
}

.bottom-nav-icon {
  width: 26px;
  /* Explicit size to fix "full screen" issue */
  height: 26px;
  margin-bottom: 2px;
  display: block;
}

.bottom-nav-label {
  font-size: 10px;
  margin-top: 2px;
  font-weight: 500;
}

.bottom-nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  object-fit: cover;
}

.bottom-nav-item.active .bottom-nav-avatar {
  border-color: #ffffff;
}

/* Icon unread state - red color for mobile bottom nav */
.bottom-nav-item.icon-unread {
  color: #dc3545 !important;
}

.bottom-nav-item.icon-unread:hover {
  color: #bb2d3b !important;
}

/* Primary/Upload button specific style */
.bottom-nav-item-primary {
  color: #ffffff;
}

.bottom-nav-item-primary .bottom-nav-icon {
  width: 28px;
  height: 28px;
}

/* Bottom Nav - Not Logged (Login/Iscriviti buttons) */
.bottom-nav-mobile-not-logged {
  background-color: #000000 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 16px;
  height: auto;
}

.bottom-nav-buttons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.bottom-nav-btn-login,
.bottom-nav-btn-register {
  flex: 1;
  max-width: 140px;
  padding: 10px 20px !important;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 6px;
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.bottom-nav-btn-login {
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

.bottom-nav-btn-login:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
}

.bottom-nav-btn-register {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

.bottom-nav-btn-register:hover {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  color: #000000 !important;
}