/* ========== YOUR EXISTING RULES (unchanged) ========== */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #1a0003;
  box-shadow: 0 2px 8px rgba(255,0,0,0.2);
  flex-wrap: wrap;
}

.header-left .logo img {
  height: 80px; /* increased from 60px */
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .header-left .logo img {
    height: 60px; /* slightly smaller on mobile */
  }
}

.header-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0; /* adds spacing on mobile wrap */
}

.header-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-item {
  position: relative;
}

.nav-item .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #2c0f13;
  border: 1px solid #440810;
  border-radius: 6px;
  min-width: 160px;
  z-index: 10;
  flex-direction: column;
}

.nav-item .dropdown a {
  display: block;
  padding: 10px 15px;
  color: white;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-item .dropdown a:hover {
  background: #e74c3c;
  color: white;
}

.nav-item:hover .dropdown {
  display: flex;
  flex-direction: column;
}

/* Developer-only link hidden by default */
.dev-only {
  display: none;
}

.header-nav a:hover {
  color: #e74c3c;
}

.social-icon {
  color: white;
  font-size: 24px;
  transition: 0.3s ease;
}

.social-icon:hover {
  color: #e74c3c; /* Ember red */
  text-shadow: 0 0 8px #e74c3c, 0 0 12px #e74c3c;
  transform: scale(1.1);
}

.header-right {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-left: 10px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .header-left .logo img {
    height: 50px;
  }
}

/* ========== ADDITIONS (NON-BREAKING) ========== */

/* Support your existing .dropdown/.dropdown-content markup */
.header-nav .dropdown {
  position: relative;
}
.header-nav .dropdown > a {
  display: inline-block;
}
.header-nav .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #2c0f13;
  border: 1px solid #440810;
  border-radius: 6px;
  min-width: 160px;
  z-index: 1000;
  padding: 6px 0;
}
.header-nav .dropdown-content a {
  display: block;
  padding: 10px 14px;
  color: white;
  text-decoration: none;
}
.header-nav .dropdown:hover .dropdown-content {
  display: block;
}
.header-nav .dropdown-content a:hover {
  background: #e74c3c;
}

/* Search bar (header-right) */
.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2c0f13;
  border: 1px solid #440810;
  padding: 6px 8px;
  border-radius: 8px;
}
.site-search input {
  background: transparent;
  border: none;
  color: white;
  outline: none;
  min-width: 180px;
}
.site-search button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
}

/* Hero section + carousel polish */
.hero-section {
  position: relative;
  padding: 20px;
}
.hero-carousel {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-behavior: smooth;
  padding: 10px 30px;
}
.hero-carousel::-webkit-scrollbar {
  display: none;
}
.hero-slide {
  min-width: 360px;
  max-width: 520px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  border: 1px solid #440810;
  background: #1a0003;
}
.hero-slide img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.hero-slide:hover {
  transform: scale(1.03);
}
.hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.hero-overlay h3 {
  margin: 0 0 4px 0;
  font-family: 'Roboto', sans-serif;
}
.hero-overlay p {
  margin: 0;
  color: #ffb3b3;
  font-size: 0.95rem;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26,0,3,0.85);
  border: 1px solid #440810;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  user-select: none;
}
.hero-prev { left: 10px; }
.hero-next { right: 10px; }
.hero-nav:hover {
  background: #e74c3c;
}

/* NSFW blur utility (kept behavior) */
.nsfw-blur {
  filter: blur(15px);
  pointer-events: none;
}

/* Sections + game cards (polish only) */
section { padding: 20px; }
section h2 {
  font-size: 1.8em;
  margin-bottom: 15px;
  border-bottom: 2px solid #e74c3c;
  display: inline-block;
  padding-bottom: 5px;
}

.game-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.game-card {
  background: linear-gradient(to bottom, #2c0f13, #1a0003);
  border: 1px solid #440810;
  border-radius: 10px;
  min-width: 200px;
  overflow: hidden;
  color: white;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.3s;
  position: relative;
  text-decoration: none; /* keep link appearance clean */
}
.game-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.game-card h3 {
  padding: 10px 10px 4px;
  text-align: center;
  margin: 0 0 5px 0;
}
.game-card p {
  padding: 0 10px 12px;
  text-align: center;
  font-weight: 600;
  color: #e74c3c;
  margin: 0;
}
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(231,76,60,0.25);
}
.tags-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,0,0,0.85);
  color: white;
  padding: 8px 10px;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  justify-content: center;
  pointer-events: none;
}
.game-card:hover .tags-overlay { opacity: 1; }
.tag {
  background: #440810;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
  user-select: none;
}

/* Responsive tune-ups for hero */
@media (max-width: 768px) {
  .hero-slide { min-width: 280px; }
  .hero-section { padding: 10px; }
  .hero-nav { display: none; } /* arrows hidden — swipe/scroll on mobile */
  .site-search input { min-width: 120px; }
}
