/*
 Theme Name:   Astra Child
 Theme URI:    https://example.com/astra-child
 Description:  Astra Child Theme
 Author:       Astra Studio
 Template:     astra
 Version:      2.0.0
 Text Domain:  astra-child
*/


/* =========================
   Fonts
========================= */
/* Font is enqueued in functions.php (avoid CSS @import). */

:root{
  --color-primary: #FF6F61;
  --color-secondary: #c72482;
  --color-accent: #c72482;
  --color-surface: #001220;
  --qp-btn-bg: #ea4670;
  --qp-btn-shadow: 0 8px 24px rgba(234, 70, 112, 0.32);
  --qp-btn-shadow-hover: 0 14px 36px rgba(234, 70, 112, 0.5);
  --qp-wave-h: clamp(72px, 9vw, 118px);
  --qp-wave-overlap: calc(var(--qp-wave-h) * 0.54);
}

html,
body{
  font-family: "Roboto", sans-serif;
}

.site-footer{
  padding-top: 34px;
}

#ast-scroll-top{
  background-color: #ff6f61 !important;
}

button,
input,
select,
textarea{
  font-family: inherit;
}

/* Per-page: hide entire header (site-header) */
.qp-hide-site-header .site-header{
  display: none !important;
}

/* Hide Astra page title when Magicwin UK v01 block is on the page */
.qp-has-magicwin-uk-v01 .entry-header,
.qp-has-magicwin-uk-v01 .ast-single-entry-banner{
  display: none !important;
}

/* Magicwin page: full-width site content (no ast-container constraint) */
.qp-has-magicwin-uk-v01 #content.site-content,
.qp-has-magicwin-uk-v01 .site-content{
  padding-left: 0;
  padding-right: 0;
}

