﻿/* Simple Mobile Navigation */

.mobile-nav {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, #af0000 0%, #800000 100%);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  display: block !important;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-header {
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

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

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.mobile-nav-content {
  padding: 0;
  display: block !important;
}

.mobile-nav-profile {
  padding: 20px;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-avatar {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
}

.mobile-nav-info h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  font-family: "Inter", sans-serif;
}

.mobile-nav-info p {
  margin: 5px 0 0;
  opacity: 0.8;
  font-size: 0.9rem;
  color: white;
  font-family: "Inter", sans-serif;
}

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

.mobile-nav-menu > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
}

.mobile-nav-link:hover {
  background: rgba(160, 0, 0, 0.3);
  transform: translateX(5px);
}

.mobile-nav-link:active {
  background: rgba(160, 0, 0, 0.5);
  transform: translateX(3px);
}

.mobile-nav-profile:hover {
  background: rgba(0, 0, 0, 0.2);
}

.mobile-nav-avatar:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1) rotate(90deg);
}

.mobile-nav-auth .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mobile-nav-auth .btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-nav-link i {
  margin-right: 12px;
  width: 16px;
  text-align: center;
}

.mobile-nav-dropdown .mobile-nav-toggle {
  justify-content: flex-start;
}

.mobile-nav-dropdown .mobile-nav-toggle i:last-child {
  margin-right: 0;
  transition: transform 0.3s ease;
}

.mobile-nav-dropdown.open .mobile-nav-toggle i:last-child {
  transform: rotate(180deg);
}

.mobile-nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.2);
  display: none;
}

.mobile-nav-dropdown.open .mobile-nav-submenu {
  display: block;
}

.mobile-nav-submenu .mobile-nav-link {
  padding-left: 48px;
  font-size: 0.9rem;
}

.mobile-nav-auth {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-auth .btn {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 12px 20px;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  border: none;
  cursor: pointer;
}

.mobile-nav-auth .btn:last-child {
  margin-bottom: 0;
}

.mobile-nav-auth .btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.mobile-nav-auth .btn-outline:hover {
  background: white;
  color: #af0000;
}

.mobile-nav-auth .btn-primary {
  background: white;
  color: #af0000;
  border: 2px solid white;
}

.mobile-nav-auth .btn-primary:hover {
  background: #f8f9fa;
  color: #af0000;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.mobile-overlay.show {
  display: block;
}

/* Responsive */

@media (max-width: 768px) {
  .mobile-nav {
    width: 280px;
  }
  .mobile-nav-link {
    font-size: 0.9rem;
  }
  .mobile-nav-submenu .mobile-nav-link {
    font-size: 0.85rem;
    padding-left: 40px;
  }
}

@media (max-width: 480px) {
  .mobile-nav {
    width: 100%;
    right: -100%;
  }
}

