/* WhatThemeIs – kiegészítő stílus a default téma fölött (THEME=whatthemeis).
   Kerekített címsorok, ragadós üveges fejléc, bal oldali hero minta-riporttal, képernyőképes csempék, sötét lábléc. */

.theme-whatthemeis {
    --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --tile-radius: calc(var(--radius) + 4px);
    --lift: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent), 0 18px 40px -22px color-mix(in srgb, var(--accent) 45%, transparent);
    background:
        radial-gradient(1200px 520px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
        radial-gradient(900px 480px at -10% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
        var(--paper);
    background-repeat: no-repeat;
}

.theme-whatthemeis h1, .theme-whatthemeis h2, .theme-whatthemeis h3 { font-family: var(--display); letter-spacing: -.025em; }

/* ---- Fejléc: ragadós, áttetsző ---- */
.theme-whatthemeis .site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}
.theme-whatthemeis .menu-link { border-radius: 999px; }
.theme-whatthemeis .menu-link:hover, .theme-whatthemeis .menu-link[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); }

/* ---- Hero ---- */
.wti-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding: 56px 0 28px; }
.wti-hero-text { min-width: 0; }
.wti-hero h1 { margin: 14px 0 14px; font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.04; font-weight: 800; }
.wti-hero .lead { margin: 0 0 6px; max-width: 60ch; color: var(--muted); font-size: 1.1rem; }
.wti-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .02em; text-transform: uppercase; }
.wti-eyebrow .cms-logo, .wti-eyebrow .mono-logo { border-radius: 6px; }
.wti-hero .scan { margin: 24px 0 0; max-width: none; border-radius: 18px; border-width: 2px; border-color: color-mix(in srgb, var(--accent) 35%, var(--rule)); padding: 10px 10px 10px 20px; box-shadow: var(--lift); }
.wti-hero .scan button { border-radius: 12px; padding-inline: 22px; }
.wti-hero #result { text-align: left; }
.wti-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.wti-trust li { display: inline-flex; align-items: center; gap: 6px; }
.wti-trust svg { color: var(--accent); }
.wti-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }

/* Minta-riport kártya a hero jobb oldalán */
.wti-sample { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; box-shadow: var(--lift); overflow: hidden; transform: rotate(1.2deg); }
.wti-sample-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: color-mix(in srgb, var(--surface) 85%, var(--accent)); border-bottom: 1px solid var(--rule); }
.wti-sample-bar i, .tile-chrome i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 18%, var(--surface)); }
.wti-sample-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: .8rem; }
.wti-sample-body { padding: 20px 22px 8px; }
.wti-sample-q { margin: 0 0 12px; font: 800 1.15rem/1.3 var(--display); }
.wti-sample dl { margin: 0; }
.wti-sample dl > div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; padding: 11px 0; border-top: 1px dashed var(--rule); }
.wti-sample dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
.wti-sample dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; }
.wti-sample .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.wti-sample .tag { padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .8rem; }
.wti-sample figcaption { padding: 8px 22px 14px; color: var(--muted); font-size: .78rem; }

.wti-hero--cms { grid-template-columns: minmax(0, 1fr) auto; padding-top: 28px; }
.wti-hero-logo { display: grid; place-items: center; width: 200px; height: 200px; border-radius: 40px; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--lift); transform: rotate(-4deg); }
.wti-hero-logo .cms-logo, .wti-hero-logo .mono-logo { border-radius: 22px; }

/* ---- Szakaszfejek: akcentus vonal ---- */
.theme-whatthemeis .section-head h2 { position: relative; padding-left: 16px; }
.theme-whatthemeis .section-head h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px; border-radius: 4px; background: var(--accent); }
.theme-whatthemeis .section-head a { font-weight: 700; text-decoration: none; }

/* ---- Chip-ek és logósáv ---- */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); box-shadow: var(--lift); }
.wti-logo-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip-logo .cms-logo, .chip-logo .mono-logo { border-radius: 7px; }

