/* =========================================================
   BLOG – vinczelaci.hu arculatához igazított megjelenés
   Tiszta palakék (#0f172a) + óceánkék (#0284c7) + türkiz (#0d9488)
========================================================= */

:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --ink: #0f172a;
    --muted: #475569;
    --faint: #64748b;
    --line: #e2e8f0;
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --accent-ink: #ffffff;
    --accent-soft: #e0f2fe;
    --teal: #0d9488;
    --teal-soft: #ccfbf1;
    --shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.22);
    --shadow-sm: 0 4px 14px -4px rgba(15, 23, 42, 0.07);
    --r: 16px;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0b1120;
        --card: #111827;
        --ink: #f1f5f9;
        --muted: #94a3b8;
        --faint: #64748b;
        --line: #1e293b;
        --accent: #38bdf8;
        --accent-hover: #7dd3fc;
        --accent-ink: #0b1120;
        --accent-soft: #0c2d48;
        --teal: #2dd4bf;
        --teal-soft: #113836;
        --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8);
        --shadow-sm: 0 4px 14px -4px rgba(0, 0, 0, 0.45);
    }
}

:root[data-theme="dark"] {
    --bg: #0b1120;
    --card: #111827;
    --ink: #f1f5f9;
    --muted: #94a3b8;
    --faint: #64748b;
    --line: #1e293b;
    --accent: #38bdf8;
    --accent-hover: #7dd3fc;
    --accent-ink: #0b1120;
    --accent-soft: #0c2d48;
    --teal: #2dd4bf;
    --teal-soft: #113836;
    --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8);
    --shadow-sm: 0 4px 14px -4px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- fejléc ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 14px; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-logo {
    display: block; width: 38px; height: 38px; object-fit: contain; flex-shrink: 0;
    border-radius: 9px; transition: background-color .2s, padding .2s, box-shadow .2s;
}
.brand-logo.sm { width: 30px; height: 30px; border-radius: 7px; }
[data-theme="dark"] .brand-logo {
    background: rgba(255, 255, 255, 0.94);
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.4px; color: var(--ink); }
.brand-sub { font-size: 11.5px; font-weight: 600; color: var(--accent); letter-spacing: .2px; }

.search { margin-left: auto; position: relative; display: flex; }
.search input {
    width: 210px; padding: 9px 38px 9px 15px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--card); color: var(--ink); font: inherit; font-size: 13.5px;
    transition: border-color .2s, box-shadow .2s, width .25s;
}
.search input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); width: 260px;
}
.search button {
    position: absolute; right: 4px; top: 3px; width: 32px; height: 32px; border: 0;
    border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.search button:hover { color: var(--accent); }

/* téma kapcsoló */
.theme-toggle {
    display: grid; place-items: center; width: 36px; height: 36px; flex: none;
    border-radius: 10px; border: 1px solid var(--line); background: var(--card);
    color: var(--muted); cursor: pointer; transition: border-color .18s, color .18s, background .18s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .ico-sun { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .ico-moon { display: none; }
}

/* olvasási folyamatjelző */
.read-progress {
    display: block; width: 100%; height: 3px; border: 0; appearance: none;
    background: transparent; position: absolute; left: 0; bottom: -1px;
}
.read-progress[hidden] { display: none; }
.read-progress::-webkit-progress-bar { background: transparent; }
.read-progress::-webkit-progress-value { background: linear-gradient(90deg, var(--accent), var(--teal)); }
.read-progress::-moz-progress-bar { background: linear-gradient(90deg, var(--accent), var(--teal)); }

.account-nav { display: flex; align-items: center; gap: 8px; }
.nav-link { font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; padding: 6px 8px; }
.nav-link:hover { color: var(--accent); }
.nav-pill {
    padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
    font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; transition: .18s;
}
.nav-pill:hover, .nav-pill.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.nav-pill.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.nav-pill.primary:hover { background: var(--accent-hover); color: var(--accent-ink); }

.nav-admin {
    padding: 7px 14px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--teal)); color: #fff;
    font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: .18s;
}
.nav-admin:hover { filter: brightness(1.08); transform: translateY(-1px); }

.inline-form { display: inline; margin: 0; }
.nav-link-btn {
    border: 0; background: none; padding: 6px 4px; font: inherit; font-size: 13px; font-weight: 600;
    color: var(--muted); cursor: pointer; white-space: nowrap;
}
.nav-link-btn:hover { color: var(--accent); }

