/* ThemeDetective – alap téma. Külső betűtípus és külső szkript nélkül, hogy az oldal gyors maradjon.
   A színeket és a lekerekítést az admin "Megjelenés" oldala felülírja (a layout a :root változókat állítja). */
:root {
    color-scheme: light dark;
    --accent: #4f46e5;
    --on-accent: #ffffff;
    --paper: #f6f7fb;
    --surface: #ffffff;
    --ink: #141a2e;
    --muted: #5f6880;
    --rule: #e3e6ef;
    --note: #eef0f6;
    --free: #12794c;
    --premium: #9a5a00;
    --warn: #f2f1ff;
    --warn-rule: #4f46e6;
    --radius: 14px;
    --gap: 24px;
    --accent-soft: color-mix(in srgb, var(--accent) 9%, var(--surface));
    --accent-line: color-mix(in srgb, var(--accent) 30%, var(--rule));
    --shadow: 0 1px 2px rgba(20, 26, 46, .05), 0 12px 28px -16px rgba(20, 26, 46, .18);
    --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --on-accent: #0c0f1c;
        --paper: #0c0f1c;
        --surface: #141829;
        --ink: #eceffa;
        --muted: #9aa3bd;
        --rule: #262c44;
        --note: #1c2136;
        --free: #4cc38a;
        --premium: #e3a33b;
        --warn: #1e1c3d;
        --warn-rule: #6f68f2;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px -16px rgba(0, 0, 0, .6);
    }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
    color-scheme: dark;
    --on-accent: #0c0f1c;
    --paper: #0c0f1c;
    --surface: #141829;
    --ink: #eceffa;
    --muted: #9aa3bd;
    --rule: #262c44;
    --note: #1c2136;
    --free: #4cc38a;
    --premium: #e3a33b;
    --warn: #1e1c3d;
    --warn-rule: #6f68f2;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px -16px rgba(0, 0, 0, .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { top: 12px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.ico-svg { flex: none; display: block; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.05rem; line-height: 1.3; }

/* ---------- Fejléc ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand .chip { width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }

main.wrap { padding-bottom: 80px; }
.crumbs { font-size: .9rem; color: var(--muted); margin: 26px 0 0; }
.crumbs a { color: var(--muted); }

/* ---------- Gombok, címkék ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 10px 18px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: 700 .95rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn:hover { filter: brightness(1.07); }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.pill { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 3px 11px; border-radius: 999px; background: var(--note); color: var(--muted); font-size: .78rem; font-weight: 700; line-height: 1.4; }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.pill.free { background: color-mix(in srgb, var(--free) 13%, var(--surface)); color: var(--free); }
.pill.premium { background: color-mix(in srgb, var(--premium) 14%, var(--surface)); color: var(--premium); }
.pill svg { width: 12px; height: 12px; }

/* ---------- Nyitó rész és keresőmező ---------- */
.hero { padding: 64px 0 8px; text-align: center; }
.hero.left { text-align: left; padding-top: 30px; }
.hero h1 { max-width: 15em; margin: 14px auto 0; font-size: clamp(2.2rem, 6vw, 3.8rem); letter-spacing: -.035em; line-height: 1.05; }
.hero.left h1 { margin-left: 0; font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: none; }
.lead { color: var(--muted); max-width: 86ch; margin: 16px auto 0; font-size: 1.1rem; }
.hero.left .lead { margin-left: 0; }

.scan { display: flex; align-items: center; gap: 8px; max-width: 700px; margin: 30px auto 0; padding: 8px 8px 8px 22px; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; box-shadow: var(--shadow); text-align: left; }
.hero.left .scan { margin-left: 0; }
.scan:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow); }
.scan > svg { color: var(--muted); }
.scan input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 1.05rem var(--sans); padding: 11px 4px; }
.scan button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--accent); color: var(--on-accent); font: 700 1rem var(--sans); padding: 13px 28px; border-radius: 999px; cursor: pointer; }
.scan button:hover { filter: brightness(1.08); }
.scan button[disabled] { opacity: .7; cursor: progress; }
@media (max-width: 480px) { .scan { padding-left: 16px; } .scan > svg { display: none; } .scan button { padding: 12px 18px; } }

