/* Solo Oyun hero: the SoloBet wordmark over a gold "OYUNLAR" with a shine sweeping across the word.
   It replaces the default banner image (see hero.html); the page's own background shows through. */

:root {
  --gold-1: #ffe49a;
  --gold-2: #ffc23c;
  --gold-3: #ff9a1f;
  --gold-4: #ef6812;
}

.hero.brand-hero {
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  box-shadow: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 0 22px;
  container-type: inline-size; /* the title sizes itself to this box, not to the window */
}

/* more specific than the app's `.hero img` (full-size cover) rule */
.hero.brand-hero .brand-hero-logo {
  display: block;
  width: min(68%, 260px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(255, 140, 30, 0.28));
}

/* fine gold rules either side of the title */
.brand-hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
.brand-hero-title::before,
.brand-hero-title::after {
  content: "";
  flex: 1 1 0;
  min-width: 10px;
  max-width: 56px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 196, 64, 0), var(--gold-2));
}
.brand-hero-title::after { background: linear-gradient(270deg, rgba(255, 196, 64, 0), var(--gold-2)); }

/* the glow sits on a wrapper: filters on a background-clip:text element misbehave in some WebViews */
.brand-hero-glow {
  display: inline-block;
  filter: drop-shadow(0 3px 0 rgba(110, 36, 0, 0.6)) drop-shadow(0 6px 16px rgba(255, 150, 40, 0.3));
  animation: brand-glow 3.6s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
}

.brand-hero-word {
  display: inline-block;
  font: 700 clamp(30px, 11vw, 48px) / 1.05 var(--display);
  font-size: clamp(30px, 12.5cqi, 50px); /* about 64% of the hero width, so the rules always fit beside it */
  white-space: nowrap;
  letter-spacing: 0.12em;
  margin-right: -0.12em; /* tracking adds space after the last letter; keep the word centred */
  color: var(--gold-2); /* if background-clip:text is unsupported */
  background:
    linear-gradient(105deg, transparent 22%, rgba(255, 252, 235, 0.45) 38%, #fffdf2 50%, rgba(255, 252, 235, 0.45) 62%, transparent 78%) -160% 0 / 60% 100% no-repeat,
    linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 40%, var(--gold-3) 75%, var(--gold-4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brand-shine 3.6s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
}

/* the light crosses the word, then the word rests before the next pass */
@keyframes brand-shine {
  0%, 18% { background-position: -160% 0, 0 0; }
  62%, 100% { background-position: 260% 0, 0 0; }
}
@keyframes brand-glow {
  0%, 18%, 70%, 100% { filter: drop-shadow(0 3px 0 rgba(110, 36, 0, 0.6)) drop-shadow(0 6px 16px rgba(255, 150, 40, 0.3)); }
  40% { filter: drop-shadow(0 3px 0 rgba(110, 36, 0, 0.6)) drop-shadow(0 4px 26px rgba(255, 200, 90, 0.8)); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-hero-word,
  .brand-hero-glow { animation: none; }
}

/* SoloSpin card at the top of the list (Solo Oyun only; it opens solobet.bot/games/solospin/) */
.brand-promo {
  position: relative;
  display: block;
  margin: 0 0 12px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 190, 90, 0.45);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 22px rgba(255, 130, 0, 0.25);
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.brand-promo img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.brand-promo-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 26px 110px 12px 14px;
  background: linear-gradient(180deg, rgba(20, 8, 1, 0), rgba(20, 8, 1, 0.92) 55%);
}
.brand-promo-info b { font: 800 20px/1.1 var(--display, system-ui); color: var(--gold-1); }
.brand-promo-info small { font-size: 13px; color: #f0d6b0; }
.brand-promo-tag {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(180deg, #ffb23f, #e05a00);
  font: 900 11px/1.4 system-ui; letter-spacing: 0.1em;
}
.brand-promo-play {
  position: absolute; right: 12px; bottom: 14px;
  padding: 9px 16px; border-radius: 999px;
  background: linear-gradient(180deg, #ffb23f, #d45f00);
  border: 1px solid #ffd27a;
  font: 900 14px/1 system-ui; letter-spacing: 0.08em;
  box-shadow: 0 0 16px rgba(255, 130, 0, 0.5);
}
.brand-promo:active { transform: scale(0.985); }
