/* pe-mostbet.com — page-specific components on top of klx-theme.css (uses its tokens). */

/* Hero: offer as H2 + description, CTA with fading border */
.klx-page .klx-hero-panel h2.klx-hero-eyebrow { margin: 0 0 10px; }
.klx-page .klx-hero-text { margin: 0 0 20px; color: var(--klx-text-muted); font-size: 15px; }
.klx-page .klx-btn-ring { position: relative; isolation: isolate; }
.klx-page .klx-btn-ring::after {
  content: ""; position: absolute; inset: -5px; z-index: -1; pointer-events: none;
  border: 2px solid var(--klx-warning); border-radius: var(--klx-radius-pill);
  animation: klx-ring-fade 2.4s ease-in-out infinite;
}
@keyframes klx-ring-fade {
  0%, 100% { opacity: 0; transform: scale(.98); }
  50% { opacity: .9; transform: scale(1.01); }
}

/* Popular slots: hard blur + Play / Demo */
.klx-page .klx-slot-actions {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transition: opacity var(--klx-transition);
}
.klx-page .klx-slot:hover .klx-slot-media img,
.klx-page .klx-slot:focus-within .klx-slot-media img { filter: blur(9px) brightness(.6); transform: scale(1.08); }
.klx-page .klx-slot:hover .klx-slot-actions,
.klx-page .klx-slot:focus-within .klx-slot-actions { opacity: 1; }
.klx-page .klx-slot-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 112px; min-height: 38px; padding: 7px 16px;
  border-radius: var(--klx-radius-pill); font-size: 13px; font-weight: 700; text-transform: uppercase; color: #fff;
}
.klx-page .klx-slot-btn--play { background: var(--klx-accent); box-shadow: var(--klx-shadow-cta); }
.klx-page .klx-slot-btn--play:hover { background: var(--klx-accent-hover); color: #fff; }
.klx-page .klx-slot-btn--play svg { width: 12px; height: 12px; fill: currentColor; }
.klx-page .klx-slot-btn--demo { border: 1px solid rgba(255, 255, 255, .85); background: rgba(6, 36, 72, .45); }
.klx-page .klx-slot-btn--demo:hover { background: var(--klx-surface); color: #fff; }
@media (hover: none) {
  .klx-page .klx-slot-actions { opacity: 1; flex-direction: row; align-items: flex-end; gap: 6px; padding: 8px; background: linear-gradient(to top, rgba(6, 36, 72, .85), rgba(6, 36, 72, 0) 60%); }
  .klx-page .klx-slot:hover .klx-slot-media img, .klx-page .klx-slot:focus-within .klx-slot-media img { filter: none; transform: none; }
  .klx-page .klx-slot-btn { min-width: 0; min-height: 32px; padding: 5px 10px; font-size: 11px; }
}

/* Bonus cards: 2 × 2 grid, image left / text right */
.klx-page .klx-bonus-grid--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.klx-page .klx-bonus-grid--duo .klx-bonus-card { display: grid; grid-template-columns: 40% 1fr; gap: 16px; align-items: center; padding: 12px; }
.klx-page .klx-bonus-grid--duo .klx-card-media { aspect-ratio: 1 / 1; margin: 0; }

/* Last updated: panel with label above */
.klx-page .klx-stamp { display: inline-flex; flex-direction: column; gap: 2px; margin: 0; padding: 14px 22px; border-radius: var(--klx-radius); background: var(--klx-surface-raised); border: 1px solid var(--klx-border); }
.klx-page .klx-stamp-label { font-size: var(--klx-font-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--klx-text-muted); }
.klx-page .klx-stamp-date { font-size: 17px; font-weight: 700; color: #fff; }

/* Footer: right aligned, contact line */
.klx-page .klx-footer--right .klx-footer-top { grid-template-columns: 1fr 1fr 1.2fr; text-align: right; }
.klx-page .klx-footer--right .klx-footer-brand .klx-logo { margin-left: auto; display: flex; width: max-content; }
.klx-page .klx-footer--right .klx-footer-warning, .klx-page .klx-footer--right .klx-footer-copy { justify-content: flex-end; text-align: right; }
.klx-page .klx-footer-contact { margin: 0; color: var(--klx-text-muted); font-size: 14px; line-height: 1.9; }
.klx-page .klx-footer-contact strong { color: #fff; }

/* FAQ: padding lives on the content, so the JS scrollHeight measure covers the full answer */
.klx-page .klx-faq-item.is-open .klx-faq-answer { padding-top: 0; padding-bottom: 0; }
.klx-page .klx-faq-answer > :first-child { padding-top: 16px; }
.klx-page .klx-faq-answer > :last-child { padding-bottom: 16px; }

/* Hero: offer panel nudged in from the right edge, still right of center */
@media (min-width: 768px) {
  .klx-page .klx-hero--right .klx-hero-panel { margin-right: clamp(24px, 9%, 120px); }
}

@media (max-width: 991px) {
  .klx-page .klx-bonus-grid--duo { grid-template-columns: 1fr; }
  .klx-page .klx-footer--right .klx-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .klx-page .klx-bonus-grid--duo .klx-bonus-card { grid-template-columns: 1fr; }
  .klx-page .klx-bonus-grid--duo .klx-card-media { aspect-ratio: 16 / 9; }
  .klx-page .klx-footer--right .klx-footer-top { grid-template-columns: 1fr; }
  .klx-page .klx-footer-contact a { overflow-wrap: anywhere; }
}
/* Mobile hero: banner fills the block, offer panel overlays it as one unit */
@media (max-width: 767px) {
  .klx-page .klx-hero {
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 460px; padding: 14px;
  }
  .klx-page .klx-hero > img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    aspect-ratio: auto; object-fit: cover; object-position: 6% center;
  }
  .klx-page .klx-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, rgba(6, 36, 72, 0) 30%, rgba(6, 36, 72, .55) 100%);
  }
  .klx-page .klx-hero-panel {
    z-index: 1; max-width: none; padding: 18px 16px;
    border: 1px solid var(--klx-border); border-radius: var(--klx-radius-lg);
    background: rgba(6, 36, 72, .80); box-shadow: var(--klx-shadow-card);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  }
  .klx-page .klx-hero-panel h2.klx-hero-eyebrow { font-size: 22px; }
  .klx-page .klx-hero-text { font-size: 14px; margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .klx-page .klx-btn-ring::after { opacity: .8; }
}
