/* Alez — نوار خبر یک‌خطی  v1.0.0 */

#alezn-src { display: none !important; }

.alezn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  color: #13141f;
  background: #fff;
  border-radius: 14px;
  box-sizing: border-box;
  direction: rtl;
  text-align: start;
}

.alezn__in {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 1.5em;
}

.alezn__i {
  position: absolute;
  inset-inline: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alezn__i.is-on { opacity: 1; visibility: visible; }

.alezn__a { color: inherit; text-decoration: none; border-bottom: 1px dashed currentColor; }

/* ── خبر رستوران: بالای بنر، در جریان صفحه ───────────────────────── */
.alezn--own {
  margin: 0;
  border-radius: 0;
  background: #fff;
  border-bottom: 1px solid rgba(19, 20, 31, .07);
}

.alezn--own::before {
  content: '';
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sfx-pink, #a02ba6);
}

/* ── خبر فوری: چسبان بالای صفحه ──────────────────────────────────── */
.alezn--urgent {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1200;
  border-radius: 0;
  background: #fdecec;
  color: #b3261e;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(179, 38, 30, .12);
}

.alezn__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0413a;
  animation: alezn-pulse 1.6s ease-in-out infinite;
}

@keyframes alezn-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.7); }
}

.alezn__x {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.alezn__x:hover { background: rgba(179, 38, 30, .1); }

/* اگر نوار مدیریت وردپرس بالاست، نوار فوری زیرش بنشیند */
body.admin-bar .alezn--urgent { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .alezn--urgent { top: 46px; }
}

/* جای باز کردن برای عناصر چسبانِ قالب وقتی نوار فوری بالاست */
html.alezn-has-urgent body { padding-top: var(--alezn-h, 0px); }
html.alezn-has-urgent .sfx-tabs,
html.alezn-has-urgent .sfx-search { top: var(--alezn-h, 0px); }

/* ── خبر Alez: انتهای صفحه، بالای کپی‌رایت ───────────────────────── */
.alezn--alez {
  margin: 0 0 10px;
  padding: 8px 0;
  background: transparent;
  border-radius: 0;
  border-top: 1px solid rgba(0, 0, 0, .07);
  color: #83838f;
  font-size: 12px;
  font-weight: 500;
}

.alezn__tag {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #6b4fbb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
}

/* ── کارت ویرایش در پیشخوان ──────────────────────────────────────── */
.alezn-rows { display: grid; gap: 10px; margin: 10px 0; }

.alezn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #ececf1;
  border-radius: 12px;
}

.alezn-row input[type="text"],
.alezn-row input[type="url"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e2e2ea;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
}

.alezn-chk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

#alezn-save {
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--sfx-pink, #a02ba6);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
#alezn-save[disabled] { opacity: .6; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .alezn__i { transition: none; }
  .alezn__dot { animation: none; }
}

/* ── کارت یادآور کاری در پیشخوان ─────────────────────────────────── */
.alezn-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }

.alezn-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid #ececf1;
  border-radius: 12px;
  background: #fff;
}

.alezn-left {
  flex: 0 0 auto;
  align-self: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(19, 20, 31, .06);
  font-size: 11px;
  font-weight: 600;
  opacity: .7;
  white-space: nowrap;
}

.alezn-tick {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}

.alezn-tick input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--sfx-pink, #a02ba6);
}

.alezn-note__t { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }

.alezn-note.is-done .alezn-note__t { text-decoration: line-through; opacity: .45; }

.alezn-del {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #b3261e;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.alezn-del:hover { background: rgba(179, 38, 30, .09); }

.alezn-empty { margin: 10px 0 0; font-size: 13px; opacity: .55; }

.alezn-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.alezn-add input[type="text"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #e2e2ea;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
}

#alezn-note-add {
  padding: 9px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--sfx-pink, #a02ba6);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
#alezn-note-add[disabled] { opacity: .6; cursor: default; }

.alezn-row select,
.alezn-add select {
  flex: 0 1 auto;
  padding: 8px 10px;
  border: 1px solid #e2e2ea;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 13px;
}

/* ── کارت خبر شبکه — هنوز باز نشده ───────────────────────────────── */
.alezn-net.is-soon { opacity: .75; }

.alezn-soon {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(19, 20, 31, .07);
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}
