/* ══════════════════════════════════════════════════════════════
   GetAGame Widgets — Shared Banner Styles
   ══════════════════════════════════════════════════════════════ */

/* ── Shared variables ───────────────────────────────────────── */
.gg-promo-banner,
.gg-tall-banner {
  --gg-accent:      #DE3431;
  --gg-text:        #ffffff;
  --gg-cat-color:   #DE3431;
  --gg-title-size:  38px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  font-family: Rajdhani, sans-serif;
  box-sizing: border-box;
  transition: transform .3s ease, box-shadow .3s ease;
}

.gg-promo-banner:hover,
.gg-tall-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
}

/* Dark overlay layer */
.gg-banner-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
  z-index: 1;
}

/* Bottom gradient for readability */
.gg-promo-banner::after,
.gg-tall-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* ── Promo Banner inner ───────────────────────────────────────── */
.gg-promo-banner__inner,
.gg-tall-banner__inner {
  position: relative;
  z-index: 3;
  padding: 24px 28px;
  width: 100%;
}

/* ── Category icon badge ─────────────────────────────────────── */
.gg-promo-banner__cat,
.gg-tall-banner__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,.5);
  border: 1px solid var(--gg-cat-color);
  color: var(--gg-cat-color);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.gg-promo-banner__cat i,
.gg-tall-banner__cat i {
  font-size: 14px;
}

/* ── Badge ───────────────────────────────────────────────────── */
.gg-promo-banner__badge,
.gg-tall-banner__badge {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,.6);
  margin-bottom: 6px;
}

/* ── Subtitle ────────────────────────────────────────────────── */
.gg-tall-banner__subtitle {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

/* ── Title ───────────────────────────────────────────────────── */
.gg-promo-banner__title,
.gg-tall-banner__title {
  font-size: var(--gg-title-size, 38px);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--gg-text);
  margin: 0 0 12px;
}

.gg-promo-banner__title { font-size: 26px; }

/* ── Price ───────────────────────────────────────────────────── */
.gg-promo-banner__price,
.gg-tall-banner__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--gg-accent);
  margin-bottom: 14px;
}
.gg-promo-banner__price .woocommerce-Price-amount,
.gg-tall-banner__price .woocommerce-Price-amount { color: inherit; }

/* ── Buttons ─────────────────────────────────────────────────── */
.gg-promo-banner__btn,
.gg-tall-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: Rajdhani, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: capitalize;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 5px;
  transition: background .2s, color .2s, border-color .2s;
  letter-spacing: .5px;
  margin-top: 4px;
}
.gg-promo-banner__btn:hover,
.gg-tall-banner__btn:hover {
  text-decoration: none;
}

/* Filled */
.gg-btn--filled        { background: #fff; color: #111; border: 2px solid #fff; }
.gg-btn--filled:hover  { background: var(--gg-accent) !important; color: #fff !important; border-color: var(--gg-accent) !important; }

/* Outline */
.gg-btn--outline       { background: transparent; color: #fff; border: 2px solid #fff; }
.gg-btn--outline:hover { background: #fff !important; color: #111 !important; }

/* Accent */
.gg-btn--accent        { background: var(--gg-accent); color: #fff; border: 2px solid var(--gg-accent); }
.gg-btn--accent:hover  { background: #fff !important; color: #111 !important; border-color: #fff !important; }

/* ── Tall banner alignment ───────────────────────────────────── */
.gg-tall-banner--center .gg-tall-banner__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Editor placeholders ─────────────────────────────────────── */
.gg-no-product {
  padding: 28px 24px;
  text-align: center;
  color: #aaa;
  border: 2px dashed #555;
  border-radius: 10px;
  background: #1a1a2e;
  font-family: Rajdhani, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.gg-search-results {
  margin-top: 10px;
  padding: 14px 18px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  font-family: Rajdhani, sans-serif;
  font-size: 13px;
  color: #ccc;
}

.gg-search-results ul {
  margin: 8px 0 0;
  padding-left: 16px;
}

.gg-search-results li {
  margin-bottom: 4px;
  color: #854fff;
}

/* ── Split layout (image left / right, text other side) ─────── */
.gg-promo-split {
  display: flex;
  flex-direction: row;
  align-items: center;
  overflow: hidden;
  font-family: Rajdhani, sans-serif;
  box-sizing: border-box;
  transition: transform .3s ease, box-shadow .3s ease;
}

.gg-promo-split:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
}

.gg-promo-split--reverse {
  flex-direction: row-reverse;
}

.gg-promo-split__image {
  flex: 0 0 38%;
  width: 38%;
  align-self: stretch;
  overflow: hidden;
  position: relative;
}

.gg-promo-split__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.gg-promo-split__no-img {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
}

.gg-promo-split__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
}

.gg-promo-split__content .gg-promo-banner__title {
  font-size: 22px;
  margin-bottom: 10px;
}

.gg-promo-split__content .gg-promo-banner__price {
  margin-bottom: 16px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .gg-promo-banner__inner,
  .gg-tall-banner__inner { padding: 20px 18px; }

  .gg-tall-banner__title {
    font-size: calc(var(--gg-title-size, 38px) * 0.72);
  }

  .gg-promo-split,
  .gg-promo-split--reverse {
    flex-direction: column;
  }

  .gg-promo-split__image {
    flex: 0 0 180px;
    max-width: 100%;
    height: 180px;
  }

  .gg-promo-split__content {
    padding: 20px 18px;
  }
}
