/* SikerSuli – belső felület alapstílusa.
 * Tartalmazza a régi wp-admin osztályok (wrap, widefat, button, notice, form-table, nav-tab…)
 * saját megvalósítását, hogy az átvett admin nézetek változtatás nélkül jól nézzenek ki. */

@font-face { font-family: "Nunito"; src: url("../site/fonts/nunito.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../site/fonts/nunito-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
	--ss-primary: #7CB56D;
	--ss-primary-dark: #649a57;
	--ss-primary-tint: #eef6ec;
	--ss-secondary: #0087AE;
	--ss-secondary-dark: #006d8c;
	--ss-secondary-tint: #e6f5fa;
	--ss-accent: #FFBF23;
	--ss-accent-dark: #e0a800;
	--ss-accent-tint: #fff6e0;
	--ss-danger: #c62828;
	--ss-danger-tint: #fdecea;
	--ss-warning-tint: #fff8e1;
	--ss-bg: #f5f7f6;
	--ss-card-bg: #ffffff;
	--ss-border: #e2e2e2;
	--ss-text: #24292f;
	--ss-text-muted: #6b7280;
	--ss-radius: 10px;
	--ss-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
	--ss-font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ss-app {
	margin: 0;
	background: var(--ss-bg);
	color: var(--ss-text);
	font: 15px/1.5 var(--ss-font);
	overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: var(--ss-secondary); }
a:hover { color: var(--ss-secondary-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; margin-top: 1.4em; }
h3 { font-size: 1.05rem; }
code { background: #eef0f2; padding: 1px 5px; border-radius: 4px; font-size: .9em; }

/* ---------- Fejléc ---------- */
.ss-topbar {
	position: sticky; top: 0; z-index: 50;
	background: #fff; border-bottom: 1px solid var(--ss-border);
	box-shadow: 0 1px 4px rgba(0,0,0,.03);
}
.ss-topbar__inner {
	max-width: 1400px; margin: 0 auto; padding: 8px 16px;
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.ss-brand img { display: block; height: 36px; width: auto; }
.ss-modnav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1 1 auto; }
.ss-modnav a {
	text-decoration: none; color: var(--ss-text); font-weight: 600;
	padding: 7px 12px; border-radius: 8px;
}
.ss-modnav a:hover { background: var(--ss-primary-tint); }
.ss-modnav a.is-active { background: var(--ss-primary); color: #fff; }
.ss-user { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 14px; }
.ss-user__name { font-weight: 600; }
.ss-user__link { color: var(--ss-text-muted); text-decoration: none; }
.ss-user__link:hover { color: var(--ss-text); text-decoration: underline; }
.ss-linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.ss-inline { display: inline; margin: 0; }

@media (max-width: 700px) {
	.ss-topbar__inner { gap: 8px; }
	.ss-user__name { display: none; }
	.ss-modnav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
	.ss-modnav a { white-space: nowrap; }
}

/* ---------- Tartalom ---------- */
.ss-main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
.ss-main--wide { max-width: 1400px; }
.ss-narrow { max-width: 720px; }

.wrap { margin: 0; }
.wrap > h1:first-child { margin-top: 4px; }
.ss-card, .card, .postbox {
	background: var(--ss-card-bg); border: 1px solid var(--ss-border);
	border-radius: var(--ss-radius); box-shadow: var(--ss-shadow);
	padding: 16px 18px; margin: 0 0 18px;
}
.card { max-width: none; }
details.ss-card > summary { cursor: pointer; }
.ss-muted, .description, p.description { color: var(--ss-text-muted); }
.description { font-size: 14px; }
.ss-small { font-size: 13px; }
.ss-right { text-align: right; }
.ss-badge {
	display: inline-block; font-size: 12px; font-weight: 600; line-height: 1;
	padding: 4px 7px; border-radius: 99px; background: #eee; color: #555;
}
.ss-inactive td { opacity: .6; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.alignleft { float: left; } .alignright { float: right; }
.clear { clear: both; }
.hidden { display: none !important; }

/* ---------- Értesítések ---------- */
.notice, div.updated, div.error {
	background: #fff; border: 1px solid var(--ss-border); border-left: 4px solid var(--ss-secondary);
	border-radius: 6px; padding: 2px 14px; margin: 0 0 16px; box-shadow: var(--ss-shadow);
}
.notice p { margin: .6em 0; }
.notice-success, div.updated { border-left-color: var(--ss-primary); background: var(--ss-primary-tint); }
.notice-error, div.error { border-left-color: var(--ss-danger); background: var(--ss-danger-tint); }
.notice-warning { border-left-color: var(--ss-accent); background: var(--ss-warning-tint); }
.notice-info { border-left-color: var(--ss-secondary); background: var(--ss-secondary-tint); }

/* ---------- Gombok ---------- */
.button, button.button, a.button, input[type=submit].button {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 36px; padding: 6px 14px; border-radius: 8px;
	border: 1px solid #c8ccd0; background: #fff; color: var(--ss-text);
	font: 600 14px/1.2 var(--ss-font); text-decoration: none; cursor: pointer;
	transition: background .15s, border-color .15s;
	vertical-align: middle;
}
.button:hover { background: #f3f4f6; border-color: #b5b9bd; color: var(--ss-text); }
.button-primary, .button.button-primary {
	background: var(--ss-primary); border-color: var(--ss-primary-dark); color: #fff;
}
.button-primary:hover, .button.button-primary:hover { background: var(--ss-primary-dark); color: #fff; }
.button-secondary, .button.button-secondary { background: #fff; border-color: var(--ss-secondary); color: var(--ss-secondary); }
.button-secondary:hover { background: var(--ss-secondary-tint); color: var(--ss-secondary-dark); }
.button-small, .button.button-small { min-height: 28px; padding: 3px 10px; font-size: 13px; }
.button-large, .button.button-large { min-height: 44px; padding: 10px 20px; font-size: 16px; }
.button[disabled], .button:disabled { opacity: .55; cursor: not-allowed; }
.button-link, .button-link-delete {
	background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline;
	color: var(--ss-secondary);
}
.button-link-delete { color: var(--ss-danger); }
.button-link-delete:hover { color: #8e1c1c; }

/* ---------- Űrlapok ---------- */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=search], input[type=url], input[type=tel], input[type=month], select, textarea {
	font: inherit; color: inherit; background: #fff;
	border: 1px solid #c8ccd0; border-radius: 8px; padding: 7px 10px; min-height: 36px; max-width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ss-secondary-tint); border-color: var(--ss-secondary); }
textarea { width: 100%; min-height: 90px; }
.regular-text { width: 25em; }
.small-text { width: 6em; }
.large-text { width: 100%; }
label { cursor: pointer; }
.ss-check { display: inline-flex; align-items: center; gap: 6px; margin: 3px 0; }
.form-table { border-collapse: collapse; width: 100%; margin: 8px 0 12px; }
.form-table th { text-align: left; vertical-align: top; width: 220px; padding: 12px 12px 12px 0; font-weight: 600; }
.form-table td { padding: 8px 0; vertical-align: middle; }
@media (max-width: 700px) {
	.form-table, .form-table tbody, .form-table tr, .form-table th, .form-table td { display: block; width: 100%; }
	.form-table th { padding: 10px 0 2px; }
	.regular-text { width: 100%; }
}
.ss-form { display: flex; flex-direction: column; gap: 6px; }
.ss-form input[type=text], .ss-form input[type=password], .ss-form input[type=email] { width: 100%; min-height: 44px; }
.ss-form .button { margin-top: 8px; }
.ss-filterbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }

/* ---------- Táblázatok ---------- */
.ss-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 18px; }
.widefat {
	width: 100%; border-collapse: collapse; background: #fff;
	border: 1px solid var(--ss-border); border-radius: var(--ss-radius); overflow: hidden;
}
.widefat th, .widefat td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #eef0f2; vertical-align: top; }
.widefat thead th, .widefat tfoot th { background: #fafbfb; font-weight: 700; font-size: 13px; color: #444; white-space: nowrap; }
.widefat tbody tr:last-child td { border-bottom: 0; }
.striped > tbody > tr:nth-child(odd) { background: #fbfcfc; }
.widefat tr:hover td { background: #f6faf5; }
.column-num, .num { text-align: right; white-space: nowrap; }

/* ---------- Fülek ---------- */
.nav-tab-wrapper {
	display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--ss-border);
	margin: 0 0 18px; padding: 0;
}
.nav-tab {
	display: inline-block; padding: 8px 14px; text-decoration: none; font-weight: 600;
	color: var(--ss-text-muted); border: 1px solid transparent; border-bottom: 0;
	border-radius: 8px 8px 0 0; margin-bottom: -1px;
}
.nav-tab:hover { color: var(--ss-text); background: #fff; }
.nav-tab-active, .nav-tab-active:hover { background: #fff; color: var(--ss-text); border-color: var(--ss-border); }
@media (max-width: 700px) {
	.nav-tab-wrapper { flex-wrap: nowrap; overflow-x: auto; }
	.nav-tab { white-space: nowrap; }
}
.subsubsub { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.tablenav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 10px 0; }

/* ---------- Bejelentkezés (bare) ---------- */
.ss-bare { min-height: 100vh; display: flex; }
.ss-bare__main { margin: auto; width: 100%; max-width: 420px; padding: 32px 16px; }
.ss-bare__logo { display: block; text-align: center; margin: 0 0 20px; }
.ss-bare__logo img { height: 56px; width: auto; }
.ss-login-card {
	background: #fff; border: 1px solid var(--ss-border); border-radius: 14px;
	box-shadow: var(--ss-shadow); padding: 22px 22px 16px; margin: 0 0 18px;
}
.ss-login-card h2 { margin-top: 0; }

/* Spinner */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid #ccc; border-top-color: var(--ss-primary); border-radius: 50%; animation: ss-spin .8s linear infinite; visibility: hidden; vertical-align: middle; }
.spinner.is-active { visibility: visible; }
@keyframes ss-spin { to { transform: rotate(360deg); } }

/* A régi WordPress-oldal alapja (legacy_skin): fehér háttér, a Hello téma betűkészlete, keret nélküli main */
body.ss-app.ss-legacy {
	background: #fff; color: #333;
	font: 400 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
body.ss-legacy .ss-main { padding: 0; }
body.ss-app.ss-legacy main.ss-main.site-main { padding: 10px; margin: 0 auto; }