.to-main { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); white-space: nowrap; padding-left: 4px; }
.to-main:hover { color: var(--accent); }

.cats { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 13px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.chip {
    flex: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
    font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); transition: .18s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- visszajelzés ---------- */

.flash-wrap { padding-top: 18px; }
.flash {
    padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--card); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-sm);
}
.flash.ok { border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); background: var(--accent-soft); color: var(--ink); }
.flash.err { border-color: #dc2626; background: color-mix(in srgb, #dc2626 8%, var(--card)); color: #dc2626; }

/* ---------- gombok, címkék ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px;
    border: 1px solid var(--accent); border-radius: 12px; background: var(--accent); color: var(--accent-ink);
    font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: .18s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn.ghost.saved { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }
.btn.sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.btn.xs { padding: 6px 13px; font-size: 12.5px; border-radius: 9px; }
.btn.full { width: 100%; }

.pill {
    display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent);
    font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; text-decoration: none;
}
.pill.subtle { background: var(--bg); color: var(--muted); border: 1px solid var(--line); text-transform: none; letter-spacing: 0; font-weight: 600; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 8px; color: var(--faint); font-size: 13px; font-weight: 500; }

/* ---------- kártyák ---------- */

.card {
    position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); }

.card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.card:hover .card-media img { transform: scale(1.03); }
.ph-mark { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 42px; color: rgba(255, 255, 255, .9); letter-spacing: -1px; }