.qp-has-magicwin-uk-v01 #content.site-content > .ast-container,
.qp-has-magicwin-uk-v01 .site-content > .ast-container{
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

.qp-has-magicwin-uk-v01 #primary,
.qp-has-magicwin-uk-v01 .content-area,
.qp-has-magicwin-uk-v01 .site-main,
.qp-has-magicwin-uk-v01 .entry-content{
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.qp-has-magicwin-uk-v01 .wp-block-acf-magicwin-uk-v01,
.qp-has-magicwin-uk-v01 .magicwin-uk-v01{
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Hide Astra page title when Potter SL block is on the page */
.qp-has-potter-sl .entry-header,
.qp-has-potter-sl .ast-single-entry-banner{
  display: none !important;
}

/* Potter SL page: full-width site content (no ast-container constraint) */
.qp-has-potter-sl #content.site-content,
.qp-has-potter-sl .site-content{
  padding-left: 0;
  padding-right: 0;
}

.qp-has-potter-sl #content.site-content > .ast-container,
.qp-has-potter-sl .site-content > .ast-container{
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

.qp-has-potter-sl #primary,
.qp-has-potter-sl .content-area,
.qp-has-potter-sl .site-main,
.qp-has-potter-sl .entry-content{
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.qp-has-potter-sl .wp-block-acf-potter-sl,
.qp-has-potter-sl .potter-sl{
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Hide Astra page title when Pirate Spins block is on the page */
.qp-has-piratespins .entry-header,
.qp-has-piratespins .ast-single-entry-banner{
  display: none !important;
}

/* Pirate Spins page: full-width site content (no ast-container constraint) */
.qp-has-piratespins #content.site-content,
.qp-has-piratespins .site-content{
  padding-left: 0;
  padding-right: 0;
}

.qp-has-piratespins #content.site-content > .ast-container,
.qp-has-piratespins .site-content > .ast-container{
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

.qp-has-piratespins #primary,
.qp-has-piratespins .content-area,
.qp-has-piratespins .site-main,
.qp-has-piratespins .entry-content{
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.qp-has-piratespins .wp-block-acf-piratespins,
.qp-has-piratespins .piratespins{
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Force Gutenberg full-width sections to break out of Astra containers */
.entry-content > .alignfull,
.wp-site-blocks > .alignfull,
.alignfull{
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

@media (min-width: 922px) {
    .site-content .ast-container {
        display: block;
    }
}
@media (min-width: 1200px) {
    .ast-plain-container.ast-no-sidebar #primary {
        margin-top: 0px;
        margin-bottom: 0px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-primary, #FF6F61);
}

h2 {
    font-family: "Oswald", "Arial Narrow", sans-serif;
}

a:focus {
  outline: none;
}

/* =========================
   Content pages (Terms, Privacy, etc.)
========================= */
.qp-content-page{
  background: var(--color-surface, #001220);
  color: rgba(255, 255, 255, 0.86);
}

.qp-content-page #page,
.qp-content-page #content,
.qp-content-page .site-content,
.qp-content-page .ast-container,
.qp-content-page #primary,
.qp-content-page .content-area,
.qp-content-page .site-main,
.qp-content-page .ast-article-single,
.qp-content-page .ast-separate-container .ast-article-single,
.qp-content-page .ast-plain-container .site-content,
.qp-content-page .ast-page-builder-template .site-content{
  background: var(--color-surface, #001220) !important;
  background-color: var(--color-surface, #001220) !important;
}

.qp-content-page .ast-separate-container .ast-article-single,
.qp-content-page .ast-separate-container .ast-article-post{
  border: 0;
  box-shadow: none;
  padding: clamp(40px, 6vw, 72px) clamp(18px, 4vw, 28px);
}

.qp-content-page .entry-header{
  margin-top: clamp(28px, 5vw, 56px);
  margin-bottom: clamp(24px, 4vw, 40px);
  padding-top: clamp(12px, 2vw, 24px);
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 111, 97, 0.22);
}

.qp-content-page .ast-single-entry-banner{
  margin-top: clamp(28px, 5vw, 56px);
  padding-top: clamp(12px, 2vw, 24px);
}

.qp-content-page .entry-header .entry-title,
.qp-content-page .ast-archive-description .ast-archive-title,
.qp-content-page h1.entry-title{
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff !important;
}

.qp-content-page .entry-content{
  max-width: 860px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.7;
}

.qp-content-page .entry-content :where(h1, h2, h3, h4, h5, h6){
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff !important;
  line-height: 1.2;
  margin: 1.6em 0 0.55em;
}

.qp-content-page .entry-content h2{
  font-size: clamp(26px, 3vw, 36px);
  color: var(--color-primary, #FF6F61) !important;
}

.qp-content-page .entry-content h3{
  font-size: clamp(20px, 2.4vw, 26px);
  color: #fff !important;
}

.qp-content-page .entry-content :where(p, li, td, th, dd, dt){
  color: rgba(255, 255, 255, 0.86);
}

.qp-content-page .entry-content a{
  color: var(--color-primary, #FF6F61);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.qp-content-page .entry-content a:hover,
.qp-content-page .entry-content a:focus-visible{
  color: var(--color-secondary, #c72482);
}

.qp-content-page .entry-content :where(ul, ol){
  padding-left: 1.25em;
}

.qp-content-page .entry-content li + li{
  margin-top: 0.35em;
}

.qp-content-page .entry-content ul > li::marker{
  color: var(--color-primary, #FF6F61);
}

.qp-content-page .entry-content ol > li::marker{
  color: var(--color-secondary, #c72482);
  font-weight: 700;
}

.qp-content-page .entry-content blockquote{
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--color-primary, #FF6F61);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
}

.qp-content-page .entry-content hr{
  border: 0;
  height: 1px;
  margin: 2em 0;
  background: linear-gradient(90deg, var(--color-primary, #FF6F61) 0%, var(--color-secondary, #c72482) 45%, transparent 100%);
}

.qp-content-page .entry-content :where(table){
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.qp-content-page .entry-content :where(th, td){
  padding: 12px 14px;
  border: 1px solid rgba(255, 111, 97, 0.18);
  text-align: left;
}

.qp-content-page .entry-content th{
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qp-content-page .entry-content strong,
.qp-content-page .entry-content b{
  color: #fff;
}

.qp-content-page .ast-breadcrumbs-wrapper,
.qp-content-page .ast-breadcrumbs,
.qp-content-page .ast-breadcrumbs a,
.qp-content-page .ast-breadcrumbs .trail-end{
  color: rgba(255, 255, 255, 0.7);
}

.qp-content-page .ast-breadcrumbs a:hover{
  color: var(--color-primary, #FF6F61);
}

@media (max-width: 767px){
  .qp-content-page .ast-separate-container .ast-article-single,
  .qp-content-page .ast-separate-container .ast-article-post{
    padding: 28px 16px 40px;
  }
}

/* =========================
   Shared CTA buttons — same #ea4670 + hover animation
========================= */
form.fluent_form_1 .ff-btn-submit:not(.ff_btn_no_style){
  background-color: var(--qp-btn-bg, #ea4670) !important;
  background-image: none !important;
}

form.fluent_form_1 .ff-btn-submit:not(.ff_btn_no_style):hover,
form.fluent_form_1 .ff-btn-submit:not(.ff_btn_no_style):focus-visible{
  background-color: var(--qp-btn-bg, #ea4670) !important;
  background-image: none !important;
}

.qp-hero__btn:not(.qp-hero__btn--ghost),
.qp-split-hero__btn,
.qp-fixed-bg-cta__btn,
.qp-game-card__btn,
.qp-cftc__form :is(button[type="submit"], input[type="submit"], .ff-btn, .ff-btn-submit),
.qp-cftc__form .fluentform :is(button[type="submit"], input[type="submit"], .ff-btn, .ff-btn-submit),
.qp-newsletter__submit,
.studiocore-banner-btn{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--qp-btn-shadow);
  transition:
    box-shadow 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease;
}

.qp-hero__btn:not(.qp-hero__btn--ghost)::before,
.qp-split-hero__btn::before,
.qp-fixed-bg-cta__btn::before,
.qp-game-card__btn::before,
.qp-cftc__form :is(button[type="submit"], input[type="submit"], .ff-btn, .ff-btn-submit)::before,
.qp-cftc__form .fluentform :is(button[type="submit"], input[type="submit"], .ff-btn, .ff-btn-submit)::before,
.qp-newsletter__submit::before,
.studiocore-banner-btn::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 62%,
    transparent 100%
  );
  transform: translateX(-120%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.qp-hero__btn:not(.qp-hero__btn--ghost):hover,
.qp-hero__btn:not(.qp-hero__btn--ghost):focus-visible,
.qp-split-hero__btn:hover,
.qp-split-hero__btn:focus-visible,
.qp-fixed-bg-cta__btn:hover,
.qp-fixed-bg-cta__btn:focus-visible,
.qp-game-card__btn:hover,
.qp-game-card__btn:focus-visible,
.qp-cftc__form :is(button[type="submit"], input[type="submit"], .ff-btn, .ff-btn-submit):hover,
.qp-cftc__form :is(button[type="submit"], input[type="submit"], .ff-btn, .ff-btn-submit):focus-visible,
.qp-cftc__form .fluentform :is(button[type="submit"], input[type="submit"], .ff-btn, .ff-btn-submit):hover,
.qp-cftc__form .fluentform :is(button[type="submit"], input[type="submit"], .ff-btn, .ff-btn-submit):focus-visible,
.qp-newsletter__submit:hover,
.qp-newsletter__submit:focus-visible,
.studiocore-banner-btn:hover,
.studiocore-banner-btn:focus-visible{
  background-color: var(--qp-btn-bg, #ea4670) !important;
  background-image: none !important;
  filter: none;
  box-shadow: var(--qp-btn-shadow-hover);
}

.qp-hero__btn:not(.qp-hero__btn--ghost):hover::before,
.qp-hero__btn:not(.qp-hero__btn--ghost):focus-visible::before,
.qp-split-hero__btn:hover::before,
.qp-split-hero__btn:focus-visible::before,
.qp-fixed-bg-cta__btn:hover::before,
.qp-fixed-bg-cta__btn:focus-visible::before,
.qp-game-card__btn:hover::before,
.qp-game-card__btn:focus-visible::before,
.qp-cftc__form :is(button[type="submit"], input[type="submit"], .ff-btn, .ff-btn-submit):hover::before,
.qp-cftc__form :is(button[type="submit"], input[type="submit"], .ff-btn, .ff-btn-submit):focus-visible::before,
.qp-cftc__form .fluentform :is(button[type="submit"], input[type="submit"], .ff-btn, .ff-btn-submit):hover::before,
.qp-cftc__form .fluentform :is(button[type="submit"], input[type="submit"], .ff-btn, .ff-btn-submit):focus-visible::before,
.qp-newsletter__submit:hover::before,
.qp-newsletter__submit:focus-visible::before,
.studiocore-banner-btn:hover::before,
.studiocore-banner-btn:focus-visible::before{
  transform: translateX(120%);
}

.qp-hero__btn:not(.qp-hero__btn--ghost):active,
.qp-split-hero__btn:active,
.qp-fixed-bg-cta__btn:active,
.qp-game-card__btn:active,
.qp-cftc__form :is(button[type="submit"], input[type="submit"], .ff-btn, .ff-btn-submit):active,
.qp-cftc__form .fluentform :is(button[type="submit"], input[type="submit"], .ff-btn, .ff-btn-submit):active,
.qp-newsletter__submit:active,
.studiocore-banner-btn:active{
  box-shadow: var(--qp-btn-shadow);
  transition-duration: 0.12s;
}

.style-gradient{
  display: inline-block;
  background-color: transparent;
  background-image: linear-gradient(135deg, #FF6F61 0%, #c72482 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* =========================
   Wave section separators (SVG)
   Each section paints its own wave at the bottom; valleys show the next section.
========================= */
.qp-split-hero,
.qp-games-grid,
.qp-hiwd,
.qp-faq-sc,
.qp-fixed-bg-cta,
.qp-newsletter,
.qp-cftc,
.qp-hero{
  position: relative;
  overflow: visible;
}

.qp-split-hero,
.qp-games-grid,
.qp-hiwd,
.qp-faq-sc,
.qp-fixed-bg-cta,
.qp-newsletter,
.qp-cftc{
  padding-top: calc(var(--qp-section-pt, 80px) + var(--qp-wave-overlap)) !important;
}

.qp-split-hero{ --qp-section-pt: 90px; }
.qp-fixed-bg-cta{ --qp-section-pt: 90px; }

.qp-section-wave{
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--qp-wave-h);
  z-index: 5;
  pointer-events: none;
  line-height: 0;
  background: transparent;
  overflow: visible;
}

.qp-section-wave--bottom{
  bottom: 0;
  transform: translateY(50%);
}

.qp-section-wave--top{
  top: 0;
  transform: translateY(-50%) scaleY(-1);
}

.qp-section-wave svg{
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: visible;
}

/* Layered mixing ribbons */
.qp-section-wave__far{
  fill: color-mix(in srgb, var(--color-surface, #001220) 78%, var(--color-secondary, #c72482) 22%);
  opacity: 0.44;
}

.qp-section-wave__back{
  fill: color-mix(in srgb, var(--color-surface, #001220) 64%, var(--color-secondary, #c72482) 36%);
  opacity: 0.54;
}

.qp-section-wave__mid{
  fill: color-mix(in srgb, var(--color-surface, #001220) 48%, var(--color-primary, #FF6F61) 52%);
  opacity: 0.64;
}

.qp-section-wave__front{
  fill: color-mix(in srgb, var(--color-surface, #001220) 30%, var(--color-primary, #FF6F61) 70%);
  opacity: 0.74;
}

.qp-section-wave__base{
  fill: color-mix(in srgb, var(--color-surface, #001220) 64%, var(--color-secondary, #c72482) 36%);
  opacity: 0.42;
}

@supports not (color: color-mix(in srgb, black 50%, white 50%)){
  .qp-section-wave__far{
    fill: rgba(199, 36, 130, 0.22);
  }

  .qp-section-wave__back{
    fill: rgba(199, 36, 130, 0.32);
  }

  .qp-section-wave__mid{
    fill: rgba(255, 111, 97, 0.38);
  }

  .qp-section-wave__front{
    fill: rgba(255, 111, 97, 0.48);
  }

  .qp-section-wave__base{
    fill: rgba(199, 36, 130, 0.28);
  }
}

/* Keep section content above overlays and waves */
.qp-hero__inner,
.qp-split-hero__inner,
.qp-games-grid .ast-container,
.qp-hiwd__inner,
.qp-faq-sc .ast-container,
.qp-fixed-bg-cta .ast-container,
.qp-newsletter__inner,
.qp-cftc__inner{
  position: relative;
  z-index: 2;
}

/* =========================
   Section title entrance — letter by letter
========================= */
.qp-title-split{
  opacity: 1;
}

.qp-title-split .qp-title-char{
  display: inline-block;
  opacity: 0;
  transform: translate3d(-0.4em, 0, 0);
  will-change: opacity, transform;
}

.qp-title-split.qp-title-visible .qp-title-char{
  animation: qp-section-title-char 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--char-i, 0) * 0.038s);
}

.qp-title-split .qp-title-char--space{
  min-width: 0.28em;
}

@keyframes qp-section-title-char{
  from{
    opacity: 0;
    transform: translate3d(-0.4em, 0, 0);
  }
  to{
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce){
  .qp-title-split .qp-title-char{
    opacity: 1;
    transform: none;
    will-change: auto;
    animation: none !important;
  }
}
