/*
Theme Name: PlayZera
Theme URI: https://playzera.se
Author: PlayZera
Description: Tema för PlayZera – jämförelser och recensioner av svenska licensierade casino- och bettingbolag. Topplistor, recensioner, betalmetodsfilter, blogg och ansvarsfullt spelande inbyggt.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: playzera
*/

@font-face {
	font-family: "Sora";
	src: url("assets/fonts/sora-variable.woff2") format("woff2");
	font-weight: 100 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--pz-bg: #0E0D12;
	--pz-surface: #16141C;
	--pz-surface-2: #1D1A25;
	--pz-line: #2A2633;
	--pz-text: #F4F2F7;
	--pz-muted: #B3AEBD;
	--pz-gold: #E2B84A;
	--pz-gold-hover: #F0CB6A;
	--pz-gold-dark: #9A7417;
	--pz-cream: #FBF8F2;
	--pz-good: #5CC08A;
	--pz-radius: 14px;
	--pz-max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--pz-bg);
	color: var(--pz-text);
	font-family: "Sora", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pz-gold); }
a:hover { color: var(--pz-gold-hover); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.1em; }

.pz-skip { position: absolute; left: -9999px; top: 0; background: var(--pz-gold); color: var(--pz-bg); padding: 10px 16px; z-index: 100; }
.pz-skip:focus { left: 12px; top: 12px; }
.pz-wrap { max-width: var(--pz-max); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* ---------- Top strip ---------- */
.pz-topstrip { background: var(--pz-surface); border-bottom: 1px solid var(--pz-line); font-size: 13px; color: var(--pz-muted); }
.pz-topstrip .pz-wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; min-height: 38px; }
.pz-topstrip strong { color: var(--pz-text); }
.pz-topstrip a { color: var(--pz-muted); text-decoration: none; }
.pz-topstrip a:hover { color: var(--pz-gold); }
@media (max-width: 600px) { .pz-topstrip { font-size: 12px; } .pz-topstrip .pz-wrap { gap: 4px 12px; padding-top: 6px; padding-bottom: 6px; } .pz-topstrip .pz-wrap > span:nth-child(2) { flex: 1 1 60%; } }
.pz-18 { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; border: 1.5px solid var(--pz-text); border-radius: 6px; font-weight: 800; font-size: 12px; color: var(--pz-text); }

/* ---------- Header ---------- */
.pz-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 13, 18, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--pz-line); }
.pz-header .pz-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.pz-logo img { height: 40px; width: auto; }
.pz-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.pz-nav a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--pz-text); text-decoration: none; font-weight: 600; font-size: 15px; }
.pz-nav a:hover, .pz-nav .current-menu-item > a, .pz-nav .current-menu-ancestor > a { background: var(--pz-surface-2); color: var(--pz-gold); }
.pz-nav .menu-item-has-children { position: relative; }
.pz-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--pz-surface); border: 1px solid var(--pz-line); border-radius: 12px; padding: 8px; flex-direction: column; }
.pz-nav .menu-item-has-children:hover > .sub-menu, .pz-nav .menu-item-has-children:focus-within > .sub-menu { display: flex; }
.pz-menu-toggle { display: none; background: none; border: 1.5px solid var(--pz-line); color: var(--pz-text); border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; }

@media (max-width: 860px) {
	.pz-menu-toggle { display: inline-flex; }
	.pz-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--pz-surface); border-bottom: 1px solid var(--pz-line); padding: 12px 20px 20px; }
	.pz-nav.is-open { display: block; }
	.pz-nav ul { flex-direction: column; }
	.pz-nav .sub-menu { display: flex; position: static; border: 0; padding: 0 0 0 14px; background: none; }
}

/* ---------- Hero ---------- */
.pz-hero { padding: 56px 0 28px; }
.pz-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pz-gold); margin-bottom: 14px; }
.pz-hero p.pz-lead { font-size: 1.12rem; color: var(--pz-muted); max-width: 720px; }
.pz-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pz-trust span { display: inline-flex; align-items: center; gap: 8px; background: var(--pz-surface); border: 1px solid var(--pz-line); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--pz-text); }
.pz-trust svg { flex: none; }

/* ---------- Section ---------- */
.pz-section { padding: 40px 0; }
.pz-section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pz-section-head h2 { margin: 0; }
.pz-link-arrow { font-weight: 600; text-decoration: none; }

