/**
 * Modern Navbar Styles for Papye Lakay
 * A fresh, modern navbar design with improved responsiveness and animations
 */

/* Container and general styling */
.app-header {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Top Bar */
.app-header .top-bar {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 0.6rem 0;
}

.app-header .top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-header .contact-info {
  display: flex;
  gap: 1.5rem;
}

.app-header .contact-info a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.app-header .contact-info a:hover {
  color: #e6e6e6;
}

.app-header .contact-info i {
  margin-right: 0.5rem;
}

.app-header .language-switcher {
  display: flex;
  gap: 0.75rem;
}

.app-header .language-switcher button {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
  transition: all 0.2s ease;
}

.app-header .language-switcher button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.app-header .language-switcher button.active {
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Main Header */
.app-header .main-header {
  background-color: #ffffff;
  padding: 0;
}

.app-header .header-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.75rem 0;
  visibility: visible !important;
  opacity: 1 !important;
}

.app-header .logo {
  display: flex !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.app-header .logo a {
  display: block;
  transition: transform 0.3s ease;
}

.app-header .logo a:hover {
  transform: scale(1.02);
}

.app-header .logo img {
  display: block !important;
  max-height: 150px !important;
  width: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Main Navigation */
.app-header .main-nav {
  position: relative;
}

.app-header .main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.app-header .main-nav li {
  position: relative;
}

.app-header .main-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 0;
  display: block;
  position: relative;
  transition: color 0.3s ease;
}

.app-header .main-nav a:hover,
.app-header .main-nav a.active {
  color: #c32525;
}

.app-header .main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #c32525;
  transition: width 0.3s ease;
}

.app-header .main-nav a:hover::after,
.app-header .main-nav a.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.app-header .menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.app-header .menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #333;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Navigation Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 90;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Sticky Navbar - Will be activated via JS */
.app-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  animation: slideDown 0.3s forwards;
}

.app-header.sticky .top-bar {
  display: none;
}

.app-header.sticky .main-header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

/* Mobile Responsive Design */
@media (max-width: 992px) {
  .app-header .main-nav {
    order: 3;
    flex-basis: 100%;
  }
  
  .app-header .header-content {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .app-header .top-bar .container {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.3rem 1rem;
  }
  
  .app-header .contact-info {
    margin-bottom: 0.3rem;
    gap: 1rem;
  }
  
  .app-header .main-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 2rem 1rem;
    transition: right 0.3s ease;
    overflow-y: auto;
  }
  
  .app-header .main-nav.open {
    display: block;
    right: 0;
  }
  
  .app-header .main-nav ul {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }
  
  .app-header .main-nav li {
    margin: 0;
    border-bottom: 1px solid #f1f1f1;
  }
  
  .app-header .main-nav a {
    padding: 1rem 0.5rem;
  }
  
  .app-header .main-nav a::after {
    display: none;
  }
  
  .app-header .menu-toggle {
    display: block;
  }
  
  .app-header .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .app-header .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  
  .app-header .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Additional Mobile Adjustments */
@media (max-width: 480px) {
  .app-header .contact-info {
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
  }
  
  .app-header .logo img {
    max-height: 110px;
  }
  
  .app-header .header-content {
    padding: 0.5rem 0;
  }
}
