.header {
  grid-column: 1 / -1;
  background: rgba(15, 11, 29, 0.5);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 12px 28px;
  gap: 20px;
  position: relative;
  z-index: 10;
  box-shadow: 0 8px 30px rgba(4, 2, 12, 0.45);
  min-height: var(--header-height);
}


.menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.menu-btn .bar {
  display: block;
  width: 24px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute;
}

.menu-btn .bar1 {
  top: 10px;
}

.menu-btn .bar2 {
  top: 18px;
}

.menu-btn .bar3 {
  top: 26px;
}


.menu-btn.active .bar1 {
  top: 18px;
  transform: rotate(45deg);
}

.menu-btn.active .bar2 {
  opacity: 0;
}

.menu-btn.active .bar3 {
  top: 18px;
  transform: rotate(-45deg);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-mini,
.logo-games,
.logo-ville {
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: none;
  text-transform: uppercase;
}

.logo-mini {
  font-size: 16px;
  color: #b0a7ff;
}

.logo-games {
  font-size: 22px;
  color: #ffe75e;
}

.logo-ville {
  font-size: 20px;
  color: #74f2f2;
}


.search-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  justify-content: center;
  transition: all 0.3s ease;
}

.search-input {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  color: #e8e3ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(120deg, #ff7dc2, #ffa14f);
  border: none;
  cursor: pointer;
  padding: 10px;
  color: #1a0f2f;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(255, 125, 194, 0.35);
}

.search-btn svg {
  color: #1a0f2f;
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.05);
}


.mobile-search-btn {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  padding: 8px;
  color: white;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: auto;
  border-radius: 50%;
}

.mobile-search-btn:hover {
  opacity: 0.8;
}


@media (max-width: 768px) {
  .header {
    padding: 0 15px;
    gap: 10px;
  }

  
  
  .search-container {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    max-width: 100%;
    padding: 0 15px;
    display: none;
    z-index: 100;
  }

  
  .search-container.active {
    display: flex !important;
    opacity: 0;
    animation: slideDown 0.3s ease forwards;
  }

  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .search-input {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  
  .mobile-search-btn {
    display: flex;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }
}
