:root {
  --header-scale: 0.9; /* ← غيّرها: 0.85 / 0.9 / 0.95 */
}

/* ==============================
   PANEL الشعار - FINAL POLISHED
============================== */
.standalone-logo {
  position: fixed;
  top: 0;
  left: 0;

  width: calc(260px * var(--header-scale));
  height: calc(101px * var(--header-scale));

  background: #0f0f1f;
  border-right: 1px solid #1b1b2a;
  border-bottom: 1px solid #1b1b2a;

  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;

  overflow: hidden;
  z-index: 1100;
}

/* 🔥 الخلفية (احترافية) */
.logo-bg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;


  z-index: 1;
  pointer-events: none;
}

.standalone-logo::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to left,
      rgba(15,15,31,0.5) 0%,
      rgba(15,15,31,0.25) 40%,
      transparent 70%
    ),
    linear-gradient(
      to top,
      rgba(15,15,31,0.18) 0%,
      transparent 65%
    );

  z-index: 1;
}
/* رابط الشعار */
.logo-link {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;

  position: relative;
  z-index: 2;
}

/* صورة الشعار */
.logo-link img {
  
  width: auto;
  max-width: 90%;
  object-fit: contain;

  display: block;
  transition: filter 0.2s ease;
}

/* Hover (كما طلبت بدون تغيير) */
.logo-link:hover img {
  filter: brightness(0.7);
}

.top-bar {
  position: fixed;
  top: 0;
left: calc(260px * var(--header-scale));
width: calc(100% - (260px * var(--header-scale)));
height: calc(26px * var(--header-scale));


  background: #141422;
  color: #b7bcc7;
font-size: calc(14px * var(--header-scale));

  border-bottom: 1px solid #1b1b2a;
  z-index: 1001;

  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 🔥 Mid + Fade effect */
.top-bar-inner {
  position: absolute;
  left: calc(50% - (120px * var(--header-scale)));
  transform: translate(-50%, 5px);
  display: flex;
  gap: 25px;
  white-space: nowrap;

  opacity: 0;
  animation: topBarFade .35s ease forwards;
}

@keyframes topBarFade {
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Stylish separators */
.top-bar-inner span:not(:last-child)::after {
  content: "•";
  margin-left: 10px;
  opacity: 0.35;
}

/* Hover */
.top-bar-inner span {
  cursor: pointer;
  transition: .25s;
}
.top-bar-inner span:hover {
  color: #c29cff;
  opacity: 1;
  text-shadow: 0 0 6px #a259ff55;
}



/* =====================
      MAIN HEADER
===================== */
header {
  position: fixed;
top: calc(26px * var(--header-scale));
left: calc(260px * var(--header-scale));
width: calc(100% - (260px * var(--header-scale)));

height: calc(75px * var(--header-scale));
padding: 0 calc(30px * var(--header-scale));


  display: flex;
  align-items: stretch;
  justify-content: space-between;

  background: #0f0f1f;
  border-bottom: 1px solid #1b1b2a;
  box-sizing: border-box;
  z-index: 1000;
}



/* =====================
    LEFT SIDE ALIGNMENT
===================== */
.left-side {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

/* إخفاء الشعار القديم داخل الهيدر */
.logo-image-container {
  display: none !important;
}


nav {
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 12px;
}

nav a {
  color: #c9cbd7;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.3s;
}

nav a:hover {
  color: #a259ff;
  transform: translateY(-2px);
}

.social-icon {
  width: 20px;
  height: 20px;
  transition: 0.2s;
}

.social-icon:hover {
  transform: scale(1.1);
}


.center-labels {
  display: flex;
  gap: 0;
  align-items: stretch;
  height: 100%;
  transform: translateX(-40px); /* 🔥 يحركهم يسار */
}

.game-tab {
   padding: 0 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: 0.25s;
  height: 100%;
}

.game-title {
  font-size: calc(20px * var(--header-scale));
  font-weight: 900;
  color: #c9cbd7;
  transition: 0.25s;
  text-transform: uppercase;
  letter-spacing: 1.5px; /* 👈 جديد */
}


.game-price {
  font-size: calc(14px * var(--header-scale));
  margin-top: 3px;
  color: #ff4d4d;
  font-weight: bold;
}

.game-tab.active {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 0px; /* لو تبي حواف قاسية */
}


/* الحدود يمين ويسار عند التفعيل فقط */
.game-tab.active::before,
.game-tab.active::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 100%; /* 🔥 مهم جدًا حتى يغطي كامل الارتفاع */
  background: rgba(255,255,255,0.12);
  top: 0;
}

.game-tab.active::before { left: 0; }
.game-tab.active::after { right: 0; }

/* لون النص عند التفعيل */
.game-tab.active .game-title {
  color: white;
}



header .right-section {
  margin-left: auto !important;
  justify-content: flex-end !important;
}
/* تعديل شكل صورة البروفايل */
#user-avatar {
  width: calc(46px * var(--header-scale));
  height: calc(46px * var(--header-scale));
  border-radius: 50% !important;
  object-fit: cover !important;
  border: none !important; /* حذف الحواف البنفسجية */
}

/* إخفاء اسم اللاعب */
#user-name {
  display: none !important;
}


/* LOGIN BUTTON */
.login-btn {
  background: #7b49ff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  color: white;
  
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: .5px;
  
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.15s ease-in-out;
}

.login-btn:hover {
  background: #9c6bff;
}

.steam-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}


/* =========================== USER MENU =========================== */
#user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;

  padding: 6px 12px;
  border-radius: 999px;

  background: rgba(17, 20, 35, 0.95);
  border: 1px solid rgba(255,255,255,0.04);

  transition: background .18s ease, transform .18s ease;
}

#user-menu img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

#user-menu span {
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  color: #e4e7f5;
}

/* السهم من CSS */
#user-menu::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid #9da3c0;
  border-bottom: 2px solid #9da3c0;
  transform: rotate(45deg);
  margin-left: 3px;
  transition: .18s ease;
}

#user-menu.open::after {
  transform: rotate(225deg);
  border-color: white;
}

#user-menu:hover {
  background: rgba(26, 30, 53, 0.98);
  transform: translateY(-1px);
}



/* ==========================
   CLEAN DROP-DOWN (NO PURPLE)
========================== */

#dropdown-panel {
  position: absolute;
  top: 60px;
  right: 10px;

  width: 210px;
  background: #1b1c26;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);

  padding: 6px 0;
  overflow: hidden;
  z-index: 9999;

  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;

  transition: opacity .18s ease, transform .18s ease;
}

#dropdown-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Base item style */
#dropdown-panel div {
  padding: 12px 18px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e5e7f2;
  position: relative;
  cursor: pointer;
  transition: background .22s ease, color .22s ease;
}

#dropdown-panel div:hover {
  background: #1f2230;
  color: #b4c8ff; /* أزرق راقي */
  text-shadow: 0 0 8px rgba(100,140,255,0.45);
}

/* Left highlight bar (fixed & perfectly aligned) */
#dropdown-panel div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;

  height: 100%;
  width: 0px; /* يبدأ مخفي */
  background: #4d78ff;
  border-radius: 0 4px 4px 0;

  opacity: 0;
  transition: width .22s ease, opacity .22s ease;
}

/* When hovering — the left bar expands smoothly */
#dropdown-panel div:hover::before {
  width: 3px;
  opacity: 1;
}