/* ---------- Tabs (casino / betting) ---------- */
.pz-tabs { display: inline-flex; background: var(--pz-surface); border: 1px solid var(--pz-line); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.pz-tabs a { padding: 9px 16px; border-radius: 9px; text-decoration: none; color: var(--pz-muted); font-weight: 600; font-size: 14px; }
.pz-tabs a.is-active, .pz-tabs a:hover { background: var(--pz-gold); color: var(--pz-bg); }

/* ---------- Toplist rows ---------- */
.pz-list { display: flex; flex-direction: column; gap: 14px; counter-reset: pzrank; }
.pz-card { position: relative; display: grid; grid-template-columns: 56px 150px minmax(0, 1.4fr) minmax(0, 1fr) 210px; gap: 20px; align-items: center; background: var(--pz-surface); border: 1px solid var(--pz-line); border-radius: var(--pz-radius); padding: 20px 22px 16px; }
.pz-card:hover { border-color: #3A3545; }
.pz-rank { counter-increment: pzrank; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; background: var(--pz-surface-2); color: var(--pz-gold); border: 1.5px solid var(--pz-gold); }
.pz-rank::before { content: counter(pzrank); }
.pz-card-logo { background: var(--pz-surface-2); border-radius: 12px; height: 84px; display: flex; align-items: center; justify-content: center; padding: 10px; }
.pz-card-logo img { max-height: 64px; width: auto; object-fit: contain; }
.pz-card-name { font-size: 1.15rem; font-weight: 800; margin: 0 0 4px; }
.pz-card-name a { color: var(--pz-text); text-decoration: none; }
.pz-card-name a:hover { color: var(--pz-gold); }
.pz-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--pz-muted); }
.pz-rating b { color: var(--pz-gold); font-size: 15px; }
.pz-bonus { font-size: 1.05rem; font-weight: 700; color: var(--pz-text); margin: 8px 0 0; line-height: 1.35; }
.pz-bonus.is-none { color: var(--pz-muted); font-weight: 500; }
.pz-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pz-badge { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--pz-surface-2); border: 1px solid var(--pz-line); color: var(--pz-text); }
.pz-badge.is-licens { border-color: rgba(92, 192, 138, 0.5); color: var(--pz-good); }
.pz-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.pz-facts li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--pz-line); padding-bottom: 5px; }
.pz-facts span { color: var(--pz-muted); }
.pz-facts strong { color: var(--pz-text); font-weight: 600; text-align: right; }
.pz-cta { display: flex; flex-direction: column; gap: 8px; }
.pz-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border-radius: 12px; background: var(--pz-gold); color: var(--pz-bg); font-weight: 800; text-decoration: none; border: 0; font-size: 15px; }
.pz-btn:hover { background: var(--pz-gold-hover); color: var(--pz-bg); }
.pz-btn-ghost { background: transparent; color: var(--pz-text); border: 1.5px solid var(--pz-line); font-weight: 600; }
.pz-btn-ghost:hover { background: var(--pz-surface-2); color: var(--pz-gold); }
.pz-reklam { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pz-muted); text-align: center; }
.pz-fine { grid-column: 1 / -1; font-size: 12px; color: var(--pz-muted); border-top: 1px solid var(--pz-line); padding-top: 10px; line-height: 1.5; }
.pz-fine a { color: var(--pz-muted); }

@media (max-width: 980px) {
	.pz-card { grid-template-columns: 44px 110px minmax(0, 1fr); }
	.pz-card .pz-facts { grid-column: 1 / -1; }
	.pz-card .pz-cta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
	.pz-card .pz-cta .pz-btn { flex: 1 1 180px; }
	.pz-card-logo { height: 72px; }
}
@media (max-width: 520px) {
	.pz-card { grid-template-columns: 1fr; padding: 18px; }
	.pz-rank { position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; font-size: 15px; }
	.pz-card-logo { height: 90px; }
}

/* ---------- Content cards (blog, info) ---------- */
.pz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .pz-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.pz-post { background: var(--pz-surface); border: 1px solid var(--pz-line); border-radius: var(--pz-radius); overflow: hidden; display: flex; flex-direction: column; }
.pz-post-img { aspect-ratio: 16 / 9; background: var(--pz-surface-2); }
.pz-post-img img { width: 100%; height: 100%; object-fit: cover; }
.pz-post-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pz-post-body time { font-size: 13px; color: var(--pz-muted); }
.pz-post-body h3 { margin: 0; font-size: 1.1rem; }
.pz-post-body h3 a { color: var(--pz-text); text-decoration: none; }
.pz-post-body h3 a:hover { color: var(--pz-gold); }
.pz-post-body p { color: var(--pz-muted); font-size: 15px; margin: 0; }