/* ---- Csempék (képernyőképes weboldal-kártyák) ---- */
.wti-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 20px 0 0; padding: 0; list-style: none; }
@media (max-width: 1100px) { .wti-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) { .wti-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 440px) { .wti-tiles { grid-template-columns: 1fr; } }
.wti-tile { min-width: 0; }
.tile-link { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--tile-radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tile-link:hover, .tile-link:focus-visible { transform: translateY(-4px); box-shadow: var(--lift); border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); }
.tile-shot { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--note); }
.tile-chrome { position: absolute; inset: 0 0 auto 0; z-index: 1; display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid color-mix(in srgb, var(--rule) 80%, transparent); }
.tile-chrome i { width: 7px; height: 7px; }
.tile-chrome em { margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: .7rem; color: var(--muted); }
.tile-shot img { display: block; width: 100%; height: 100%; padding-top: 26px; object-fit: cover; object-position: top; transition: transform .5s ease; }
.tile-link:hover .tile-shot img { transform: scale(1.04); }
.tile-ph { display: grid; place-items: center; width: 100%; height: 100%; padding-top: 26px; font: 800 3rem var(--display); color: #fff; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #000)); }
.tile-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; min-width: 0; }
.tile-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 1rem/1.25 var(--display); }
.tile-link:hover .tile-host { color: var(--accent); }
.tile-meta { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--muted); font-size: .84rem; }
.tile-meta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-meta .cms-logo, .tile-meta .mono-logo { flex: none; border-radius: 5px; }

/* ---- Rangsor (bővítmények a főoldalon) ---- */
.wti-rank { margin: 0; padding: 4px 18px; list-style: none; counter-reset: rank; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.wti-rank li { counter-increment: rank; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--rule); }
.wti-rank li:first-child { border-top: 0; }
.wti-rank li::before { content: counter(rank); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font: 800 .85rem var(--display); }
.wti-rank-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Kártyák, blokkok, GYIK ---- */
.theme-whatthemeis .item, .theme-whatthemeis .plugin, .theme-whatthemeis .panel, .theme-whatthemeis .plain, .theme-whatthemeis .bars, .theme-whatthemeis .card { border-radius: var(--tile-radius); }
.theme-whatthemeis .item { transition: transform .18s ease, box-shadow .18s ease; }
.theme-whatthemeis .item:hover { transform: translateY(-3px); box-shadow: var(--lift); }
.theme-whatthemeis .counter-band { border-radius: 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 92%, #000), color-mix(in srgb, var(--accent) 60%, #000)); color: #fff; border: 0; }
.theme-whatthemeis .counter-band span { color: color-mix(in srgb, #fff 82%, transparent); }
.wti-prose { max-width: 80ch; }

/* ---- Lábléc: sötét sáv ---- */
.theme-whatthemeis .site-footer {
    --ink: #f2fbf9; --muted: rgba(242, 251, 249, .66); --rule: rgba(242, 251, 249, .14); --surface: transparent;
    margin-top: 64px; background: color-mix(in srgb, var(--accent) 14%, #06110f); color: var(--muted); border-top: 0;
}
.theme-whatthemeis .site-footer a { color: var(--ink); }

@media (max-width: 900px) {
    .wti-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 34px; }
    .wti-sample { transform: none; max-width: 520px; }
    .wti-hero--cms { grid-template-columns: 1fr; }
    .wti-hero-logo { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .tile-link, .tile-shot img, .chip, .theme-whatthemeis .item { transition: none; }
}

/* A sötét láblécben mindig az éjszakai logó látszik */
.theme-whatthemeis .site-footer .logo-l { display: none !important; }
.theme-whatthemeis .site-footer .logo-d { display: block !important; }

/* ======================================================================
   Blogcikkek: olvasási csík, tartalomjegyzék, kiemelések, lépések, táblázat
   ====================================================================== */
.wti-progress { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 3px; pointer-events: none; }
.wti-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .1s linear; }

.wti-article .post-content { font-size: 1.06rem; line-height: 1.75; }
.wti-article .post-content h2 { margin-top: 2.2em; font-size: 1.6rem; scroll-margin-top: 90px; }
.wti-article .post-content h3 { margin-top: 1.6em; font-size: 1.22rem; scroll-margin-top: 90px; }
.wti-article .post-content img { border-radius: 16px; box-shadow: var(--lift); }
.wti-article .post-content figure { margin: 28px 0; }
.wti-article .post-content figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; text-align: center; }

.wti-tldr { margin: 22px 0; padding: 18px 22px; border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.wti-tldr strong:first-child { display: block; margin-bottom: 4px; color: var(--accent); font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }
.wti-tldr p { margin: 0; }

.wti-toc { margin: 24px 0; padding: 16px 20px; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); }
.wti-toc strong { display: block; margin-bottom: 6px; font-family: var(--display); }
.wti-toc ol { margin: 0; padding-left: 1.3em; }
.wti-toc li { margin: 3px 0; }
.wti-toc a { color: var(--muted); text-decoration: none; }
.wti-toc a:hover, .wti-toc a.on { color: var(--accent); font-weight: 700; }

.wti-try { margin: 28px 0; padding: 22px 24px 18px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface)); border: 1px solid var(--accent-line); box-shadow: var(--lift); }
.wti-try > p:first-child { margin: 0 0 4px; font: 800 1.15rem/1.3 var(--display); }
.wti-try .scan { margin: 12px 0 0; max-width: none; }

