/* ─────────────────────────────────────────
   ads-banner.css — overlay ad component
   ───────────────────────────────────────── */

/* ── Overlay ── */
.ads-banner {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.ads-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Backdrop ── */
.ads-banner__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

/* ── Card ── */
.ads-banner__card {
  position: relative;
  z-index: 1;
  width: min(460px, 92vw);
  max-height: 90vh;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.ads-banner.is-visible .ads-banner__card {
  transform: translateY(0) scale(1);
}

/* ── Background media ── */
.ads-banner__bg-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}

.ads-banner__bg-wrap img,
.ads-banner__bg-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


@media (max-width: 520px) {
  .ads-banner__bg-wrap img,
  .ads-banner__bg-wrap video {
    height: 100%;
  }
}


/* ── Content overlay ── */
.ads-banner__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

/* ── Close button ── */
.ads-banner__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
  line-height: 1;
}

.ads-banner__close:hover {
  background: rgba(0, 0, 0, 0.82);
}

/* ─────────────────────────────────────────
   Content elements
   ───────────────────────────────────────── */

/* ── Top zone: dark gradient + headline + badge ── */
.ads-banner__top {
  position: relative;
  padding: 20px 0px 44px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.22) 70%,
    transparent 100%
  );
}

.ads-banner__headline {
  width: 100%;
}

.ads-banner__headline h2 {
  color: #fff;
  font-size: clamp(2rem, 11vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.7);
  margin: 0;
  padding: 0 10px;
}

.ads-banner__badge {
  position: absolute;
  top: 40px;
  right: 0;
  display: inline-block;
  background: linear-gradient(to right, #fe5522, #ea352e);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 14px 5px 10px;
  white-space: nowrap;
  line-height: 1.4;
  /* vát góc dưới-trái ~50° */
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 40px);
}

/* ── Bottom zone: gold bar + sub + cta with dark gradient ── */
.ads-banner__bottom {
  display: flex;
  flex-direction: column;
  padding: 20px 0 15px;
  /*background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.42) 60%,
    transparent 100%
  );*/
}

/* Gold bar: full bleed edge-to-edge */
.ads-banner__gold-bar {
  /*visibility: hidden;*/
  font-family: auto;
  background: linear-gradient(to right, #c2985e, #e5c57c, #c2985e);
  color: #1b0f00;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 10px;
  text-align: center;
  border-radius: 0;
  margin-top: 8px;
  margin-right: 10%;
}
.ads-banner__gold-bar span{
  font-size: 1.2rem;
}

@media (max-width: 520px) {
  .ads-banner__gold-bar{
    font-size: 1rem;
  }
  .ads-banner__gold-bar span{
    font-size: 0.88rem;
  }
  .ads-banner__badge{
    font-size: 0.88rem;
  }
}
.ads-banner__sub {
  /*visibility: hidden;*/
  font-family: auto;
  color: #fce4a4;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  padding: 0 10px;
  margin: 0;
  letter-spacing: 1px;
}

.ads-banner__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  /* red gradient bg + gold gradient border */
  background:
    linear-gradient(135deg, #580a0d, #be1917) padding-box,
    linear-gradient(135deg, #fedc7d, #fffbf4) border-box;
  border: 2px solid transparent;
  border-radius: 6px;
  color: #ffefc3;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 18px 20px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(192, 40, 42, 0.5);
  transition: filter 0.2s, transform 0.2s;
  margin: 0 20px;
}

.ads-banner__cta:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  color: #fff4d7;
}

.ads-banner__later {
  display: block;
  font-family: auto;
  width: 50%;
  margin: 5px auto 5px;
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--gold-lt, #e8cb8a), var(--gold, #c9a55a));
  color: #1b0f00;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: filter 0.2s;
}

.ads-banner__later:hover {
  filter: brightness(1.1);
}

@media (max-width: 1200px) {
  .ads-banner__cta{
    margin: 0 5px;
  }
}
@media (max-width: 520px) {
  .ads-banner__cta{
    padding: 5px 20px;
    margin: 5px 20px;
  }
}
/* ─────────────────────────────────────────
   Mobile
   ───────────────────────────────────────── */

/* ── Mobile: full screen (option)
@media (max-width: 520px) {
  .ads-banner__card {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }

  .ads-banner__bg-wrap {
    aspect-ratio: unset;
    position: absolute;
    inset: 0;
    height: 100%;
  }
}
── */

/* ── Mobile: compact ── */
@media (max-width: 520px) {
  .ads-banner__card {
    width: 92vw;
    max-height: 88dvh;
    border-radius: 12px;
  }

  .ads-banner__bg-wrap {
    aspect-ratio: 3 / 4;
  }
}
