/* Mobile Menu Styles - COMPLETE FIXED VERSION */
/* =================================================== */

/* Mobile Menu Container */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 320px;
  max-width: 85%;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  z-index: 10001;
  transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-menu.active {
  left: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
  padding: 25px 20px;
  background: linear-gradient(135deg, #BA0909 0%, #8B0000 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
  font-size: 18px;
  font-weight: 900;
  color: white;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.mobile-close:hover {
  background: white;
  color: #BA0909;
  transform: rotate(90deg);
}

/* Mobile Navigation */
.mobile-nav {
  flex: 1;
  overflow-y: auto;
  padding: 25px 20px;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav li {
  margin-bottom: 8px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  color: #333;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 16px;
  gap: 15px;
  background: white;
  border: 2px solid transparent;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-nav a:hover,
.mobile-nav li.active a {
  background: linear-gradient(135deg, #BA0909 0%, #8B0000 100%);
  color: white;
  border-color: #BA0909;
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(186, 9, 9, 0.3);
}

.mobile-nav a i {
  width: 24px;
  text-align: center;
  font-size: 18px;
}

/* Mobile Social Section */
.mobile-social-section {
  padding: 25px 20px;
  border-top: 2px solid #f0f0f0;
  background: white;
  margin-top: auto;
}

.mobile-social-section h6 {
  margin: 0 0 20px 0;
  font-weight: 700;
  color: #BA0909;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-social-section h6 i {
  font-size: 18px;
}

.mobile-social-buttons {
  display: flex;
  gap: 12px;
}

.mobile-social-btn {
  flex: 1;
  padding: 15px;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.mobile-social-btn.facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5cb6 100%);
  color: white;
}

.mobile-social-btn.tiktok {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  color: white;
}

.mobile-social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.mobile-social-btn i {
  font-size: 18px;
}

/* Mobile Auth Capsule */
.mobile-auth-capsule {
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin: 25px 20px;
  background: white;
  border: 2px solid #f0f0f0;
}

.mobile-auth-btn {
  flex: 1;
  padding: 16px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mobile-auth-btn.login {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
}

.mobile-auth-btn.register {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white !important;
}

.mobile-auth-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: linear-gradient(135deg, #BA0909 0%, #8B0000 100%);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(186, 9, 9, 0.3);
}

.mobile-menu-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(186, 9, 9, 0.4);
}

.mobile-menu-toggle i {
  font-size: 22px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

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

/* ANIMATIONS */
@keyframes slideInLeft {
  from { 
    opacity: 0;
    transform: translateX(-30px);
  }
  to { 
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-nav li {
  animation: slideInLeft 0.3s ease forwards;
  opacity: 0;
}

.mobile-nav li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav li:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav li:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav li:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav li:nth-child(5) { animation-delay: 0.3s; }

/* SCROLLBAR STYLING */
.mobile-nav::-webkit-scrollbar {
  width: 6px;
}

.mobile-nav::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.mobile-nav::-webkit-scrollbar-thumb {
  background: #BA0909;
  border-radius: 3px;
}

.mobile-nav::-webkit-scrollbar-thumb:hover {
  background: #8B0000;
}

/* =================================================== */
/* RESPONSIVE STYLES */
/* =================================================== */

/* Tablets */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-menu {
    width: 300px;
  }
}

/* Mobile Phones */
@media (max-width: 576px) {
  .mobile-menu {
    width: 280px;
    max-width: 85%;
  }
  
  .mobile-menu-header {
    padding: 20px 15px;
  }
  
  .mobile-logo {
    font-size: 16px;
  }
  
  .mobile-close {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .mobile-nav {
    padding: 20px 15px;
  }
  
  .mobile-nav a {
    padding: 16px 18px;
    font-size: 15px;
  }
  
  .mobile-social-section {
    padding: 20px 15px;
  }
  
  .mobile-social-btn {
    padding: 12px;
    font-size: 13px;
  }
  
  .mobile-auth-capsule {
    margin: 20px 15px;
  }
  
  .mobile-auth-btn {
    padding: 14px;
    font-size: 14px;
  }
}

/* Small Mobile Phones */
@media (max-width: 375px) {
  .mobile-menu {
    width: 260px;
  }
  
  .mobile-nav a {
    padding: 14px 16px;
    font-size: 14px;
  }
  
  .mobile-auth-btn {
    font-size: 13px;
    padding: 12px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .mobile-menu {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  }
  
  .mobile-nav a {
    background: #2a2a2a;
    color: #fff;
    border-color: #333;
  }
  
  .mobile-social-section {
    background: #1a1a1a;
    border-color: #333;
  }
  
  .mobile-auth-capsule {
    background: #1a1a1a;
    border-color: #333;
  }
  
  .mobile-social-section h6 {
    color: #fff;
  }
}

/* PRINT STYLES */
@media print {
  .mobile-menu,
  .mobile-menu-toggle,
  .mobile-menu-overlay {
    display: none !important;
  }
}