#result { margin-top: 22px; }

/* ---------- Folyamatjelző ---------- */
.progress { max-width: 700px; margin: 0 auto; padding: 22px 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); text-align: left; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; font-weight: 700; overflow-wrap: anywhere; }
.progress-top .pct { flex: none; font-variant-numeric: tabular-nums; color: var(--accent); font-size: 1.4rem; font-weight: 800; }
.track { height: 12px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.fill { position: relative; width: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff)); transition: width .25s ease-out; }
.fill::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .3) 0 10px, transparent 10px 20px); background-size: 28px 100%; animation: stripes .9s linear infinite; }
@keyframes stripes { to { background-position: 28px 0; } }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 14px; font-size: .9rem; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 9px; }
.steps li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--rule); }
.steps li.active { color: var(--ink); font-weight: 600; }
.steps li.active::before { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done { color: var(--ink); }
.steps li.done::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.5l2.5 2.5 4.5-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fill::after, .steps li.active::before { animation: none; } .fill { transition: none; } }

.notice { max-width: 700px; margin: 0 auto; padding: 18px 22px; background: var(--warn); border: 1px solid var(--warn-rule); border-radius: var(--radius); text-align: left; }
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; font-size: .95rem; color: var(--muted); }

/* ---------- Szakaszok, listák ---------- */
.section { margin-top: 64px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; gap: 0; } }

.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; }
.logos a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 14px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; text-align: center; }
.logos a:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.cms-logo { width: var(--s, 40px); height: var(--s, 40px); object-fit: contain; }
.mono-logo { display: inline-grid; place-items: center; flex: none; width: var(--s, 40px); height: var(--s, 40px); border-radius: 11px; color: #fff; font: 800 calc(var(--s, 40px) * .46)/1 var(--sans); background: hsl(var(--h) 52% 40%); }

.plain { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.plain li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--rule); }
.plain li:last-child { border-bottom: 0; }
.plain .host { font-family: var(--mono); font-size: .95rem; overflow-wrap: anywhere; }

.bars { list-style: none; margin: 0; padding: 4px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.bars li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.bars li:last-child { border-bottom: 0; }
.bars a { color: var(--ink); text-decoration: none; font-weight: 700; }
.bars a:hover { color: var(--accent); }
.bars .logo-cell { grid-row: span 2; }
.bars .count { grid-column: 3; grid-row: 1; color: var(--muted); font-size: .9rem; }
.bars .bar-track { grid-column: 2 / 4; height: 6px; background: var(--accent-soft); border-radius: 3px; position: relative; }
.bars .bar-track::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--accent); border-radius: 3px; }

/* ---------- Kártyák (témák) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin: 20px 0; }
.item { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.thumb { display: block; aspect-ratio: 4 / 3; background: var(--note); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; font: 800 2.6rem var(--sans); color: #fff; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); }
.item .body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 16px 16px; }
.item h3 a { color: var(--ink); text-decoration: none; }
.item h3 a:hover { color: var(--accent); }
.item .meta { font-size: .88rem; color: var(--muted); }
.item .btn { margin-top: auto; }
.item .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.item .actions .btn { margin-top: 0; }
/* Téma-csempék: asztali gépen is 3 egy sorban, hogy kiférjen a Részletek gomb */
.cards.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards.cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards.cards-3 { grid-template-columns: 1fr; } }

/* ---------- Jelentés: panelek ---------- */
.stack > * + * { margin-top: var(--gap); }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--rule); font-weight: 700; }
.panel-head .ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.panel-head .aside { margin-left: auto; font-weight: 600; font-size: .85rem; color: var(--accent); background: var(--accent-soft); padding: 3px 12px; border-radius: 999px; }
.panel-body { padding: 24px; }

