/**
 * Premium Header Styling
 * Luxury dark header with gold accents
 */

/* Premium Header Top - Dark with Gold */
.header-top {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%) !important;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10000;
}

.header-top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}

/* Premium Header Bottom - Dark Luxury */
.header-bottom {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: none;
  box-shadow: none !important;
  position: relative;
  z-index: 10000;
}

/* Active/Sticky Header */
.header.active .header-bottom {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(45, 45, 45, 0.98) 100%) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}

/* Premium Logo on Dark Background */
.header-bottom .logo img {
  filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(212, 175, 55, 0.5));
  transition: all 0.3s ease;
}

/* Premium Apply Listing Button with FREE Badge */
.header-top-btn {
  background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%) !important;
  color: white !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px !important;
}

.header-top-btn::before {
  content: 'FREE';
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #FF4444, #FF6B6B);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255, 68, 68, 0.5);
  animation: pulse 2s infinite;
  z-index: 10;
  letter-spacing: 0.5px;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 68, 68, 0.7);
  }
}

.header-top-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.header-top-btn:hover::after {
  width: 300px;
  height: 300px;
}

.header-top-btn:hover {
  background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%) !important;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
}

/* Premium Top Links with Gold Hover */
.header-top-link {
  color: rgba(255, 255, 255, 0.9) !important;
  transition: all 0.3s ease;
  position: relative;
}

.header-top-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #D4AF37, #FFD700);
  transition: width 0.3s ease;
}

.header-top-link:hover {
  color: #FFD700 !important;
}

.header-top-link:hover::after {
  width: 100%;
}

.header-top-link ion-icon {
  color: #D4AF37;
}

/* Premium Social Links */
.header-top-social-link {
  background: rgba(212, 175, 55, 0.15) !important;
  color: #FFD700 !important;
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.header-top-social-link:hover {
  background: linear-gradient(135deg, #D4AF37, #FFD700) !important;
  color: white !important;
  border-color: #FFD700;
  transform: translateY(-3px) !important;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Premium Navigation Links */
.navbar-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #D4AF37, #FFD700);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.navbar-link:hover,
.navbar-link.active {
  color: #FFD700 !important;
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 100%;
}

/* Premium Dropdown Menu */
.navbar-item {
  position: relative;
  z-index: 10000;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  min-width: 250px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 10001;
  padding: 10px 0;
  margin-top: 10px;
}

.navbar-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  border-left: 3px solid transparent;
}

.dropdown-link:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #FFD700 !important;
  border-left-color: #D4AF37;
  padding-left: 25px;
}

.dropdown-divider {
  height: 1px;
  background: rgba(212, 175, 55, 0.2);
  margin: 5px 0;
}

/* Dropdown arrow - NO PSEUDO ELEMENT */
.navbar-link.has-dropdown {
  /* Arrow will be added in HTML instead */
}

/* Premium Logo Enhancement */
.logo {
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.5)) brightness(0) invert(1);
}

/* Premium Mobile Menu Button */
.header-bottom-actions-btn {
  color: rgba(255, 255, 255, 0.9) !important;
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(212, 175, 55, 0.1);
}

.header-bottom-actions-btn:hover {
  color: #FFD700 !important;
  border-color: #D4AF37;
  background: rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.header-bottom-actions-btn ion-icon {
  color: #D4AF37;
}

/* Premium Navbar for Mobile */
.navbar {
  background: transparent;
  border: none;
  box-shadow: none;
}

.navbar-top {
  background: transparent;
  border-bottom: none;
}

.navbar .logo {
  filter: brightness(0) invert(1);
}

.navbar .navbar-link {
  color: white !important;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .navbar-link:hover,
.navbar .navbar-link.active {
  background: rgba(212, 175, 55, 0.2);
  color: #FFD700 !important;
}

.navbar .navbar-link::after {
  display: none;
}

.nav-close-btn {
  color: #FFD700 !important;
}

.nav-close-btn:hover {
  color: white !important;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 8px;
}

/* Premium Overlay */
.overlay {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .header-top {
    padding: 12px 0;
  }
  
  .header-top .container {
    flex-direction: column;
    gap: 12px;
  }
  
  .header-top-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  .header-top-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  /* Mobile dropdown */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid #D4AF37;
    margin-left: 15px;
    margin-top: 5px;
    background: rgba(212, 175, 55, 0.1);
  }
}

/* Premium Header Top Info Styling */
.header-top-list address {
  color: rgba(255, 255, 255, 0.9);
  font-style: normal;
}

/* Add shine effect to header */
.header-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  animation: shine 6s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  20%, 100% {
    left: 100%;
  }
}

/* Premium separator line */
.header-top-list .separator {
  background: rgba(212, 175, 55, 0.4) !important;
  opacity: 1 !important;
}

/* Premium touch for larger screens */
@media (min-width: 1024px) {
  .header-top {
    padding: 18px 0;
  }
  
  .header-bottom {
    padding: 25px 0;
  }
  
  .header-top-btn {
    padding: 14px 30px !important;
    font-size: 15px !important;
  }

  /* Desktop dropdown positioning */
  .navbar-list {
    display: flex;
    align-items: center;
    gap: 25px;
  }
}

/* Ensure dropdown works on desktop */
@media (min-width: 992px) {
  .navbar-item {
    position: relative;
  }

  .dropdown-menu {
    display: block;
  }
}
