/* =========================================
   NAK — Chat page ad slots (premium)
========================================= */

.nak-ad-chat-side {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(96, 165, 250, 0.15);
}

.light-theme .nak-ad-chat-side {
  border-top-color: rgba(59, 130, 246, 0.12);
}

.nak-ad-chat-side__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(30, 58, 138, 0.35), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 30px rgba(59, 130, 246, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.light-theme .nak-ad-chat-side__card {
  background: linear-gradient(145deg, rgba(219, 234, 254, 0.6), rgba(255, 255, 255, 0.95));
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--text-light);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
}

.dark-theme .nak-ad-chat-side__card {
  color: var(--text-dark);
}

a.nak-ad-chat-side__card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2), 0 0 40px rgba(59, 130, 246, 0.12);
}

/* بنر افقی بالا */
.nak-ad-chat-side__banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 72px;
  max-height: 100px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.light-theme .nak-ad-chat-side__banner {
  background: rgba(241, 245, 249, 0.95);
}

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

.nak-ad-chat-side__banner--cover .nak-ad-chat-side__banner-img {
  padding: 0;
  object-fit: cover;
}

.nak-ad-chat-side__label {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.light-theme .nak-ad-chat-side__label {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.92);
}

.nak-ad-chat-side__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.light-theme .nak-ad-chat-side__footer {
  border-top-color: rgba(15, 23, 42, 0.08);
}

.nak-ad-chat-side__body {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.nak-ad-chat-side__title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nak-ad-chat-side__sub {
  margin: 3px 0 0;
  font-size: 0.65rem;
  opacity: 0.75;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nak-ad-chat-side__cta {
  flex-shrink: 0;
  padding: 5px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  white-space: nowrap;
}

/* —— Header strip —— */

.chat-header-start {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.nak-ad-chat-nav {
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(320px, calc(100% - 140px));
}

.nak-ad-chat-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  width: 100%;
  padding: 6px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(15, 23, 42, 0.75));
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.light-theme .nak-ad-chat-nav__link {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.7), rgba(255, 255, 255, 0.95));
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--text-light);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

.dark-theme .nak-ad-chat-nav__link {
  color: var(--text-dark);
}

a.nak-ad-chat-nav__link:hover {
  transform: translateY(-1px);
  border-color: rgba(147, 197, 253, 0.65);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.nak-ad-chat-nav__thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.light-theme .nak-ad-chat-nav__thumb {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
}

.nak-ad-chat-nav__thumb img {
  max-width: 92%;
  max-height: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nak-ad-chat-nav__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
  text-align: right;
}

.nak-ad-chat-nav__badge {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fbbf24;
}

.nak-ad-chat-nav__title {
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nak-ad-chat-nav__sub {
  font-size: 0.65rem;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nak-ad-chat-nav__cta {
  flex-shrink: 0;
  padding: 5px 12px;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 3px 12px rgba(59, 130, 246, 0.4);
  white-space: nowrap;
}

.nak-ad-chat-nav__arrow {
  flex-shrink: 0;
  font-size: 1.1rem;
  opacity: 0.5;
  transform: rotate(180deg);
}

@media (max-width: 991px) {
  .nak-ad-chat-nav {
    max-width: min(240px, calc(100% - 110px));
  }

  .nak-ad-chat-nav__sub {
    display: none;
  }

  .nak-ad-chat-nav__link {
    min-height: 40px;
    padding: 5px 10px;
  }

  .nak-ad-chat-nav__thumb {
    width: 44px;
    height: 44px;
  }

  .nak-ad-chat-nav__title {
    font-size: 0.76rem;
  }
}

@media (max-width: 576px) {
  .chat-header-start {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .nak-ad-chat-nav {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
