/* ====== HEADER STYLE ====== */
header {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  transition: all 0.3s ease;
  padding: 10px 0;
}

/* عند التمرير */
header.scrolled {
  padding: 5px 0;
  background: linear-gradient(90deg, #4b0136, #bb6ba5);
}

/* ====== الحاوية العامة ====== */
.header-container {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* يمين - وسط - يسار */
  align-items: center;
  max-width: 1400px;
  margin: auto;
  padding: 0 20px;
  gap: 20px;
  position: relative;
}

/* ====== اللوجو ====== */
.logo {
  text-align: right;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
[dir="ltr"] .logo {
  text-align: left;
}
.logo img {
  height: 120px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.logo img:hover {
  transform: scale(1.05);
}

/* ====== الجزء الأوسط (القائمة + الشريط) ====== */
.header-center {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* ====== الشريط العلوي - القائمة ====== */
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 6px;
  min-height: 70px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 25px;
}
.main-nav ul li {
  position: relative;
}
.main-nav ul li a {
  text-decoration: none;
  color: #150631;
  font-weight: 600;
  padding: 10px;
  font-size: 15px;
  transition: color 0.3s, transform 0.2s;
}
.main-nav ul li a:hover {
  color: #e8dc04;
  transform: translateY(-2px);
}

/* ====== القوائم المنسدلة ====== */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #c5defa;
  border-radius: 8px;
  border: 1px solid #ddd;
  min-width: 180px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.main-nav ul li:hover > .dropdown,
.main-nav ul li.open > .dropdown {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 15px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s, color 0.3s;
}
.dropdown li:last-child a {
  border-bottom: none;
}
.dropdown li a:hover {
  background: #f8f8f8;
  color: #5f0144;
}

/* ====== الشريط السفلي ====== */
.header-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 0;
  text-align: center;
  background: rgba(212, 19, 167, 0.977);
}
.header-bottom .sub-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 25px;
}
.header-bottom .sub-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.header-bottom .sub-links a:hover {
  color: #e8dc04;
}

/* ====== الأزرار ====== */
.header-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.btn {
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

/* زر الحجز */
.book-btn {
  background: #e8dc04;
  color: #5f0144;
}
.book-btn:hover {
  background: #cbbd03;
  transform: translateY(-2px);
}

/* زر اللغة */
.lang-btn {
  background: #fff;
  color: #5f0144;
  border: 1px solid #ddd;
}
.lang-btn:hover {
  background: #f5f5f5;
}

/* ====== زر الهامبورجر ====== */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #5f0144;
  cursor: pointer;
  position: absolute;
  top: 25px;
  left: 20px;
  z-index: 1001;
  transition: transform 0.3s, color 0.3s;
}
[dir="ltr"] .hamburger {
  right: 20px;
  left: auto;
}
.hamburger.active {
  color: #e8dc04;
  transform: rotate(90deg);
}

/* ====== الموبايل ====== */
@media (max-width: 992px) {
  .header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .logo img {
    height: 90px;
  }

  .header-buttons {
    order: 3;
    flex-direction: row;
    justify-content: center;
  }

  /* إظهار زر المنيو */
  .hamburger {
    display: block;
  }

  /* إخفاء القائمة افتراضياً */
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 15px 0;
  }

  /* عند فتح المنيو */
  .main-nav.open {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .main-nav ul li a {
    display: block;
    padding: 10px;
    font-size: 16px;
  }

  .dropdown {
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .header-bottom {
    display: none;
  }
}