.wti-callout { position: relative; margin: 22px 0; padding: 14px 18px 14px 54px; border-radius: 14px; background: var(--surface); border: 1px solid var(--rule); }
.wti-callout::before { position: absolute; left: 16px; top: 13px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 800; font-size: .9rem; }
.wti-callout.tip::before { content: "✓"; background: var(--accent-soft); color: var(--accent); }
.wti-callout.warn { border-color: color-mix(in srgb, #e3a33b 45%, var(--rule)); }
.wti-callout.warn::before { content: "!"; background: color-mix(in srgb, #e3a33b 18%, var(--surface)); color: #b7791f; }
.wti-callout p { margin: 0; }

.wti-steps { counter-reset: step; margin: 20px 0; }
.wti-steps details { counter-increment: step; margin: 10px 0; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); overflow: hidden; }
.wti-steps summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.wti-steps summary::-webkit-details-marker { display: none; }
.wti-steps summary::before { content: counter(step); display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 800 .9rem var(--display); }
.wti-steps summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.wti-steps details[open] summary::after { transform: rotate(45deg); }
.wti-steps details > div { padding: 0 18px 14px 58px; }

.wti-faq details { margin: 8px 0; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.wti-faq summary { cursor: pointer; font-weight: 700; }
.wti-faq details p { margin: 10px 0 2px; }

.wti-table-wrap { margin: 22px 0; overflow-x: auto; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); }
.wti-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.wti-table th, .wti-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.wti-table thead th { background: var(--accent-soft); color: var(--ink); font-family: var(--display); white-space: nowrap; }
.wti-table tr:last-child td { border-bottom: 0; }
.wti-table code { font-size: .85em; }

.wti-checklist { margin: 18px 0; padding: 0; list-style: none; }
.wti-checklist li { position: relative; margin: 8px 0; padding: 10px 14px 10px 46px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); cursor: pointer; user-select: none; transition: background .15s, border-color .15s; }
.wti-checklist li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2px solid var(--accent-line); border-radius: 6px; }
.wti-checklist li.done { background: var(--accent-soft); border-color: var(--accent-line); color: var(--muted); text-decoration: line-through; }
.wti-checklist li.done::before { background: var(--accent); border-color: var(--accent); }
.wti-checklist li.done::after { content: "✓"; position: absolute; left: 18px; top: 50%; margin-top: -.72em; color: var(--on-accent); font-weight: 800; font-size: .85rem; }

.wti-article pre { position: relative; padding: 16px 18px; border-radius: 14px; background: #0f1d1a; color: #d9f2ec; overflow-x: auto; font-size: .9rem; }
.wti-copy { position: absolute; top: 8px; right: 8px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.08); color: #d9f2ec; font: 600 .78rem var(--sans); cursor: pointer; }
.wti-copy:hover { background: rgba(255,255,255,.16); }
.wti-cta { margin: 34px 0 10px; padding: 26px; border-radius: 22px; text-align: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 92%, #000), color-mix(in srgb, var(--accent) 60%, #000)); color: #fff; }
.wti-cta p { margin: 0 0 14px; font: 800 1.3rem/1.35 var(--display); }
.wti-cta a { display: inline-block; padding: 11px 22px; border-radius: 12px; background: #fff; color: #0b3d34; font-weight: 800; text-decoration: none; }

/* ======================================================================
   Blogképek: a borítóképek 1200×630-asak (1,905:1), a fejléc és a kártyák is ezt az arányt használják,
   így a teljes kép látszik. Új borítóképet mindig 1200×630-ban kell készíteni.
   ====================================================================== */
.theme-whatthemeis .article-hero { aspect-ratio: 1200 / 630; }
.theme-whatthemeis .article-hero img { object-fit: cover; }
.theme-whatthemeis .post-img { aspect-ratio: 1200 / 630; }
.theme-whatthemeis .post-card { border-radius: var(--tile-radius); transition: transform .18s ease, box-shadow .18s ease; }
.theme-whatthemeis .post-card:hover { transform: translateY(-3px); box-shadow: var(--lift); }

.tile-extra { color: var(--accent); font-weight: 700; font-size: .84rem; }
/* A téma-/bővítményoldalak .cards rácsában a csempe kitölti a cellát */
.cards > .wti-tile { display: flex; }
.cards > .wti-tile .tile-link { flex: 1; }
