/* ===================================
   MOBILE NAVIGATION - BOTTOM NAV BAR
   Wishlist.com.ua
   =================================== */

/* ===== Mobile Bottom Navigation ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--neutral-200);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 8px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-bottom-nav.active {
  display: flex;
}

.mobile-bottom-nav-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-bottom-nav-item {
  flex: 1;
  text-align: center;
}

.mobile-bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  color: var(--neutral-500);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-height: 56px;
  border-radius: 8px;
  margin: 0 4px;
}

.mobile-bottom-nav-link:hover {
  color: var(--primary-500);
  background-color: var(--primary-50);
  text-decoration: none;
}

.mobile-bottom-nav-link.active {
  color: var(--primary-500);
  background-color: var(--primary-50);
}

.mobile-bottom-nav-icon {
  font-size: 20px;
  margin-bottom: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-bottom-nav-text {
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

/* ===== Mobile Friendship Badge ===== */
.mobile-friendship-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger-500, #ef4444);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  min-width: 18px;
  padding: 0 2px;
}

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

/* ===== Mobile Add Button (Floating) ===== */
.mobile-add-button {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: var(--primary-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-add-button:hover {
  background: var(--primary-600);
  transform: scale(1.1);
  color: white;
  text-decoration: none;
}

.mobile-add-button:active {
  transform: scale(0.95);
}

.mobile-add-icon {
  font-size: 24px;
}

/* ===== Mobile Header Optimization ===== */
.mobile-header {
  padding-bottom: 60px; /* Space for bottom nav */
}

.mobile-header .navbar {
  padding: 8px 16px;
}

.mobile-header .navbar-brand {
  font-size: 18px;
}

.mobile-header .navbar-brand-emoji {
  font-size: 20px;
}

/* ===== Mobile Content Padding ===== */
.mobile-content {
  padding-bottom: 80px; /* Space for bottom nav */
}

/* ===== Mobile Touch Targets ===== */
.mobile-touch-target {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Mobile Search Bar ===== */
.mobile-search-container {
  padding: 16px;
  background: white;
  border-bottom: 1px solid var(--neutral-200);
}

.mobile-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mobile-search-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  font-size: 16px;
  background: var(--neutral-50);
}

.mobile-search-input:focus {
  outline: none;
  border-color: var(--primary-500);
  background: white;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.mobile-search-button {
  padding: 12px 16px;
  background: var(--primary-500);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-search-button:hover {
  background: var(--primary-600);
}

/* ===== Mobile Card Improvements ===== */
.mobile-wish-card {
  margin: 8px 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-wish-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.mobile-wish-content {
  padding: 16px;
}

.mobile-wish-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.mobile-wish-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-500);
  margin-bottom: 8px;
}

.mobile-wish-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.mobile-wish-btn {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-wish-btn-primary {
  background: var(--primary-500);
  color: white;
}

.mobile-wish-btn-outline {
  background: white;
  color: var(--primary-500);
  border: 1px solid var(--primary-500);
}

/* ===== Mobile Modal Improvements ===== */
.mobile-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
}

.mobile-modal-content {
  background: white;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.mobile-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-modal-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.mobile-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 20px;
  color: var(--neutral-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-modal-body {
  padding: 20px;
}

/* ===== Mobile Form Improvements ===== */
.mobile-form-group {
  margin-bottom: 20px;
}

.mobile-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--neutral-700);
}

.mobile-form-input {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  font-size: 16px;
  background: white;
}

.mobile-form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.mobile-form-textarea {
  min-height: 120px;
  resize: vertical;
}

.mobile-form-select {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  font-size: 16px;
  background: white;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

/* ===== Mobile Button Improvements ===== */
.mobile-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  transition: all 0.2s ease;
}

.mobile-btn-primary {
  background: var(--primary-500);
  color: white;
}

.mobile-btn-primary:hover {
  background: var(--primary-600);
  color: white;
}

.mobile-btn-secondary {
  background: var(--neutral-100);
  color: var(--neutral-700);
}

.mobile-btn-secondary:hover {
  background: var(--neutral-200);
  color: var(--neutral-800);
}

/* ===== Mobile Responsive Breakpoints ===== */
@media (max-width: 767px) {
  .mobile-bottom-nav {
    display: flex;
  }
  
  .mobile-add-button {
    display: flex;
  }
  
  .mobile-header {
    padding-bottom: 60px;
  }
  
  .mobile-content {
    padding-bottom: 80px;
  }
  
  /* Hide desktop navigation on mobile */
  .navbar-nav {
    display: none !important;
  }
  
  /* Optimize header for mobile */
  .navbar {
    padding: 8px 16px;
  }
  
  .navbar-brand {
    font-size: 18px;
  }
  
  .navbar-brand-emoji {
    font-size: 20px;
  }
}

/* ===== Mobile Landscape Optimization ===== */
@media (max-width: 767px) and (orientation: landscape) {
  .mobile-bottom-nav {
    padding: 4px 0;
  }
  
  .mobile-bottom-nav-link {
    min-height: 48px;
    padding: 4px 2px;
  }
  
  .mobile-bottom-nav-icon {
    font-size: 18px;
    margin-bottom: 2px;
  }
  
  .mobile-bottom-nav-text {
    font-size: 9px;
  }
  
  .mobile-add-button {
    bottom: 70px;
  }
}

/* ===== Mobile Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
  .mobile-bottom-nav {
    background: var(--neutral-800);
    border-top-color: var(--neutral-700);
  }
  
  .mobile-bottom-nav-link {
    color: var(--neutral-400);
  }
  
  .mobile-bottom-nav-link:hover,
  .mobile-bottom-nav-link.active {
    color: var(--primary-400);
    background-color: var(--primary-900);
  }
  
  .mobile-modal-content {
    background: var(--neutral-800);
  }
  
  .mobile-form-input,
  .mobile-form-select {
    background: var(--neutral-700);
    border-color: var(--neutral-600);
    color: var(--neutral-100);
  }
}

/* ===== Mobile Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  .mobile-bottom-nav-link,
  .mobile-add-button,
  .mobile-modal-content {
    transition: none;
  }
}

/* ===== Mobile High Contrast Mode ===== */
@media (prefers-contrast: high) {
  .mobile-bottom-nav {
    border-top-width: 2px;
  }
  
  .mobile-bottom-nav-link {
    border: 1px solid transparent;
  }
  
  .mobile-bottom-nav-link:hover,
  .mobile-bottom-nav-link.active {
    border-color: var(--primary-500);
  }
} 