/* PlayZone Arcade — main theme styles */
:root {
	--pza-ink: #1F2140;
	--pza-muted: #6B6E8E;
	--pza-bg: #FFF8EC;
	--pza-surface: #FFFFFF;
	--pza-line: #F0E6D6;
	--pza-accent: #FF5A5F;
	--pza-sun: #FFB627;
	--pza-sky: #3EC1F3;
	--pza-grape: #8B5CF6;
	--pza-header-bg: #FFFFFF;
	--pza-heading: "Fredoka", "Baloo 2", system-ui, sans-serif;
	--pza-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	--pza-shadow: 0 6px 0 rgba(31, 33, 64, .08), 0 12px 28px rgba(31, 33, 64, .08);
	--pz-heading: var(--pza-heading);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--pza-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--pza-ink);
	background-color: var(--pza-bg);
	background-image: radial-gradient(rgba(139, 92, 246, .07) 1.5px, transparent 1.6px);
	background-size: 22px 22px;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
a { color: var(--pza-grape); }
h1, h2, h3, h4, h5, h6 { font-family: var(--pza-heading); font-weight: 700; line-height: 1.2; color: var(--pza-ink); }
:focus-visible { outline: 3px solid var(--pza-sky); outline-offset: 2px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: #fff; padding: 10px 16px; border-radius: 10px; }

.pza-container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.pza-main { padding-top: 28px; padding-bottom: 56px; }
.pza-elementor-page { min-height: 50vh; padding-bottom: 24px; }
/* Shortcode-built pages: hero breaks out of the container to full width */
.pza-fw-content { padding-top: 0; }
.pza-fw-content > .pz-hero:first-child, .pza-fw-content > p:first-child + .pz-hero { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.pza-fw-content > p:empty { display: none; }

/* Buttons */
.pza-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 999px; font-family: var(--pza-heading); font-weight: 700; font-size: .98rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap; }
.pza-btn--cta { background: var(--pza-accent); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--pza-accent) 70%, #000); }
.pza-btn--cta:hover { transform: translateY(-2px); color: #fff; }
.pza-btn--ghost { background: #fff; color: var(--pza-ink); box-shadow: var(--pza-shadow); }

/* ---------- Header ---------- */
.pza-header { position: sticky; top: 0; z-index: 100; background: var(--pza-header-bg); box-shadow: 0 4px 0 rgba(31, 33, 64, .05); }
.admin-bar .pza-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .pza-header { top: 0; } }
.pza-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: linear-gradient(90deg, #FF5A5F 0 20%, #FFB627 20% 40%, #2ECC71 40% 60%, #3EC1F3 60% 80%, #8B5CF6 80%); }
.pza-header__inner { max-width: 1240px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 20px; }

.pza-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pza-ink); }
.pza-logo__badge { width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.4rem; border-radius: 14px; background: var(--pza-sun); box-shadow: 0 4px 0 #D98F00; transform: rotate(-6deg); }
.pza-logo__text { font-family: var(--pza-heading); font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em; }
.custom-logo { max-height: 52px; width: auto; display: block; }

.pza-nav { flex: 1; display: flex; align-items: center; gap: 18px; min-width: 0; }
.pza-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.pza-menu > li { position: relative; }
.pza-menu a { display: block; padding: 9px 14px; border-radius: 999px; font-weight: 800; font-size: .95rem; text-decoration: none; color: var(--pza-ink); transition: background .15s ease; }
.pza-menu > li > a:hover, .pza-menu > .current-menu-item > a, .pza-menu > .current-menu-ancestor > a { background: color-mix(in srgb, var(--pza-grape) 12%, #fff); color: var(--pza-grape); }
.pza-menu .menu-item-has-children > a::after { content: "▾"; margin-left: 6px; font-size: .75em; }
.pza-menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: #fff; border-radius: 18px; box-shadow: 0 18px 40px rgba(31, 33, 64, .16); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; z-index: 10; }
.pza-menu .sub-menu a { padding: 8px 12px; border-radius: 12px; font-size: .9rem; }
.pza-menu .sub-menu a:hover { background: var(--pza-bg); color: var(--pza-accent); }
.pza-menu li:hover > .sub-menu, .pza-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.pza-nav__search { margin-left: auto; width: 100%; max-width: 260px; }
.pza-nav__search .pz-search { box-shadow: none; background: var(--pza-bg); border: 2px solid var(--pza-line); padding: 3px 3px 3px 14px; }
.pza-nav__search .pz-search button { width: 34px; height: 34px; }

.pza-header__actions { display: flex; align-items: center; gap: 10px; }
.pza-burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--pza-grape); cursor: pointer; padding: 12px; flex-direction: column; justify-content: space-between; }
.pza-burger span { display: block; height: 3px; border-radius: 3px; background: #fff; transition: .2s ease; }
.pza-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.pza-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pza-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 1100px) {
	.pza-nav__search { display: none; }
}
@media (max-width: 960px) {
	.pza-burger { display: flex; }
	.pza-header__actions { margin-left: auto; }
	.pza-nav { position: fixed; inset: 72px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 20px 16px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; z-index: 99; }
	.admin-bar .pza-nav { top: 118px; }
	.pza-nav.is-open { transform: none; }
	.pza-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.pza-menu a { font-size: 1.05rem; padding: 12px 16px; }
	.pza-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: var(--pza-bg); margin: 4px 0 8px; }
	.pza-nav__search { display: block; max-width: none; margin: 14px 0 0; order: -1; }
	body.pza-menu-open { overflow: hidden; }
}
@media (max-width: 520px) {
	.pza-btn--cta { padding: 10px 14px; font-size: .88rem; }
	.pza-logo__text { font-size: 1.2rem; }
	.pza-logo__badge { width: 38px; height: 38px; font-size: 1.2rem; }
}
@media (max-width: 380px) { .pza-header__actions .pza-btn--cta { display: none; } }

/* ---------- Page heads / entries ---------- */
.pza-page-head { margin-bottom: 24px; }
.pza-page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 8px; }
.pza-page-desc { color: var(--pza-muted); }
.pza-card-box { background: var(--pza-surface); border-radius: 24px; padding: clamp(20px, 4vw, 40px); box-shadow: var(--pza-shadow); }
.pza-entry { margin-bottom: 24px; }
.pza-content > *:first-child { margin-top: 0; }
.pza-content img { border-radius: 16px; }
.pza-content blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 6px solid var(--pza-sun); background: #FFF3D6; border-radius: 0 16px 16px 0; }
.pza-entry__thumb { margin: 0 0 20px; }
.pza-entry__thumb img { border-radius: 18px; width: 100%; }
.pza-entry__tags a { display: inline-block; margin: 4px 4px 0 0; padding: 4px 12px; border-radius: 999px; background: var(--pza-bg); font-weight: 700; font-size: .85rem; text-decoration: none; }
.pza-meta { color: var(--pza-muted); font-weight: 700; font-size: .85rem; margin-bottom: 6px; }