.ph-0 { background: linear-gradient(135deg, #0284c7, #0d9488); }
.ph-1 { background: linear-gradient(135deg, #1d4ed8, #0ea5e9); }
.ph-2 { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.ph-3 { background: linear-gradient(135deg, #334155, #0284c7); }
.ph-4 { background: linear-gradient(135deg, #0369a1, #2dd4bf); }
.ph-5 { background: linear-gradient(135deg, #1e293b, #0d9488); }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.save-btn {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--bg); color: var(--muted);
    font: inherit; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer;
    white-space: nowrap; transition: border-color .16s, background .16s, color .16s, transform .12s;
}
.save-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.save-btn:active { transform: scale(0.97); }
.save-btn.saved { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }
.save-btn.saved:hover { filter: brightness(0.96); }
.save-btn .bm-ico { flex: none; }

.card.big .save-btn {
    background: rgba(15, 23, 42, 0.58); border-color: rgba(255, 255, 255, 0.34); color: #ffffff;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card.big .save-btn:hover { background: rgba(15, 23, 42, 0.82); border-color: #ffffff; color: #ffffff; }
.card.big .save-btn.saved { background: rgba(13, 148, 136, 0.92); border-color: rgba(255, 255, 255, 0.55); color: #ffffff; }

.card.row .save-btn { padding: 3px 9px; font-size: 11.5px; }

.card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; align-items: flex-start; }
.card h3 { margin: 0; font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -.35px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.card .meta { margin-top: auto; padding-top: 6px; }

.card.big { min-height: 450px; color: #fff; border: 0; }
.card.big .card-media { position: absolute; inset: 0; aspect-ratio: auto; }
.card.big .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, .08) 25%, rgba(15, 23, 42, .9) 100%); }
.card.big .card-body { position: relative; margin-top: auto; padding: 34px; gap: 12px; }
.card.big h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.16; letter-spacing: -.7px; }
.card.big p { color: rgba(255, 255, 255, .86); font-size: 15.5px; max-width: 620px; }
.card.big .meta { color: rgba(255, 255, 255, .75); }
.card.big .pill { background: rgba(255, 255, 255, .94); color: #0f172a; }

.card.row { flex-direction: row; }
.card.row .card-media { flex: none; width: 138px; aspect-ratio: auto; }
.card.row .card-body { padding: 16px 18px; gap: 7px; }
.card.row h3 { font-size: 17px; }

/* ---------- főoldal rácsok ---------- */

.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; padding-top: 32px; }
.hero-main, .hero-main .card { height: 100%; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.hero-side .card { height: 100%; }

.list { padding: 48px 0 20px; }
.list-title {
    margin: 0 0 24px; font-weight: 800; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.6px;
    position: relative; padding-left: 16px;
}
.list-title::before {
    content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 5px; border-radius: 3px;
    background: linear-gradient(180deg, var(--accent), var(--teal));
}
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.empty { padding: 54px 0; color: var(--muted); text-align: center; }

.pager { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 42px 0 10px; color: var(--muted); font-weight: 600; }

/* ---------- cikk ---------- */

.post { max-width: 760px; padding-top: 46px; }
.preview-banner {
    margin-bottom: 24px; padding: 14px 18px; border-radius: 12px;
    background: color-mix(in srgb, #f59e0b 14%, var(--card));
    border: 1px solid color-mix(in srgb, #f59e0b 45%, var(--line));
    font-size: 14px; color: var(--ink);
}
.post-head h1 { margin: 16px 0 14px; font-weight: 800; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.12; letter-spacing: -1px; }
.post-head .lead { margin: 0 0 18px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.post-cover { margin: 32px -48px 38px; }
.post-cover img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }
.post-cover figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--faint); }
.post-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.meta-link { font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; padding-left: 4px; }
.meta-link:hover { color: var(--accent); }

/* tartalomjegyzék */
.toc-box {
    margin: 0 0 32px; padding: 18px 22px; border-radius: 14px;
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.toc-box[hidden] { display: none; }
.toc-title { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--faint); margin-bottom: 10px; }
.toc-list { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: 14.5px; }
.toc-list a { text-decoration: none; color: var(--ink); font-weight: 500; }
.toc-list a:hover { color: var(--accent); text-decoration: underline; }

.post-body, .editor { font-size: 17.5px; line-height: 1.8; overflow-wrap: anywhere; }
.post-body > :first-child { margin-top: 0; }
.post-body h2, .editor h2 { font-weight: 800; font-size: 28px; letter-spacing: -.5px; line-height: 1.25; margin: 2em 0 .6em; scroll-margin-top: 96px; }
.post-body h3, .editor h3 { font-weight: 700; font-size: 22px; letter-spacing: -.3px; margin: 1.7em 0 .5em; scroll-margin-top: 96px; }
.post-body h4, .editor h4 { font-size: 18px; margin: 1.5em 0 .4em; }
.post-body p, .editor p { margin: 0 0 1.25em; }
.post-body a, .editor a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.post-body ul, .post-body ol, .editor ul, .editor ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.post-body li, .editor li { margin-bottom: .4em; }
.post-body li::marker, .editor li::marker { color: var(--accent); font-weight: 700; }
.post-body blockquote, .editor blockquote {
    margin: 1.7em 0; padding: 12px 20px; border-left: 4px solid var(--accent);
    background: var(--accent-soft); border-radius: 0 12px 12px 0; font-size: 1.06em; color: var(--ink);
}

/* kódblokk + másolás gomb */
.code-wrap { position: relative; margin: 0 0 1.4em; }
.code-wrap pre { margin: 0; padding-top: 42px; }
.post-body pre, .editor pre { background: #0f172a; color: #f1f5f9; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: 14px; line-height: 1.6; margin: 0 0 1.4em; }
.code-copy-btn {
    position: absolute; top: 8px; right: 10px; z-index: 2;
    padding: 4px 10px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.88); color: #e2e8f0;
    font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: .15s;
}
.code-copy-btn:hover { border-color: #38bdf8; color: #ffffff; }
.code-copy-btn.copied { border-color: #2dd4bf; color: #2dd4bf; }

.post-body code, .editor code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--accent-soft); color: var(--accent); padding: 2px 6px; border-radius: 6px; }
.post-body pre code, .editor pre code { background: none; padding: 0; color: inherit; }
.post-body img, .editor img { border-radius: 14px; margin: 1.6em auto; }
.post-body hr, .editor hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }

/* nagyítható képek és lightbox */
.js-zoomable { cursor: zoom-in; transition: opacity .15s; }
.js-zoomable:hover { opacity: .94; }
.img-lightbox {
    border: 0; padding: 16px; border-radius: 18px; max-width: min(94vw, 1280px); max-height: 92vh;
    background: #0f172a; color: #f8fafc; box-shadow: 0 30px 70px rgba(0, 0, 0, .75);
}
.img-lightbox::backdrop { background: rgba(2, 6, 23, 0.84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.img-lightbox img { max-width: 100%; max-height: 80vh; width: auto; height: auto; margin: auto; border-radius: 10px; }
.lightbox-close {
    position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25); background: rgba(15, 23, 42, .85); color: #fff;
    font-size: 16px; font-weight: 700; cursor: pointer; display: grid; place-items: center;
}
.lightbox-close:hover { border-color: #38bdf8; color: #38bdf8; }
.lightbox-cap { margin: 10px 0 0; text-align: center; font-size: 13.5px; color: #cbd5e1; }

/* címkék + megosztás */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tag-chip {
    display: inline-block; padding: 5px 12px; border-radius: 999px;
    background: var(--card); border: 1px solid var(--line); color: var(--muted);
    font-size: 13px; font-weight: 600; text-decoration: none; transition: .15s;
}
.tag-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.share-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    margin-top: 28px; padding: 16px 20px; border-radius: 14px;
    background: var(--card); border: 1px solid var(--line);
}
.share-label { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.cta-box {
    display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 36px 0 10px; padding: 28px 32px;
    border-radius: 18px; background: linear-gradient(135deg, var(--accent), var(--teal)); color: #fff;
    box-shadow: var(--shadow);
}
.cta-box strong { font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
.cta-box p { margin: 4px 0 0; color: rgba(255, 255, 255, .9); font-size: 15px; }
.cta-box .btn { background: #fff; color: #0f172a; border-color: #fff; flex: none; font-weight: 700; }
.cta-box .btn:hover { background: #f8fafc; }

/* ---------- belépés / regisztráció ---------- */

.auth-wrap { padding: 52px 0 24px; display: grid; place-items: center; }
.auth-card {
    width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r); padding: 30px; box-shadow: var(--shadow);
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 24px; background: var(--bg); padding: 4px; border-radius: 12px; }
.auth-tab { text-align: center; padding: 8px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--muted); }
.auth-tab.on { background: var(--card); color: var(--ink); box-shadow: 0 2px 6px rgba(15, 23, 42, .07); }
.auth-card h1 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.auth-sub { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.auth-form { display: grid; gap: 16px; }
.auth-back { margin-top: 16px; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.forgot-link { font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input {
    width: 100%; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--line);
    background: var(--bg); color: var(--ink); font: inherit; font-size: 15px;
}
.field input:disabled { opacity: .65; cursor: not-allowed; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.field small { font-size: 12px; color: var(--faint); }

/* ---------- felhasználói fiók (/fiok) ---------- */

.account-page { padding: 40px 0 24px; display: grid; gap: 24px; }
.account-header {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 28px; box-shadow: var(--shadow-sm);
}
.account-identity { display: flex; align-items: center; gap: 16px; }
.avatar-circle {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--teal)); color: #fff;
    font-weight: 800; font-size: 21px; flex: none;
}
.account-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-header h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.account-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.account-quick-links { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    padding: 20px 26px; border-radius: var(--r);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--card)), color-mix(in srgb, var(--teal) 10%, var(--card)));
    border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
}
.admin-banner strong { font-size: 17px; font-weight: 800; }
.admin-banner p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.admin-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.panel-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
    padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.panel-card h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.panel-desc { margin: 0 0 20px; font-size: 14px; color: var(--muted); }

.user-comment-list { display: grid; gap: 14px; }
.user-comment-item {
    border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; background: var(--bg);
}
.user-comment-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.user-comment-article { font-weight: 700; font-size: 15.5px; text-decoration: none; color: var(--ink); display: inline-block; margin-bottom: 4px; }
.user-comment-article:hover { color: var(--accent); }
.user-comment-actions { display: flex; align-items: center; gap: 14px; }
.text-link { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- kommentek és lenyitható válaszszálak ---------- */

.comments { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.comments-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.comments-head h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.4px; display: flex; align-items: center; gap: 10px; }
.count-pill { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.comments-empty { color: var(--muted); font-size: 15px; }

.comment-form, .reply-form { display: grid; gap: 10px; margin-bottom: 24px; }
.comment-form textarea, .reply-form textarea {
    width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--card); color: var(--ink); font: inherit; font-size: 15px; resize: vertical;
}
.comment-form textarea:focus, .reply-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.form-row-end { display: flex; justify-content: flex-end; gap: 8px; }

.comment-gate {
    padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
    display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.comment-gate p { margin: 0; font-size: 14.5px; color: var(--muted); }
.gate-actions { display: flex; gap: 8px; }

.comment-list { display: grid; gap: 16px; }
.comment-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.comment-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--faint); margin-bottom: 8px; }
.comment-author { color: var(--ink); font-size: 14px; }
.role-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.comment-text { font-size: 15.5px; line-height: 1.65; color: var(--ink); }

.comment-toolbar { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.text-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.text-btn:hover { color: var(--accent); }
.text-btn.danger:hover { color: #dc2626; }

.dropdown-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--bg); color: var(--ink);
    font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: .15s;
}
.dropdown-btn:hover { border-color: var(--accent); color: var(--accent); }
.dropdown-btn[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.dropdown-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.chev { transition: transform .15s; display: inline-block; }

.reply-form { margin-top: 14px; margin-bottom: 0; padding-top: 14px; border-top: 1px dashed var(--line); }

.replies-panel {
    margin-top: 8px; margin-left: 20px; padding-left: 16px;
    border-left: 2px solid color-mix(in srgb, var(--accent) 40%, var(--line));
    display: grid; gap: 10px;
}
.reply-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }

.related { max-width: 1160px; padding-top: 50px; }

/* ---------- lábléc ---------- */

.site-footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 36px 0 44px; background: var(--card); }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: start; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot strong { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.foot p { margin: 8px 0 0; color: var(--muted); font-size: 14px; max-width: 440px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
.foot .copy { grid-column: 1 / -1; font-size: 12.5px; color: var(--faint); }

/* ---------- hibaoldal ---------- */

.error-box { text-align: center; padding: 90px 0; }
.error-box.inline { max-width: 560px; }
.error-page { display: grid; place-items: center; min-height: 100vh; }
.error-page .error-box { padding: 40px 24px; }
.error-code { margin: 0; font-size: 84px; font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -2px; }

/* ---------- reszponzív ---------- */

@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; }
    .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-cover { margin-inline: 0; }
    .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .wrap { width: calc(100% - 32px); }
    .bar { gap: 10px; height: 64px; }
    .brand-name { font-size: 16.5px; }
    .brand-sub, .to-main { display: none; }
    .search { flex: 1; }
    .search input, .search input:focus { width: 100%; }
    .hero-side, .grid { grid-template-columns: 1fr; }
    .card.big { min-height: 400px; }
    .card.big .card-body { padding: 24px; }
    .post-body, .editor { font-size: 16.5px; }
    .cta-box { flex-direction: column; align-items: flex-start; }
    .foot { grid-template-columns: 1fr; }
    .replies-panel { margin-left: 10px; padding-left: 12px; }
}

/* ---------- visszafogott szerzői doboz (IT szakember) ---------- */

.author-box {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    margin: 36px 0 10px; padding: 20px 24px;
    border-radius: 16px; background: var(--card); border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.author-box-info { max-width: 540px; }
.author-box-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.author-box-head strong { font-size: 16.5px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; }
.author-box p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.author-box .btn { flex: none; }

/* ---------- komment like gomb ---------- */

.like-btn {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--bg); color: var(--muted);
    font: inherit; font-size: 12.5px; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: border-color .16s, background .16s, color .16s, transform .12s;
}
.like-btn:hover { border-color: #e11d48; color: #e11d48; background: color-mix(in srgb, #e11d48 8%, var(--card)); }
.like-btn:active { transform: scale(0.95); }
.like-btn.liked {
    border-color: color-mix(in srgb, #e11d48 45%, var(--line));
    background: color-mix(in srgb, #e11d48 11%, var(--card));
    color: #e11d48;
}
:root[data-theme="dark"] .like-btn:hover,
:root[data-theme="dark"] .like-btn.liked {
    border-color: color-mix(in srgb, #fb7185 45%, var(--line));
    background: color-mix(in srgb, #fb7185 14%, var(--card));
    color: #fb7185;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .like-btn:hover,
    :root:not([data-theme="light"]) .like-btn.liked {
        border-color: color-mix(in srgb, #fb7185 45%, var(--line));
        background: color-mix(in srgb, #fb7185 14%, var(--card));
        color: #fb7185;
    }
}
.like-btn .like-ico { flex: none; transition: transform .15s; }
.like-btn.liked .like-ico { transform: scale(1.12); }

@media (max-width: 720px) {
    .author-box { flex-direction: column; align-items: flex-start; }
}
