/* ════════════════════════════════════════════════════════
   إرادة FM — Ads Styles v1.0
   Élégant, discret, non-intrusif
════════════════════════════════════════════════════════ */

/* ── TOP BANNER ─────────────────────────────────────────── */
.ad-top-wrap {
  background: linear-gradient(90deg, #0a2540, #071525 50%, #0a2540);
  border-bottom: 2px solid rgba(245,166,35,.25);
  position: relative;
  animation: fadeDown .4s ease;
  z-index: 290;
}
@keyframes fadeDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:none} }

.ad-top-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  position: relative;
}

.ad-top-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}

.ad-top-icon { font-size: 15px; flex-shrink: 0; }

.ad-top-text {
  font-family: 'Cairo', sans-serif;
  font-size: 12.5px;
  color: rgba(255,255,255,.8);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-top-btn {
  background: linear-gradient(90deg, #F5A623, #D4891A);
  color: #0C0C0C;
  border: none;
  border-radius: 20px;
  padding: 4px 13px;
  font-size: 11.5px;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
  transition: opacity .2s, transform .2s;
}
.ad-top-btn:hover { opacity: .9; transform: scale(1.03); }

.ad-close {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  flex-shrink: 0;
  transition: all .2s;
}
.ad-close:hover { background: rgba(255,255,255,.15); color: #fff; }

.ad-badge-sm {
  background: rgba(245,166,35,.15);
  border: 1px solid rgba(245,166,35,.25);
  color: rgba(245,166,35,.8);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: .8px;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── SIDEBAR AD ──────────────────────────────────────────── */
.ad-sidebar-wrap {
  margin-bottom: 20px;
  animation: fadeIn .4s ease;
}
@keyframes fadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }

.ad-widget {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.055);
}
.ad-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid #DEE2E8;
}
.ad-widget-lbl {
  font-size: 9.5px;
  font-weight: 800;
  color: #66788A;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Style 1 — Gradient card */
.ad-card-inner {
  padding: 20px 18px;
  text-align: center;
  cursor: pointer;
  transition: opacity .2s;
  position: relative;
}
.ad-card-inner:hover { opacity: .92; }

.ad-style-1 {
  background: linear-gradient(135deg, #071525, #0f3050);
  color: #fff;
}
.ad-style-2 {
  background: linear-gradient(135deg, #FFF8E8, #fff);
  color: #1C202A;
}
.ad-style-3 {
  background: linear-gradient(135deg, #E8F4FD, #fff);
  color: #1C202A;
}

.ad-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.55);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.ad-style-2 .ad-badge, .ad-style-3 .ad-badge {
  background: rgba(0,0,0,.05);
  border-color: rgba(0,0,0,.1);
  color: rgba(0,0,0,.35);
}

.ad-icon { font-size: 36px; margin-bottom: 12px; }
.ad-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.4;
}
.ad-desc {
  font-size: 12.5px;
  opacity: .75;
  line-height: 1.65;
  margin-bottom: 16px;
}
.ad-cta {
  display: inline-block;
  background: linear-gradient(90deg, #F5A623, #D4891A);
  color: #0C0C0C;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s, box-shadow .2s;
}
.ad-card-inner:hover .ad-cta {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(245,166,35,.4);
}

/* ── INLINE ARTICLE AD ───────────────────────────────────── */
.ad-article-wrap {
  margin: 28px 0;
  animation: fadeIn .4s ease;
}

.ad-inline-inner {
  background: linear-gradient(135deg, #f8faff, #fff8e8);
  border: 1.5px solid #DEE2E8;
  border-radius: 12px;
  padding: 16px 20px 16px 16px;
  position: relative;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.ad-inline-inner:hover {
  border-color: #1B7FC4;
  box-shadow: 0 4px 18px rgba(27,127,196,.1);
}

.ad-inline-content {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ad-inline-icon { font-size: 32px; flex-shrink: 0; }
.ad-inline-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #1A1A2E;
  margin-bottom: 4px;
}
.ad-inline-desc {
  font-size: 12.5px;
  color: #66788A;
  line-height: 1.6;
}
.ad-inline-btn {
  background: linear-gradient(90deg, #1B7FC4, #145F95);
  color: #fff;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  margin-right: auto;
  flex-shrink: 0;
  transition: opacity .2s;
}
.ad-inline-inner:hover .ad-inline-btn { opacity: .9; }

/* ── FOOTER AD ───────────────────────────────────────────── */
.ad-footer-wrap {
  background: linear-gradient(90deg, rgba(245,166,35,.06), rgba(27,127,196,.06));
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 18px 0;
  text-align: center;
}
.ad-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ad-footer-txt {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ad-footer-cta {
  background: linear-gradient(90deg, #F5A623, #D4891A);
  color: #0C0C0C;
  border-radius: 20px;
  padding: 7px 20px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.ad-footer-cta:hover { opacity: .9; transform: translateY(-1px); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .ad-top-text { font-size: 11.5px; }
  .ad-inline-content { flex-wrap: wrap; }
  .ad-inline-btn { width: 100%; text-align: center; }
}

/* ── IMAGE / GIF ADS ─────────────────────────────────────── */
.ad-img-wrap {
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  background: #000;
  transition: transform .2s, box-shadow .2s;
}
.ad-img-wrap:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.ad-img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  display: block;
  transition: opacity .2s;
}
.ad-img-wrap:hover .ad-img { opacity: .92; }
.ad-img-overlay {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  background: linear-gradient(to top, rgba(8,12,18,.85), transparent);
  padding: 14px 14px 10px;
  transform: translateY(100%);
  transition: transform .25s;
}
.ad-img-wrap:hover .ad-img-overlay { transform: translateY(0); }
.ad-img-cta {
  color: #F5A623;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 800;
}

/* Float label over image */
.ad-label-float {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.7);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: .8px;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}

/* Article image ad wrapper */
.ad-article-img {
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: box-shadow .2s;
  border: 1px solid #DEE2E8;
}
.ad-article-img:hover { box-shadow: 0 4px 18px rgba(27,127,196,.12); }