.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .facts > div { grid-template-columns: 1fr; } }

.monitor { max-width: 560px; margin: 0 auto; width: 100%; }
.monitor .screen { position: relative; aspect-ratio: 11 / 8; overflow: hidden; background: #1b2033; border: 16px solid #000000; border-bottom-width: 18px; border-radius: 14px 14px 6px 6px; }
.monitor .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.monitor .screen .waiting { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: #aab2cc; font-size: .92rem; }
.monitor .stand { width: 20%; height: 22px; margin: 0 auto; background: #232a40; clip-path: polygon(16% 0, 84% 0, 100% 100%, 0 100%); }
.monitor .base { width: 40%; height: 8px; margin: 0 auto; background: #1b2033; border-radius: 0 0 12px 12px; }
.monitor figcaption { margin-top: 16px; text-align: center; font-weight: 700; overflow-wrap: anywhere; }

.overview { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--gap); }
@media (max-width: 860px) { .overview { grid-template-columns: 1fr; } }
.overview-main { padding: 26px 26px 24px; }
.overview-main .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.overview-main h2 { font-size: 2rem; font-family: var(--mono); letter-spacing: -.03em; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 20px; margin: 26px 0 0; }
.stat dt { color: var(--muted); font-size: .85rem; }
.stat dd { margin: 3px 0 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }

.infra { display: flex; flex-direction: column; gap: 4px; padding: 26px; background: var(--accent); color: var(--on-accent); border-radius: var(--radius); box-shadow: var(--shadow); }
.infra h2 { font-size: .95rem; font-weight: 700; opacity: .85; margin-bottom: 8px; }
.infra .item-row { display: flex; align-items: center; gap: 14px; padding: 9px 0; }
.infra .chip { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--on-accent) 20%, transparent); }
.infra small { display: block; font-size: .8rem; opacity: .8; }
.infra b { display: block; font-size: 1.08rem; line-height: 1.3; overflow-wrap: anywhere; }

.theme-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 32px; align-items: start; }
@media (max-width: 760px) { .theme-card { grid-template-columns: 1fr; } }
.theme-card h3 { font-size: 1.7rem; letter-spacing: -.025em; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.theme-card p { color: var(--muted); margin: 0 0 4px; max-width: 62ch; }
.tiles { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.tile { min-width: 112px; padding: 10px 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; }
.tile small { display: block; color: var(--muted); font-size: .8rem; }
.tile b { font-size: 1.05rem; overflow-wrap: anywhere; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.shot { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shot .empty { display: grid; place-items: center; height: 100%; padding: 18px; text-align: center; color: var(--muted); font-size: .9rem; }

/* ---------- Pluginok: széles képpel és a nevével ráírva ---------- */
.plugins { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.plugin { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.plugin:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.plugin .media { position: relative; display: block; aspect-ratio: 772 / 250; overflow: hidden; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #000)); }
.plugin .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plugin .media .no { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 800 3rem/1 var(--sans); color: rgba(255, 255, 255, .28); }
.plugin .media .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(transparent, rgba(8, 10, 24, .82)); color: #fff; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.plugin .body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 16px 16px; }
.plugin .desc { margin: 0; font-size: .92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.plugin .row { display: flex; gap: 6px 8px; flex-wrap: wrap; align-items: center; font-size: .86rem; color: var(--muted); }
.plugin .actions { margin-top: auto; padding-top: 4px; }
.plugin .btn { padding: 8px 14px; font-size: .88rem; }

/* ---------- Részletoldalak, lapozó, szöveg ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 32px; margin: 24px 0 36px; align-items: start; }
.detail.wide { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
.detail .thumb { overflow: hidden; border: 1px solid var(--rule); border-radius: var(--radius); }
.detail .thumb.wide { aspect-ratio: 772 / 250; }
@media (max-width: 760px) { .detail, .detail.wide { grid-template-columns: 1fr; } }
.rows { margin: 0; padding: 0; }
.rows > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 18px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.rows > div:last-child { border-bottom: 0; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; overflow-wrap: anywhere; }
.pager { display: flex; gap: 18px; align-items: center; justify-content: center; margin: 30px 0 0; }
.prose { max-width: 100%; }
.prose h2 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.1rem; margin: 1.3em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.page-head { padding: 34px 0 6px; }
.page-head .lead { margin: 12px 0 0; max-width: 64ch; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 22px; }
form.card { max-width: 640px; padding: 24px; box-shadow: var(--shadow); }
form.card label { display: block; font-weight: 600; }
form.card input[type="text"], form.card textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; }
form.card input[type="text"]:focus, form.card textarea:focus { outline: 0; border-color: var(--accent); }
.overview-main { display: flex; flex-direction: column; }
.overview-main .report-actions { justify-content: flex-start; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--rule); }
.overview-main .stats { margin-bottom: 26px; }
.report-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--rule); padding: 38px 0 46px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: .95rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 0; color: var(--muted); max-width: 40ch; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Főmenü: lenyíló, többszintű; mobilon hamburger ---------- */
.nav-wrap { display: flex; align-items: center; gap: 8px 14px; margin-left: auto; }
.mainnav { display: block; }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu-link { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border: 0; border-radius: 11px; background: none; color: var(--ink); font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.menu-link:hover, .has-sub.open > .menu-link { background: var(--accent-soft); color: var(--accent); }
.menu-link svg { transition: transform .15s; }
.has-sub.open > .menu-link svg:last-child { transform: rotate(180deg); }
.has-sub { position: relative; }
.submenu { display: none; position: absolute; left: 0; top: 100%; z-index: 40; min-width: 250px; margin: 0; padding: 8px; list-style: none; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 9px; }
.has-sub.open > .submenu { display: block; }
@media (hover: hover) and (min-width: 861px) { .has-sub:hover > .submenu { display: block; } }
.submenu li { margin: 0; }
.submenu a, .submenu .group-label, .submenu .current { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-size: .95rem; text-decoration: none; }
.submenu a:hover { background: var(--accent-soft); color: var(--accent); }
.submenu .parent-link { font-weight: 700; }
.submenu .group-label { color: var(--muted); font-size: .85rem; font-weight: 700; padding-bottom: 4px; }
.submenu .current { font-weight: 700; color: var(--accent); }
.subsub { list-style: none; margin: 0 0 4px; padding: 0 0 0 14px; }
.subsub a { font-size: .9rem; color: var(--muted); }
.lang-switch .submenu { left: auto; right: 0; min-width: 270px; }
.lang-switch.open > .submenu, .lang-switch:hover > .submenu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; max-height: 70vh; overflow: auto; }
.lang-switch.open > .submenu { display: grid; }
@media (hover: hover) and (min-width: 861px) { .lang-switch:hover > .submenu { display: grid; } }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
@media (max-width: 860px) {
    .burger { display: inline-grid; }
    .nav-wrap { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; margin: 0; padding: 6px 0 14px; }
    .nav-wrap.open { display: flex; }
    .menu { flex-direction: column; align-items: stretch; }
    .menu-link { width: 100%; justify-content: space-between; padding: 12px 14px; }
    .submenu, .lang-switch .submenu { position: static; min-width: 0; box-shadow: none; border: 0; border-left: 2px solid var(--rule); border-radius: 0; margin: 2px 0 8px 14px; padding: 2px 0 2px 6px; }
    .submenu::before { display: none; }
    .lang-switch .menu-link { border: 1px solid var(--rule); }
    .lang-switch.open > .submenu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Tárhely-toplista ---------- */
.stat-pills { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.stat-pill { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; box-shadow: var(--shadow); color: var(--muted); }
.stat-pill b { color: var(--accent); font-size: 1.25rem; font-weight: 800; }
.cms-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cms-chips a { padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.cms-chips a:hover, .cms-chips a[aria-current] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.hosts { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.host-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.host-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.host-card header { display: flex; align-items: center; gap: 12px; }
.host-card h3 { flex: 1; font-size: 1.15rem; overflow-wrap: anywhere; }
.rank { display: grid; place-items: center; flex: none; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 12px; background: var(--note); color: var(--muted); font-weight: 800; }
.rank.r1 { background: color-mix(in srgb, #f5b50a 24%, var(--surface)); color: #9a6a00; }
.rank.r2 { background: color-mix(in srgb, #8a94a6 22%, var(--surface)); color: #566074; }
.rank.r3 { background: color-mix(in srgb, #d9822b 22%, var(--surface)); color: #a35a12; }
.host-card .desc { margin: 0; color: var(--muted); font-size: .95rem; }
.host-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; font-size: .92rem; }
.host-card .loc { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.host-card .foot b { color: var(--accent); font-weight: 800; }
.meter { height: 7px; border-radius: 4px; background: var(--accent-soft); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff)); }
.small { font-size: .92rem; }

/* ---------- Téma- és bővítmény-részletoldal: egy keretben a kép és az adatok ---------- */
.item-panel { margin-top: 26px; }
.item-panel .hero-media { position: relative; aspect-ratio: 772 / 250; overflow: hidden; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #000)); border-bottom: 1px solid var(--rule); }
.item-panel .hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-panel .hero-media .no { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); font: 800 5rem/1 var(--sans); color: rgba(255, 255, 255, .25); }
.item-body { padding: 28px; }
.item-body h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.item-body .tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.item-body .tags .pill { font-size: .85rem; padding: 4px 13px; }
.item-body .installs { margin: 8px 0 0; font-weight: 700; }
.item-body .rows { margin-top: 18px; }
.item-body .about-text { margin: 18px 0 0; max-width: 72ch; color: var(--muted); }
.item-body .actions { margin-top: 22px; }
.item-split { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 0; }
.item-split .shot { border: 0; border-radius: 0; border-right: 1px solid var(--rule); aspect-ratio: auto; min-height: 320px; height: 100%; }
@media (max-width: 800px) { .item-split { grid-template-columns: 1fr; } .item-split .shot { border-right: 0; border-bottom: 1px solid var(--rule); min-height: 0; aspect-ratio: 4 / 3; } }
.infra .pending { margin: 4px 0 0; opacity: .9; font-size: .95rem; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; margin: 24px 0; }
.post-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--rule); border-radius: calc(var(--radius) + 6px); }
.post-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.post-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--note); }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.post-card:hover .post-img img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .post-img img { transition: none; } .post-card:hover .post-img img { transform: none; } }
.post-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 22px 22px; }
.post-body h2 { font-size: 1.25rem; line-height: 1.3; }
.post-body h2 a { color: var(--ink); text-decoration: none; }
.post-body h2 a:hover { color: var(--accent); }
.post-body p { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-body .more { margin-top: auto; padding-top: 6px; font-weight: 700; text-decoration: none; }
.post { max-width: 820px; margin: 0 auto; }
.post header { padding-top: 34px; }
.post h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.03em; }
.post-meta { margin: 12px 0 24px; }
.post-hero { margin: 0 0 32px; }
.post-hero img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(var(--radius) + 8px); border: 1px solid var(--rule); }
.post-content { max-width: none; font-size: 1.1rem; line-height: 1.75; }
.post-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.post-content a { text-decoration: underline; }
.post-content blockquote { margin: 1.4em 0; padding: .4em 1.2em; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.post-content pre { overflow-x: auto; padding: 14px 16px; background: var(--note); border-radius: var(--radius); }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.post-content th, .post-content td { padding: 8px 12px; border: 1px solid var(--rule); text-align: left; }

/* ---------- Értesítés kérése (ismeretlen vagy tűzfal mögötti oldal) ---------- */
.notify-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.notify-form input[type="email"] { flex: 1 1 240px; min-width: 0; padding: 12px 16px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; }
.notify-form input[type="email"]:focus { outline: 0; border-color: var(--accent); }
.notify-form .note { flex-basis: 100%; margin: 0; font-size: .85rem; color: var(--muted); }
.notify-form .sent { margin: 0; font-weight: 700; color: var(--free); }

/* CMS oldal: középre igazított fejléc, AJAX "továbbiak" */
.hero-logo { display: flex; justify-content: center; margin-bottom: 14px; }

.cms-logo { border-radius: 11px; }
.load-more { display: flex; justify-content: center; margin: 26px 0 0; }

/* ---------- Blogcikk és önálló oldal: teljes szélességű keretes panel ---------- */
.article-panel { margin-top: 26px; }
.article-hero { margin: 0; aspect-ratio: 1600 / 640; overflow: hidden; background: var(--accent-soft); border-bottom: 1px solid var(--rule); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-body { padding: 34px clamp(20px, 4vw, 44px) 40px; }
.article-body h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); letter-spacing: -.03em; }
.article-body .post-meta { margin: 10px 0 22px; }
.article-body .post-content { max-width: none; }
.site-footer p + ul { margin-top: 12px; }
.brand-logo { height: 36px; width: auto; max-width: 180px; display: block; object-fit: contain; }

/* ---------- Sötét / világos mód váltó ---------- */
.theme-toggle { order: 3; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .to-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .to-light { display: none; }
:root[data-theme="dark"] .theme-toggle .to-dark { display: inline; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .to-light { display: none; }
    :root:not([data-theme="light"]) .theme-toggle .to-dark { display: inline; }
}
.nav-wrap { order: 2; }
.logo-d { display: none; }
:root[data-theme="dark"] .logo-l { display: none; }
:root[data-theme="dark"] .logo-d { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo-l { display: none; }
    :root:not([data-theme="light"]) .logo-d { display: block; }
}
@media (max-width: 860px) {
    .theme-toggle { order: 1; margin-left: auto; }
    .burger { order: 2; margin-left: 0; }
    .nav-wrap { order: 3; }
}

/* ---------- Short kódok a cikkekben és oldalakon ---------- */
.sc-block { margin: 1.8em 0; }
.sc-block .item-body h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.sc-block a, .post-content .sc-block a { text-decoration: none; }
.sc-block .rows a { text-decoration: underline; }
.sc-search .scan { margin-left: 0; max-width: none; }
.sc-search #detect-form { margin-top: 0; }

/* ---------- Fázis 30: short kód elrendezés, Details gomb, közösségi ikonok, lábléc, főoldali ikon ---------- */
.sc-block { font-size: 1rem; line-height: 1.6; }
.post-content .sc-block h3 { margin: 0; }
.post-content .sc-block p { margin: 0; }
.post-content .sc-block img { border-radius: 0; }
.post-content .sc-block .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.post-content .sc-block .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.post-content .sc-block .monitor .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.post-content .sc-block .item-body .about-text { margin: 0; color: var(--muted); }
.post-content .sc-block .item-body .installs { margin: 8px 0 0; }
.post-content .sc-block .tags { margin: 14px 0 6px; }
.post-content .sc-block dl, .post-content .sc-block dd { margin: 0; }
.sc-site { margin: 0; }
.sc-site .facts a { text-decoration: none; color: var(--accent); }

.item-body .about-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 18px; }
.item-body .about-row .about-text { margin: 0; flex: 1; min-width: 0; }
.item-body .about-row .details-btn { flex: none; margin-left: auto; }
@media (max-width: 520px) { .item-body .about-row { flex-wrap: wrap; } }

.social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.site-footer .social li { padding: 0; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); transition: background .15s, color .15s; }
.site-footer .social a { color: var(--accent); }
.social a:hover, .site-footer .social a:hover { background: var(--accent); color: var(--on-accent); }
.footer-brand { margin-right: 0; margin-bottom: 12px; }
.site-footer .footer-brand { color: var(--ink); }
.site-footer p + .social { margin-top: 14px; }
.site-footer .social + ul, .site-footer .social + * { margin-top: 14px; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; text-align: center; }
.home-icon { display: flex; justify-content: center; margin-bottom: 18px; }
.home-icon img { width: 72px; height: 72px; object-fit: contain; }

/* ---------- Fázis 31: főoldali blokkok, GYIK, 6 logó soronként ---------- */
.logos.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 960px) { .logos.six { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .logos.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 400px) { .logos.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hc-intro { margin: 0 0 22px; max-width: 70ch; color: var(--muted); }
.hc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: none; }
.hc-steps li { position: relative; padding: 24px 22px 22px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.hc-steps h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.hc-steps p, .hc-checks p { margin: 0; color: var(--muted); }
.hc-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.hc-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.hc-checks li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.hc-checks h3 { margin: 0 0 4px; font-size: 1.05rem; }
.hc-tick { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-top: 1px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.hc-body { padding: 24px 26px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); font-size: 1.02rem; line-height: 1.7; }
.hc-body p:first-child { margin-top: 0; }
.hc-body > :last-child { margin-bottom: 0; }

.faq { display: grid; gap: 10px; width: 100%; }
.faq details { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 500; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--accent); }
.faq .faq-a { padding: 0 20px 16px; max-width: none; font-size: 1rem; line-height: 1.65; color: var(--muted); }
.faq .faq-a > :first-child { margin-top: 0; }
.faq .faq-a > :last-child { margin-bottom: 0; }

/* ---------- Fázis 32: AI által felismert CMS-ek ---------- */
.bars .name { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.ai-note { margin: 0 0 16px; max-width: 72ch; }

.ai-analysis .ai-note, .ai-result > p { color: var(--muted); font-size: .95rem; }
.ai-result { max-width: 760px; }
.ai-result strong { display: block; margin-bottom: 6px; }
.ai-facts { margin: 14px 0; display: grid; gap: 10px; }
.ai-facts dt { font-size: .85rem; color: var(--muted); }
.ai-facts dd { margin: 2px 0 0; font-weight: 600; }
.ai-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ai-tags li { padding: 3px 10px; border: 1px solid var(--rule, #d8dde3); border-radius: 999px; font-size: .9rem; font-weight: 500; }

.ai-analysis.is-overview { display: flex; flex-direction: column; }
.ai-analysis.is-overview .panel-body { flex: 1; display: flex; flex-direction: column; }
.ai-analysis.is-overview .report-actions { justify-content: flex-start; margin-top: auto; padding-top: 22px; }

/* Főoldali számláló sáv: lila (a fő színből származtatott) háttér */
.counter-band { margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); border-radius: calc(var(--radius) + 6px); overflow: hidden; color: #fff;
    background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--accent) 70%, #fff 8%) 0%, color-mix(in srgb, var(--accent) 78%, #1b0a3f) 55%, color-mix(in srgb, var(--accent) 45%, #0b0620) 100%);
    box-shadow: var(--shadow); }
.counter-item { padding: 34px 14px 30px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .16); }
.counter-item:first-child { border-left: 0; }
.counter-num { display: block; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; color: #fff; }
.counter-item span { display: block; margin-top: 8px; font-size: .95rem; color: rgba(255, 255, 255, .78); }
@media (max-width: 860px) {
    .counter-band { grid-template-columns: repeat(2, 1fr); }
    .counter-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
    .counter-item:nth-child(-n+2) { border-top: 0; }
    .counter-item:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .16); }
    .counter-item:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* Oldal-csempe (téma/bővítmény oldal): a hosszú cím két sorra vágva, nem nyújtja a csempét */
.site-card { min-width: 0; }
.site-card h3 { margin: 0; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-card .site-title { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: .88rem; color: var(--muted); line-height: 1.35; }
