/* ===================================================
   FELEROUS STORE - UNIFIED MODERN NAVBAR & MOBILE DRAWER
   (Sleek Gaming Standard - Emojis removed, clean dropdown)
   =================================================== */

/* Ana Mağaza Navigasyonu (Store Header) */
.store-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 28px;
  background-color: #0b0f15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  width: 100%;
  box-sizing: border-box;
}

.store-header .logo a,
.store-header .logo {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.store-header .logo a:hover {
  opacity: 0.9;
}

.store-header nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.store-header nav a,
.store-header .nav-dropdown-btn {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.store-header nav a:hover,
.store-header .nav-dropdown-btn:hover,
.store-header .nav-dropdown:hover .nav-dropdown-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.store-header nav a.active,
.store-header .nav-dropdown.active .nav-dropdown-btn {
  color: #00e676;
  background: rgba(0, 230, 118, 0.12);
  font-weight: 700;
}

/* Keşfet Dropdown Menüsü */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-chevron {
  font-size: 0.72rem;
  transition: transform 0.25s ease;
  opacity: 0.7;
  display: inline-block;
  margin-left: 2px;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: #111722;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 1050;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 6px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.nav-dropdown-menu a:hover {
  background: rgba(0, 230, 118, 0.12);
  color: #00e676;
  transform: translateX(3px);
}

.nav-dropdown-menu a.active {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  font-weight: 700;
}

/* Sağ Taraf: Arama, İstek Listesi & Profil */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-bar {
  position: relative;
}

.search-bar input {
  background-color: #141b24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 14px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.88rem;
  width: 170px;
  outline: none;
  transition: border-color 0.2s, width 0.2s, background-color 0.2s;
}

.search-bar input:focus {
  border-color: #00e676;
  width: 210px;
  background-color: #17202b;
}

/* İstek Listesi Butonu (Masaüstü Sağ Toolbar) - Giriş yapıldığında auth.js görünür kılar */
.nav-wishlist-link {
  display: none;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-wishlist-link svg {
  color: #fbbf24;
  transition: transform 0.2s ease;
}

.nav-wishlist-link:hover {
  color: #ffffff;
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
  transform: translateY(-1px);
}

.nav-wishlist-link:hover svg {
  transform: scale(1.15) rotate(12deg);
}

.nav-wishlist-link.active {
  color: #fbbf24;
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
}

#nav-auth {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Mobil Hamburger Butonu */
.mobile-toggle-store {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  flex-shrink: 0;
}

.mobile-toggle-store span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #e2e8f0;
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: left center;
}

.mobile-toggle-store.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(0px, -2px);
  background-color: #00e676;
}

.mobile-toggle-store.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle-store.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(0px, 2px);
  background-color: #00e676;
}

/* Mobil Menü Arka Plan Karartması (Backdrop) */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

/* Responsive (Tablet & Mobil < 920px) */
@media (max-width: 920px) {
  .store-header {
    padding: 10px 16px;
  }

  .store-header .logo a,
  .store-header .logo {
    font-size: 1.25rem;
    letter-spacing: 1px;
  }

  .mobile-toggle-store {
    display: flex;
  }

  .search-bar {
    display: none;
  }

  .nav-wishlist-link {
    padding: 6px 9px;
  }

  .nav-wishlist-link span {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  #nav-auth a span {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .store-header nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    max-width: 85vw;
    height: 100vh;
    background: #0d1219;
    border-left: 1px solid #1e293b;
    padding: 65px 16px 30px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.9);
    overflow-y: auto;
    box-sizing: border-box;
  }

  .store-header nav.is-open {
    right: 0;
  }

  .store-header nav a,
  .store-header .nav-dropdown-btn {
    font-size: 1rem;
    padding: 12px 14px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    color: #cbd5e1;
    background: #141b24;
    border: 1px solid #1f2937;
    justify-content: flex-start;
  }

  .store-header nav a:hover {
    color: #ffffff;
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.3);
  }

  .store-header nav a.active {
    color: #00e676;
    background: rgba(0, 230, 118, 0.15);
    border-color: rgba(0, 230, 118, 0.4);
    font-weight: 700;
  }

  /* Mobilde Dropdown Elemanları */
  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown-btn {
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 4px 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }

  .nav-dropdown-menu a {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.92rem;
    padding: 10px 14px;
  }
}

@media (max-width: 480px) {
  .store-header {
    padding: 10px 12px;
  }

  .store-header .logo a,
  .store-header .logo {
    font-size: 1.15rem;
  }

  #nav-auth a {
    padding: 4px 8px;
    font-size: 0.8rem;
  }

  #nav-auth a span {
    max-width: 70px;
  }
}
