/* Hooligan — WordPress-specific additions on top of the design CSS (app.css). */

/* Admin bar */
body.admin-bar .navigation { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .navigation { top: 46px; } }
body.admin-bar [data-video-popup] { top: 32px; }

/* Animations disabled in the options (or GSAP missing) */
.no-anim .perspective-animation-content,
.no-anim .navigation-link-perspective,
.no-anim [data-reveal] { opacity: 1 !important; transform: none !important; }

/* Bold words inside the Hooli page texts */
[data-reveal] strong, [data-reveal] b { font-weight: 700; }

/* WordPress screen reader class */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Content coming from the WordPress editor */
.format-content .alignleft { float: left; margin: 0 1.5em 1em 0; }
.format-content .alignright { float: right; margin: 0 0 1em 1.5em; }
.format-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.format-content figure { margin: 2em 0; }
.format-content figure img { border-radius: 2rem; }
.format-content figcaption { opacity: .7; font-size: .875em; margin-top: .5em; }
.format-content iframe { max-width: 100%; }
.wp-block-embed__wrapper iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }

/* Toasts (login) — same placement as the original toaster */
.hooligan-toaster { position: fixed; z-index: 9999; inset: 6.5rem 16px 16px; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hooligan-toast { display: flex; align-items: center; gap: 10px; background: #fff; color: #363636; line-height: 1.3; box-shadow: 0 3px 10px rgba(0, 0, 0, .1), 0 3px 3px rgba(0, 0, 0, .05); max-width: 350px; padding: 8px 10px; border-radius: 8px; font-size: 16px; font-family: var(--font-body), sans-serif; opacity: 0; transform: translate3d(0, -200%, 0) scale(.6); transition: transform .35s cubic-bezier(.21, 1.02, .73, 1), opacity .35s; pointer-events: auto; }
.hooligan-toast.is-in { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.hooligan-toast-icon { width: 20px; height: 20px; border-radius: 50%; flex: 0 0 20px; position: relative; }
.hooligan-toast.is-success .hooligan-toast-icon { background: #61d345; }
.hooligan-toast.is-success .hooligan-toast-icon:after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hooligan-toast.is-error .hooligan-toast-icon { background: #ff4b4b; }
.hooligan-toast.is-error .hooligan-toast-icon:before, .hooligan-toast.is-error .hooligan-toast-icon:after { content: ""; position: absolute; left: 9px; top: 5px; width: 2px; height: 10px; background: #fff; transform: rotate(45deg); }
.hooligan-toast.is-error .hooligan-toast-icon:after { transform: rotate(-45deg); }

/* The hidden attribute must win over display utilities (flex, grid…). */
[hidden] { display: none !important; }

/* Space before the header "Play Now" button (formerly created by the language switcher). */
@media (min-width: 1024px) { .navigation-links > li.nav-cta { padding-inline-start: 2.5rem; } }

/* Menu position option (desktop): "end" = original, "center", "start" (next to the logo). */
@media (min-width: 1024px) {
	.nav-align-center .navigation-links,
	.nav-align-start .navigation-links { flex: 1 1 auto; }
	.nav-align-center .navigation-links > li:first-child { margin-inline-start: auto; }
	.nav-align-center .navigation-links > li.nav-cta,
	.nav-align-start .navigation-links > li.nav-cta { margin-inline-start: auto; }
	.nav-align-start .navigation-links { justify-content: flex-start; padding-inline-start: clamp(2rem, 4vw, 4rem); }
}

/* Hero buttons on the side opposite to the headline (tablet & desktop). */
@media (min-width: 768px) {
	.hero-actions-end .hero-actions { align-self: flex-end; justify-content: flex-end; }
}
@media (min-width: 1024px) {
	/* The wishlist logos use height:100%, which makes browsers reserve a 300px default width.
	   Invisible in the original layout, but visible when the buttons sit on the other side. */
	.hero-actions-end .hero-actions > div:last-child > div { height: auto; }
	.hero-actions-end .hero-actions > div:last-child svg { height: 1.3em; width: auto; }
}
/* Tablet: no free corner for the award badge when the buttons sit on its side. */
@media (min-width: 768px) and (max-width: 1023px) {
	.hero-actions-end .hero-badge { display: none; }
}
