/* =========================================
   NAK — Home banner ad (wide image + text row)
========================================= */

.nak-ad {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 1rem auto 0;
  padding: 0 8px;
}

.nak-ad__glow {
  position: absolute;
  inset: -6% 0;
  z-index: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 100%, rgba(59, 130, 246, 0.3), transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}

.nak-ad__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #f8fafc;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(59, 130, 246, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.light-theme .nak-ad__card {
  background: #fff;
  border-color: rgba(59, 130, 246, 0.3);
  color: #0f172a;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.08) inset,
    0 14px 36px rgba(59, 130, 246, 0.1);
}

.nak-ad__card:hover {
  transform: translateY(-3px);
  border-color: rgba(147, 197, 253, 0.6);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(59, 130, 246, 0.15);
}

/* —— بنر افقی (تمام عرض) —— */
.nak-ad__banner {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 6;
  min-height: 100px;
  max-height: 160px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(15, 23, 42, 0.9));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.light-theme .nak-ad__banner {
  background: linear-gradient(135deg, #e0f2fe, #f8fafc);
}

.nak-ad__banner--cover .nak-ad__banner-img {
  object-fit: cover;
}

.nak-ad__banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px 12px;
  box-sizing: border-box;
}

.nak-ad__banner--cover .nak-ad__banner-img {
  padding: 0;
  object-fit: cover;
}

.nak-ad__banner--empty {
  aspect-ratio: 21 / 6;
  min-height: 88px;
}

.nak-ad__banner-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.25;
  color: inherit;
}

.nak-ad__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.light-theme .nak-ad__badge {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
}

/* —— ردیف متن + دکمه —— */
.nak-ad__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.light-theme .nak-ad__footer {
  border-top-color: rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.8);
}

.nak-ad__body {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.nak-ad__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nak-ad__subtitle {
  margin: 4px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.light-theme .nak-ad__subtitle {
  color: #64748b;
}

.nak-ad__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nak-ad__cta i {
  font-size: 1.15rem;
}

.nak-ad__card:hover .nak-ad__cta {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

@media (max-width: 576px) {
  .nak-ad {
    max-width: 100%;
    padding: 0 4px;
  }

  .nak-ad__banner {
    aspect-ratio: 16 / 7;
    min-height: 88px;
    max-height: 130px;
  }

  .nak-ad__footer {
    flex-wrap: wrap;
    padding: 10px 12px 12px;
    gap: 10px;
  }

  .nak-ad__body {
    flex: 1 1 100%;
  }

  .nak-ad__title {
    font-size: 0.95rem;
    white-space: normal;
  }

  .nak-ad__subtitle {
    white-space: normal;
  }

  .nak-ad__cta {
    width: 100%;
    justify-content: center;
  }
}
