/* Mobile Header Styles - AutoDyna Design System */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #19272f;
  background: linear-gradient(135deg, #19272f 0%, #32373c 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border-bottom: 2px solid #abb8c3;
}

.mobile-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 100%;
  height: 60px;
}

/* Logo Styles */
.mobile-logo {
  flex-shrink: 0;
}

.mobile-logo a {
  display: block;
  text-decoration: none;
}

.mobile-logo-img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.mobile-logo video {
  height: 36px;
  width: auto;
  max-width: 140px;
}

/* Hamburger Menu Button */
.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger Animation */
.mobile-nav-toggle.active .hamburger-line:first-child {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active .hamburger-line:last-child {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: #19272f;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  border-top: 1px solid #abb8c3;
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav-content {
  padding: 20px;
}

/* Navigation List */
.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.mobile-nav-list a {
  display: block;
  padding: 14px 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  direction: rtl;
  text-align: right;
}

.mobile-nav-list a:hover,
.mobile-nav-list a:focus {
  background: rgba(171, 184, 195, 0.1);
  border-color: #abb8c3;
  color: #abb8c3;
}

/* User Actions */
.mobile-user-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(171, 184, 195, 0.2);
  direction: rtl;
  text-align: right;
}

.mobile-user-info {
  display: flex;
  align-items: center;
  color: #abb8c3;
  font-size: 14px;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  direction: rtl;
}

.mobile-user-info i {
  margin-right: 8px;
  font-size: 16px;
}

.mobile-login,
.mobile-logout {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  direction: rtl;
  text-align: right;
}

.mobile-login:hover,
.mobile-logout:hover {
  background: rgba(171, 184, 195, 0.1);
  border-color: #abb8c3;
  color: #abb8c3;
}

.mobile-login i,
.mobile-logout i {
  margin-right: 8px;
  font-size: 16px;
}

/* Body Padding for Fixed Header */
body.mobile-header-active {
  padding-top: 60px;
}

/* Responsive Breakpoints */
@media (max-width: 480px) {
  .mobile-header-container {
    padding: 10px 16px;
  }
  
  .mobile-logo-img,
  .mobile-logo video {
    height: 32px;
    max-width: 120px;
  }
  
  .mobile-nav-content {
    padding: 16px;
  }
}

@media (max-width: 360px) {
  .mobile-header-container {
    padding: 8px 12px;
  }
  
  .mobile-logo-img,
  .mobile-logo video {
    height: 28px;
    max-width: 100px;
  }
}

/* Hide desktop header on mobile */
@media (max-width: 768px) {
  .site-header {
    display: none;
  }
}

/* Hide mobile header on larger screens */
@media (min-width: 769px) {
  .mobile-header {
    display: none;
  }
  
  body.mobile-header-active {
    padding-top: 0;
  }
}