
/* Hero Header Image */
.hero-header {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #0f0f23;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .hero-image {
    max-height: 250px;
  }
}

/* Header with Background Image */
header, .site-header {
  background-image: url('/header-image.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
}

/* Ensure header content is above background */
.site-header .container, header .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transform: translateY(10px);
}

/* Logo styling with better visibility */
.site-header .logo, header .logo,
.site-header .logo a, header .logo a {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  font-size: 1.4em;
  font-weight: bold;
  white-space: nowrap;
}

/* Navigation styling with better visibility */
.site-header nav, header nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-header nav a, header nav a {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  background: rgba(124, 58, 237, 0.2);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header nav a:hover,
.site-header nav a.active, header nav a:active, header nav a.active {
  background: rgba(124, 58, 237, 0.6);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}

@media (max-width: 768px) {
  .site-header, header {
    min-height: 200px;
    padding-bottom: 15px;
  }
  
  .site-header .container, header .container {
    flex-direction: column;
    gap: 10px;
    padding: 8px 10px;
    transform: translateY(0);
  }
  
  .site-header .logo, header .logo,
  .site-header .logo a, header .logo a {
    font-size: 1.3em;
  }
  
  .site-header nav, header nav {
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }
  
  .site-header nav a, header nav a {
    padding: 10px 14px;
    font-size: 0.85em;
    min-height: 44px;
    flex: 0 1 auto;
  }
  
  /* Optimize content spacing on mobile */
  main {
    padding: 15px 10px;
  }
  
  /* Make cards stack better on mobile */
  .deals-grid,
  .featured-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
  
  /* Improve readability on mobile */
  body {
    font-size: 15px;
    line-height: 1.5;
  }
  
  h1 {
    font-size: 1.75em;
  }
  
  h2 {
    font-size: 1.4em;
  }
  
  h3 {
    font-size: 1.2em;
  }
}
