/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  padding-top: 90px;
  background: linear-gradient(135deg, #0f0a2e, #1a0b3d);
  color: #e2e8ff;
}

/* ============================================
   HEADER
============================================ */
header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 90px;
  backdrop-filter: blur(26px);
  background: linear-gradient(to left,
    rgba(108, 56, 255, 0.85),
    rgba(70, 25, 140, 0.6) 40%,
    rgba(25, 10, 60, 0.2) 75%,
    rgba(10, 5, 30, 0)
  );
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  z-index: 999;
}

.header-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================
   LOGO
============================================ */
.brand-title {
  font-weight: 700;
  color: #fff;
  font-size: 1.4rem;
}

.brand a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-ring {
  position: absolute;
  inset: 4px;
  border-radius: 14px;
  background: rgba(20,15,50,0.9);
}

.logo-text {
  font-size: 28px;
  font-weight: 900;
  z-index: 2;
}

/* ============================================
   NAVIGATION
============================================ */
.right-section {
  display: flex;
  align-items: center;
  gap: 42px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: #eedeff;
  font-weight: 600;
  transition: .25s;
  position: relative;
}

.nav-menu a:hover {
  color: #fff;
}

/* ============================================
   SEARCH BOX
============================================ */
.search-box {
  position: relative;
  display: flex;
  align-items: center !important;
  gap: 11px;
  padding: 8px 16px;
  height: 44px;
  border-radius: 28px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(168,85,247,0.35);
  transition: .25s;
  z-index: 10000;
}

.search-box:hover {
  box-shadow: 0 0 20px rgba(168,85,247,0.45);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  width: 200px;
  font-size: 15px;
}

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

.search-box button {
  padding: 7px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: .25s;
}

.search-box button:hover {
  transform: scale(1.07);
}

/* search results dropdown */
#search-results {
  position: absolute;
  top: 56px;
  right: 0;
  width: 100%;
  border-radius: 14px;
  padding: 8px 0;
  display: none;
  background: #120f22;
  border: 1px solid rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 28px rgba(168,85,247,0.45);
  z-index: 9999;
}

#search-results.show {
  display: block;
}

/* ============================================
   PROFILE BUTTON
============================================ */
.profile-btn {
  padding: 10px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  text-decoration: none;
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(236,72,153,0.5);
  transition: .25s;
  margin-top: 9px;
}

.profile-btn:hover {
  transform: scale(1.05);
}

/* ============================================
   MOBILE
============================================ */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 14px 16px;
    height: auto;
    gap: 12px;
  }

  .right-section {
    width: 100%;
    justify-content: space-between;
  }

  .nav-menu ul {
    display: none;
  }

  .search-box {
    width: 100%;
    justify-content: center;
  }

  #search-results {
    width: 100%;
  }
}
