/*
Theme Name: OnlineSorsjegy Portal
Theme URI: https://onlinesorsjegy.com/
Author: OnlineSorsjegy
Description: Gyors, akadálymentes és adatközpontú egyedi téma az OnlineSorsjegy független információs portálhoz.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: online-sorsjegy-portal
*/

:root {
	--os-navy: #071c2d;
	--os-navy-light: #0e334a;
	--os-teal: #08b7a6;
	--os-teal-dark: #078d82;
	--os-gold: #f6bd4a;
	--os-ink: #132638;
	--os-muted: #617180;
	--os-line: #dbe5e9;
	--os-mist: #f1f7f7;
	--os-paper: #fff;
	--os-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #fff;
	color: var(--os-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

body.admin-bar .os-site-header { top: 32px; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a { text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--os-gold); outline-offset: 3px; }
.os-shell { width: min(calc(100% - 2.5rem), var(--os-width)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 8px; left: 8px; display: block; width: auto; height: auto; padding: 1rem; clip: auto; background: #fff; color: #000; }
.os-skip-link { position: fixed; z-index: 99999; top: 8px; left: 8px; padding: .75rem 1rem; background: #fff; color: #000; transform: translateY(-150%); }
.os-skip-link:focus { transform: translateY(0); }

.os-service-bar { background: #051622; color: #bcd0d9; font-size: .69rem; font-weight: 700; letter-spacing: .035em; }
.os-service-bar .os-shell { display: flex; gap: 1.25rem; align-items: center; justify-content: flex-end; min-height: 35px; }
.os-service-bar span:first-child { margin-right: auto; }
.os-service-bar strong { color: #fff; }
.os-service-bar a { color: #75e5d9; font-weight: 800; text-decoration: none; }

.os-site-header { position: sticky; z-index: 1000; top: 0; border-bottom: 1px solid rgba(219, 229, 233, .8); background: rgba(255, 255, 255, .95); box-shadow: 0 6px 22px rgba(7, 28, 45, .04); backdrop-filter: blur(14px); }
.os-header-inner { display: flex; gap: 1.35rem; align-items: center; min-height: 78px; }
.os-brand { display: inline-flex; flex: 0 0 auto; gap: .65rem; align-items: center; color: var(--os-navy); text-decoration: none; }
.os-brand-mark { position: relative; display: inline-flex; width: 40px; height: 32px; transform: rotate(-5deg); }
.os-brand-mark i { position: absolute; inset: 3px 1px; display: block; border-radius: 6px; background: var(--os-gold); box-shadow: 0 3px 10px rgba(7, 28, 45, .14); }
.os-brand-mark i:nth-child(2) { inset: 1px 5px 5px -3px; background: var(--os-teal); transform: rotate(-7deg); }
.os-brand-mark i:nth-child(3) { inset: 5px -3px 1px 9px; background: var(--os-navy-light); transform: rotate(7deg); }
.os-brand-mark i:nth-child(3)::before, .os-brand-mark i:nth-child(3)::after { position: absolute; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: #fff; content: ""; transform: translateY(-50%); }
.os-brand-mark i:nth-child(3)::before { left: -4px; }
.os-brand-mark i:nth-child(3)::after { right: -4px; }
.os-brand-name { position: relative; z-index: 1; font-size: 1.18rem; font-weight: 900; letter-spacing: -.045em; }
.os-brand-name span { color: var(--os-teal-dark); }

.os-primary-nav { margin-left: auto; }
.os-menu { display: flex; gap: .2rem; align-items: center; margin: 0; padding: 0; list-style: none; }
.os-menu li { position: relative; }
.os-menu a { display: block; padding: .68rem .72rem; border-radius: 9px; color: #2d4252; font-size: .82rem; font-weight: 760; text-decoration: none; transition: color .16s ease, background-color .16s ease; }
.os-menu a:hover, .os-menu .current-menu-item > a, .os-menu .current-menu-ancestor > a { background: var(--os-mist); color: var(--os-teal-dark); }
.os-menu .sub-menu { position: absolute; top: calc(100% + 6px); left: 0; display: none; width: 220px; margin: 0; padding: .5rem; border: 1px solid var(--os-line); border-radius: 12px; background: #fff; box-shadow: 0 15px 35px rgba(7, 28, 45, .14); list-style: none; }
.os-menu li:hover > .sub-menu, .os-menu li:focus-within > .sub-menu { display: block; }

.os-search-toggle, .os-menu-toggle { position: relative; display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid var(--os-line); border-radius: 11px; background: #fff; cursor: pointer; }
.os-search-toggle::before { width: 14px; height: 14px; border: 2px solid var(--os-navy); border-radius: 50%; content: ""; }
.os-search-toggle::after { position: absolute; width: 7px; height: 2px; right: 8px; bottom: 10px; background: var(--os-navy); content: ""; transform: rotate(45deg); }
.os-menu-toggle { display: none; padding: 10px; }
.os-menu-toggle > span:not(.screen-reader-text) { display: block; width: 19px; height: 2px; margin: 2px 0; background: var(--os-navy); transition: transform .18s ease, opacity .18s ease; }
.os-menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.os-menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.os-menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.os-search-panel { padding: .9rem 0; border-top: 1px solid var(--os-line); background: var(--os-mist); }
.os-search-form { display: flex; width: 100%; max-width: 760px; margin: 0 auto; padding: 5px; border: 1px solid var(--os-line); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(7, 28, 45, .06); }
.os-search-form input { flex: 1; min-width: 0; padding: .8rem 1rem; border: 0; outline: none; background: transparent; color: var(--os-ink); }
.os-search-form button { padding: .7rem 1.15rem; border: 0; border-radius: 9px; background: var(--os-teal); color: #062f2a; font-weight: 850; cursor: pointer; }

.os-main { min-height: 60vh; padding: 0 0 clamp(5rem, 10vw, 8rem); }
.os-main--front { padding-bottom: 0; }
.os-front-content { width: min(100%, var(--os-width)); }
.os-front-content > p:empty { display: none; }
.os-breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding-top: 1.4rem; color: #87949d; font-size: .73rem; }
.os-breadcrumb a { color: #647581; text-decoration: none; }
.os-breadcrumb a:hover { color: var(--os-teal-dark); }
.os-breadcrumb > span[aria-hidden] { color: #bcc7cc; }

.os-page-hero { max-width: 930px; padding: clamp(4rem, 8vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.os-page-kicker { display: inline-block; margin-bottom: .8rem; color: var(--os-teal-dark); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.os-page-hero h1 { max-width: 900px; margin: 0; color: var(--os-navy); font-size: clamp(2.7rem, 7vw, 5.1rem); font-weight: 880; letter-spacing: -.06em; line-height: .98; }
.os-page-hero > p { max-width: 760px; margin: 1.4rem 0 0; color: var(--os-muted); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.65; }
.os-page-hero--article { padding-bottom: 2.4rem; }
.os-article-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin-top: 1.5rem; color: var(--os-muted); font-size: .78rem; }
.os-article-meta span { display: inline-flex; align-items: center; }
.os-article-meta span::before { margin-right: .45rem; color: var(--os-teal); content: "●"; font-size: .48rem; }

.os-page-content, .os-article-content { max-width: 100%; }
.os-page-content > :is(p, ul, ol, blockquote):not([class]), .os-article-content > :is(p, ul, ol, blockquote):not([class]) { max-width: 790px; color: #405666; line-height: 1.75; }
.os-page-content > h2, .os-article-content > h2 { max-width: 840px; margin-top: 2.5rem; color: var(--os-navy); font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.035em; }
.os-page-content > h3, .os-article-content > h3 { max-width: 840px; margin-top: 2rem; color: var(--os-navy); }
.os-page-content a:not([class]), .os-article-content a:not([class]) { color: var(--os-teal-dark); font-weight: 700; }
.os-page-content::after, .os-article-content::after { display: table; clear: both; content: ""; }

.os-archive-grid { margin-bottom: 3rem; }
.os-story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.os-story-card { display: flex; min-height: 240px; flex-direction: column; padding: 1.5rem; border: 1px solid var(--os-line); border-radius: 16px; background: #fff; }
.os-story-card > span { color: var(--os-teal-dark); font-size: .72rem; font-weight: 800; }
.os-story-card h2 { margin: .6rem 0; font-size: 1.35rem; line-height: 1.25; }
.os-story-card h2 a { color: var(--os-navy); text-decoration: none; }
.os-story-card p { color: var(--os-muted); }
.os-story-card .sj-text-link { margin-top: auto; }

.os-search-results { display: grid; gap: .75rem; max-width: 900px; }
.os-search-result { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; padding: 1.35rem; border: 1px solid var(--os-line); border-radius: 14px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.os-search-result:hover { box-shadow: 0 15px 35px rgba(7, 28, 45, .08); transform: translateY(-2px); }
.os-search-result > div > span { color: var(--os-teal-dark); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.os-search-result h2 { margin: .25rem 0; font-size: 1.25rem; }
.os-search-result h2 a { color: var(--os-navy); text-decoration: none; }
.os-search-result p { margin: 0; color: var(--os-muted); font-size: .88rem; }
.os-result-arrow { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 50%; background: var(--os-mist); color: var(--os-teal-dark); font-weight: 900; text-decoration: none; }
.os-no-results, .os-error-page { max-width: 780px; margin: 5rem auto; text-align: center; }
.os-no-results h2, .os-error-page h1 { color: var(--os-navy); font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -.05em; }
.os-no-results p, .os-error-page p { color: var(--os-muted); }
.os-no-results .os-search-form, .os-error-page .os-search-form { margin: 2rem auto; }
.os-error-page > span { color: var(--os-teal); font-size: 1rem; font-weight: 900; letter-spacing: .2em; }
.os-error-page > div { display: flex; gap: 1rem; align-items: center; justify-content: center; }

.nav-links { display: flex; gap: .45rem; align-items: center; justify-content: center; margin-top: 3rem; }
.nav-links .page-numbers { display: grid; min-width: 40px; height: 40px; padding: 0 .5rem; place-items: center; border: 1px solid var(--os-line); border-radius: 9px; color: var(--os-ink); font-size: .82rem; font-weight: 750; text-decoration: none; }
.nav-links .current { border-color: var(--os-teal); background: var(--os-teal); color: #052c28; }

.os-site-footer { background: var(--os-navy); color: #c4d4dc; }
.os-footer-main { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-top: 4.5rem; padding-bottom: 4rem; }
.os-brand--footer { color: #fff; }
.os-footer-brand p { max-width: 330px; margin: 1.2rem 0 0; color: #9fb5c0; font-size: .88rem; line-height: 1.65; }
.os-footer-column h2 { margin: .2rem 0 1rem; color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.os-footer-column ul { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.os-footer-column a { color: #b9ccd5; font-size: .84rem; text-decoration: none; }
.os-footer-column a:hover { color: #75e5d9; }
.os-footer-notice { border-top: 1px solid rgba(255, 255, 255, .09); border-bottom: 1px solid rgba(255, 255, 255, .09); background: rgba(0, 0, 0, .12); }
.os-footer-notice .os-shell { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; min-height: 90px; }
.os-footer-notice strong { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--os-gold); color: #261f14; }
.os-footer-notice p { margin: 0; color: #aebfc7; font-size: .78rem; line-height: 1.5; }
.os-footer-notice a { color: #fff; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.os-footer-bottom { display: flex; gap: 1rem; align-items: center; justify-content: space-between; min-height: 72px; color: #8199a5; font-size: .7rem; }

@media (max-width: 1080px) {
	.os-menu a { padding-inline: .5rem; font-size: .77rem; }
	.os-footer-main { grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; }
}

@media (max-width: 900px) {
	body.admin-bar .os-site-header { top: 46px; }
	.os-menu-toggle { display: block; margin-left: auto; }
	.os-primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; margin: 0; padding: 1rem max(1.25rem, calc((100vw - var(--os-width)) / 2)); border-top: 1px solid var(--os-line); background: #fff; box-shadow: 0 18px 35px rgba(7, 28, 45, .1); }
	.os-primary-nav.is-open { display: block; }
	.os-menu { align-items: stretch; flex-direction: column; }
	.os-menu a { padding: .8rem; font-size: .9rem; }
	.os-menu .sub-menu { position: static; display: block; width: auto; padding: 0 0 0 1rem; border: 0; box-shadow: none; }
	.os-footer-main { grid-template-columns: repeat(2, 1fr); }
	.os-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
	.os-shell { width: min(calc(100% - 1.5rem), var(--os-width)); }
	.os-service-bar .os-shell { justify-content: space-between; }
	.os-service-bar span:nth-child(2) { display: none; }
	.os-header-inner { min-height: 68px; }
	.os-brand-name { font-size: 1.05rem; }
	.os-search-toggle { display: none; }
	.os-page-hero { padding-top: 3.2rem; }
	.os-story-grid { grid-template-columns: 1fr; }
	.os-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.os-footer-brand { grid-column: 1 / -1; }
	.os-footer-notice .os-shell { grid-template-columns: auto 1fr; padding-top: 1rem; padding-bottom: 1rem; }
	.os-footer-notice a { grid-column: 2; }
	.os-footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (max-width: 480px) {
	.os-brand-mark { width: 34px; height: 28px; }
	.os-footer-main { grid-template-columns: 1fr; }
	.os-footer-brand { grid-column: auto; }
	.os-footer-notice .os-shell { grid-template-columns: 1fr; }
	.os-footer-notice a { grid-column: auto; }
	.os-error-page > div { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.os-menu a, .os-menu-toggle > span, .os-search-result { transition: none; }
}