.pza-layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .pza-layout.has-sidebar { grid-template-columns: 1fr; } }
.pza-sidebar .pza-widget { margin-bottom: 20px; padding: 22px; }

/* Blog cards */
.pza-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-bottom: 30px; }
.pza-post-card { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--pza-shadow); display: flex; flex-direction: column; transition: transform .18s ease; }
.pza-post-card:hover { transform: translateY(-4px); }
.pza-post-card__media { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--pza-sky), var(--pza-grape)); }
.pza-post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pza-post-card__ph { display: grid; place-items: center; height: 100%; font-size: 3rem; }
.pza-post-card__body { padding: 18px 20px 22px; }
.pza-post-card__title { font-size: 1.2rem; margin: 0 0 8px; }
.pza-post-card__title a { color: var(--pza-ink); text-decoration: none; }
.pza-post-card__title a:hover { color: var(--pza-accent); }
.pza-post-card p { margin: 0; color: var(--pza-muted); }

.pza-pagination .nav-links, .navigation.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; background: #fff; font-weight: 800; color: var(--pza-ink); text-decoration: none; box-shadow: var(--pza-shadow); }
.page-numbers.current { background: var(--pza-grape); color: #fff; }
.pza-empty { padding: 32px; text-align: center; background: #fff; border-radius: 20px; border: 2px dashed var(--pza-line); color: var(--pza-muted); font-weight: 700; }

.pza-searchform { display: flex; max-width: 420px; margin: 12px auto 0; background: #fff; border: 2px solid var(--pza-line); border-radius: 999px; padding: 4px 4px 4px 16px; }
.pza-searchform input { flex: 1; border: 0; outline: 0; font: inherit; background: transparent; min-width: 0; }
.pza-searchform button { border: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--pza-sky); cursor: pointer; }

/* Comments */
.pza-comments { margin-top: 24px; }
.pza-comment-list { list-style: none; padding: 0; }
.pza-comment-list .comment-body { padding: 14px 0; border-bottom: 1px solid var(--pza-line); }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--pza-line); font: inherit; }
.comment-form .submit { background: var(--pza-accent); color: #fff; border: 0; padding: 12px 22px; border-radius: 999px; font-family: var(--pza-heading); font-weight: 700; cursor: pointer; }

/* 404 */
.pza-404 { text-align: center; padding: 60px 16px; }
.pza-404__code { font-family: var(--pza-heading); font-weight: 700; font-size: clamp(5rem, 18vw, 10rem); line-height: 1; color: var(--pza-accent); text-shadow: 0 8px 0 color-mix(in srgb, var(--pza-accent) 60%, #000); }
.pza-404__code span { display: inline-block; font-size: .7em; animation: pza-wobble 2.4s ease-in-out infinite; }
@keyframes pza-wobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateY(-8px); } }
.pza-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Footer ---------- */
.pza-footer { position: relative; margin-top: 60px; background: var(--pza-ink); color: #D9DAEC; }
.pza-footer__wave { position: absolute; top: -38px; left: 0; right: 0; height: 40px; line-height: 0; }
.pza-footer__wave svg { width: 100%; height: 100%; fill: var(--pza-ink); }
.pza-footer__inner { max-width: 1240px; margin: 0 auto; padding: 40px 16px 20px; }
.pza-footer__cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .pza-footer__cols { grid-template-columns: 1fr; } }
.pza-footer .pza-logo { color: #fff; margin-bottom: 10px; }
.pza-footer p { max-width: 38ch; }
.pza-footer a { color: #fff; }
.pza-widget__title { font-size: 1.1rem; margin: 0 0 12px; color: #fff; }
.pza-sidebar .pza-widget__title { color: var(--pza-ink); }
.pza-footer__links, .pza-footer .pza-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pza-footer .pza-menu { display: grid; }
.pza-footer .pza-menu a { padding: 0; font-size: 1rem; font-weight: 600; color: #D9DAEC; border-radius: 0; }
.pza-footer .pza-menu a:hover { background: none; }
.pza-footer__links--2col { grid-template-columns: 1fr 1fr; }
.pza-footer__links a { color: #D9DAEC; text-decoration: none; font-weight: 600; }
.pza-footer__links a:hover, .pza-footer .pza-menu a:hover { color: var(--pza-sun); }
.pza-social { display: flex; gap: 10px; margin-top: 14px; }
.pza-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .1); transition: .15s ease; }
.pza-social a:hover { background: var(--pza-sun); color: var(--pza-ink); }
.pza-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }

/* WP core alignment helpers */
.alignwide { max-width: 1240px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--pza-muted); text-align: center; }

/* Elementor: keep sections in line with theme width */
.elementor-section.elementor-section-boxed > .elementor-container { max-width: 1240px; }
