/*************************************************
  BLOG WALL SELECTOR – UI DROPDOWN (FIXED)
*************************************************/

.ui-dropdown {
  position: relative;
  max-width: 680px;
  margin: 40px auto;
  padding: 28px 26px;

  border-radius: var(--radius-xl);
  direction: rtl;
  text-align: center;
  font-family: var(--font-sans);

  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #ffffff;

  border: 3px solid var(--color-accent);
  box-shadow: var(--shadow-strong);
}

/* ===============================
   العنوان
=============================== */
.blog-selector-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px; /* ⬅️ تقليل المسافة */
}

.blog-selector-title span {
  display: block;
  font-size: 16px;
  opacity: 0.95;
}

.blog-selector-title small {
  display: block;
  font-size: 14px;
  opacity: 0.85;
  margin-top: 4px;
}

/* ===============================
   غلاف مانع للتسلل
=============================== */
.wall-selector-core {
  position: relative;
  z-index: 10;
  display: block;
  width: 100%;
}

/* ===============================
   Trigger
=============================== */
.ui-dropdown-trigger {
  margin-top: 6px; /* ⬅️ إغلاق الفراغ */
  padding: 16px 20px;

  border-radius: 22px;
  background: #ffffff;
  color: #003366;

  font-size: 16px;
  font-weight: 700;

  display: flex;
  justify-content: space-between;
  align-items: center;

  cursor: pointer;
  border: 2px solid var(--color-accent);
}

.ui-dropdown-trigger:hover {
  background: var(--bg-soft-1);
}

/* ===============================
   القائمة المنسدلة
=============================== */
.ui-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  z-index: 9999;

  list-style: none;
  margin: 10px 0 0;
  padding: 0;

  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);

  max-height: 0;
  overflow-y: auto;
  transition: max-height .35s ease;
}

.ui-dropdown[data-open="true"] .ui-dropdown-list {
  max-height: 420px;
}

/* ===============================
   عناصر القائمة (متباينة)
=============================== */
.ui-dropdown-item {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  cursor: pointer;
  font-weight: 700;
  color: #0f172a;

  border-bottom: 1px solid var(--color-border);
}

.ui-dropdown-item:nth-child(odd) {
  background-color: #f8fafc;
}

.ui-dropdown-item:nth-child(even) {
  background-color: #eef3f9;
}

.ui-dropdown-item:hover {
  background-color: #dbeafe !important;
}

.ui-dropdown-item:last-child {
  border-bottom: none;
}

/* ===============================
   حالة المدونة
=============================== */
.blog-state {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.state-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0,0,0,0.25);
}

.state-active   { background-color: var(--state-active); }
.state-hold     { background-color: var(--state-hold); }
.state-stopped  { background-color: var(--state-stopped); }
.state-dead     { background-color: var(--state-dead); }
.state-unknown  { background-color: var(--state-unknown); }

/* ===============================
   Mobile
=============================== */
@media (max-width: 600px) {
  .ui-dropdown {
    padding: 20px;
  }

  .ui-dropdown-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}