/* ---------- Method (Så granskar vi) ---------- */
.pz-method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .pz-method { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.pz-method div { background: var(--pz-surface); border: 1px solid var(--pz-line); border-radius: var(--pz-radius); padding: 22px; }
.pz-method b { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: var(--pz-gold); color: var(--pz-bg); font-weight: 800; margin-bottom: 12px; }
.pz-method h3 { font-size: 1.05rem; margin-bottom: 6px; }
.pz-method p { color: var(--pz-muted); font-size: 15px; margin: 0; }

/* ---------- FAQ ---------- */
.pz-faq details { background: var(--pz-surface); border: 1px solid var(--pz-line); border-radius: var(--pz-radius); padding: 0 20px; margin-bottom: 10px; }
.pz-faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.pz-faq summary::after { content: "+"; color: var(--pz-gold); font-size: 22px; line-height: 1; }
.pz-faq details[open] summary::after { content: "–"; }
.pz-faq details > div { padding: 0 0 18px; color: var(--pz-muted); }

/* ---------- Review page ---------- */
.pz-review-head { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 28px; align-items: center; background: var(--pz-surface); border: 1px solid var(--pz-line); border-radius: 18px; padding: 28px; margin: 28px 0; }
@media (max-width: 860px) { .pz-review-head { grid-template-columns: 1fr; } }
.pz-review-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 8px; }
.pz-score { font-size: 2.4rem; font-weight: 800; color: var(--pz-gold); line-height: 1; }
.pz-score small { font-size: 1rem; color: var(--pz-muted); font-weight: 500; }
.pz-proscons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
@media (max-width: 640px) { .pz-proscons { grid-template-columns: 1fr; } }
.pz-proscons div { background: var(--pz-surface); border: 1px solid var(--pz-line); border-radius: var(--pz-radius); padding: 20px; }
.pz-proscons ul { margin: 0; padding-left: 20px; }
.pz-proscons h3 { font-size: 1rem; }
.pz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
@media (max-width: 960px) { .pz-layout { grid-template-columns: 1fr; } }
.pz-aside { position: sticky; top: 96px; background: var(--pz-surface); border: 1px solid var(--pz-line); border-radius: var(--pz-radius); padding: 20px; }
.pz-meta-line { font-size: 14px; color: var(--pz-muted); }

/* ---------- Article content ---------- */
.pz-content { font-size: 17px; }
.pz-content h2 { margin-top: 1.6em; }
.pz-content h3 { margin-top: 1.4em; }
.pz-content ul, .pz-content ol { padding-left: 1.3em; }
.pz-content li { margin-bottom: 0.4em; }
.pz-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; display: block; overflow-x: auto; }
.pz-content th, .pz-content td { border: 1px solid var(--pz-line); padding: 10px 12px; text-align: left; }
.pz-content th { background: var(--pz-surface-2); }
.pz-content blockquote { border-left: 3px solid var(--pz-gold); margin: 1.4em 0; padding: 4px 0 4px 18px; color: var(--pz-muted); }
.pz-content img { border-radius: 12px; }
.pz-page { padding: 40px 0 60px; }
.pz-page-narrow { max-width: 820px; }
.pz-breadcrumbs { font-size: 13px; color: var(--pz-muted); padding-top: 22px; }
.pz-breadcrumbs a { color: var(--pz-muted); text-decoration: none; }
.pz-breadcrumbs a:hover { color: var(--pz-gold); }
.pz-pagination { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.pz-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--pz-line); border-radius: 10px; text-decoration: none; color: var(--pz-text); }
.pz-pagination .current { background: var(--pz-gold); color: var(--pz-bg); border-color: var(--pz-gold); }

/* ---------- Responsible gambling banner ---------- */
.pz-rg { background: var(--pz-surface); border: 1px solid var(--pz-line); border-radius: var(--pz-radius); padding: 18px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--pz-muted); }
.pz-rg strong { color: var(--pz-text); }

/* ---------- Footer ---------- */
.pz-footer { margin-top: 56px; background: #0A090D; border-top: 1px solid var(--pz-line); padding: 48px 0 28px; font-size: 14px; color: var(--pz-muted); }
.pz-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 960px) { .pz-footer-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.pz-footer h4 { color: var(--pz-text); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.pz-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pz-footer a { color: var(--pz-muted); text-decoration: none; }
.pz-footer a:hover { color: var(--pz-gold); }
.pz-footer-logo img { height: 36px; width: auto; margin-bottom: 14px; }
.pz-footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--pz-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.pz-footer-rg { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- WordPress core ---------- */
.alignwide { max-width: 1100px; }
.alignfull { width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 13px; color: var(--pz-muted); }
:focus-visible { outline: 2px solid var(--pz-gold); outline-offset: 2px; }
