/* ==========================================================================
   Bibci.hu – Kézműves, gyors, sallangmentes stíluslap
   ========================================================================== */

:root {
    --plum: #7a3b68;
    --plum-dark: #5b284d;
    --plum-deep: #3d1833;
    --plum-soft: #f6edf3;
    --plum-tint: #fbf7fa;
    --plum-border: #dec6d7;
    --honey: #b8642a;
    --honey-bg: #fdf3eb;
    --surface: #ffffff;
    --ink: #291c25;
    --ink-muted: #6c5766;
    --success-bg: #edf7f0;
    --success-fg: #1d6436;
    --error-bg: #fdf0f0;
    --error-fg: #9c2424;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 7px;
    --shadow-card: 0 3px 14px rgba(74, 30, 62, 0.07);
    --shadow-hover: 0 8px 24px rgba(74, 30, 62, 0.14);
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Cambria", "Times New Roman", serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: #f9f4f7;
    background-image:
        linear-gradient(rgba(250, 245, 248, 0.78), rgba(250, 245, 248, 0.78)),
        url('/uploads/2023/03/bg2-1.png');
    background-repeat: repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, video, iframe {
    max-width: 100%;
}

a {
    color: var(--plum);
    text-decoration: none;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

a:hover {
    color: var(--plum-dark);
}

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 1.15rem;
}

/* Admin felső sáv (csak ha Bibci be van jelentkezve) */
.admin-topbar {
    background: var(--plum-deep);
    color: #f7eaf3;
    font-size: 0.88rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.admin-topbar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
}

.admin-topbar a {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-weight: 600;
}

.admin-topbar a:hover {
    background: rgba(255, 255, 255, 0.26);
}

/* Fejléc & Banner */
.site-header {
    box-shadow: 0 2px 12px rgba(61, 24, 51, 0.1);
    background: var(--surface);
}

.header-banner {
    position: relative;
    min-height: 195px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--plum-dark);
}

.header-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% 21%;
}

.header-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(61, 24, 51, 0.86) 0%, rgba(122, 59, 104, 0.68) 60%, rgba(91, 40, 77, 0.78) 100%);
}

.header-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
}

.brand-link {
    display: flex;
    flex-direction: column;
    color: #fff;
    text-shadow: 0 2px 10px rgba(25, 8, 21, 0.45);
}

.brand-link:hover {
    color: #fff;
}

.site-title {
    font-family: var(--font-serif);
    font-size: clamp(2.1rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.site-tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #f6e7f1;
    margin-top: 0.25rem;
}

.header-count-pill {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
}

/* Navigáció */
.main-nav {
    background: var(--surface);
    border-bottom: 2px solid var(--plum-border);
}

.main-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 54px;
    flex-wrap: wrap;
}

.nav-toggle {
    display: none;
    background: var(--plum-soft);
    color: var(--plum-dark);
    border: 1px solid var(--plum-border);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: inline-block;
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.98rem;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--plum-soft);
    color: var(--plum-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    background: var(--plum-soft);
    border: 1px solid var(--plum-border);
    border-radius: 999px;
    padding: 0.14rem;
    gap: 0.1rem;
}

.lang-pill {
    display: inline-block;
    padding: 0.24rem 0.62rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--plum-dark);
    line-height: 1.25;
}

.lang-pill:hover {
    color: var(--plum-deep);
}

.lang-pill.active {
    background: var(--plum);
    color: #fff;
}

.nav-search-form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.35rem 0;
}

.nav-search-form input {
    width: 220px;
    padding: 0.42rem 0.75rem;
    border: 1px solid var(--plum-border);
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    background: var(--plum-tint);
    color: var(--ink);
}

.nav-search-form input:focus {
    outline: 2px solid var(--plum);
    background: #fff;
}

.nav-search-form button,
.widget-search-form button,
.btn-primary {
    background: var(--plum);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.46rem 0.95rem;
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.16s ease, transform 0.1s ease;
}

.nav-search-form button:hover,
.widget-search-form button:hover,
.btn-primary:hover {
    background: var(--plum-dark);
    color: #fff;
}

/* Fő elrendezés (2 oszlop asztali gépen) */
.site-body {
    flex: 1;
    padding: 2rem 0 3rem;
}

.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.85rem;
    align-items: start;
}

/* Archív / Keresés fejléc */
.archive-header {
    background: var(--surface);
    border: 1px solid var(--plum-border);
    border-left: 5px solid var(--plum);
    border-radius: var(--radius-md);
    padding: 1rem 1.35rem;
    margin-bottom: 1.35rem;
    box-shadow: var(--shadow-card);
}

.archive-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.55rem;
    color: var(--plum-deep);
}

.archive-subtitle {
    margin: 0.2rem 0 0;
    color: var(--ink-muted);
    font-size: 0.95rem;
}

/* Kártyás bejegyzés-rács */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.35rem;
}

.post-card {
    background: var(--surface);
    border: 1px solid var(--plum-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--plum);
}

.post-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--plum-soft);
    overflow: hidden;
}

.post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transition: transform 0.32s ease;
}

.post-card:hover .post-card-media img {
    transform: scale(1.04);
}

.post-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum);
    font-family: var(--font-serif);
    font-style: italic;
}

.video-badge {
    position: absolute;
    bottom: 0.65rem;
    right: 0.65rem;
    background: rgba(61, 24, 51, 0.88);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.post-card-body {
    padding: 1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

.cat-chip {
    display: inline-block;
    background: var(--plum-soft);
    color: var(--plum-dark);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: lowercase;
    padding: 0.14rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--plum-border);
}

.cat-chip:hover {
    background: var(--plum);
    color: #fff;
    border-color: var(--plum);
}

.post-card-title {
    margin: 0 0 0.65rem;
    font-family: var(--font-serif);
    font-size: 1.18rem;
    line-height: 1.35;
}

.post-card-title a {
    color: var(--ink);
}

.post-card-title a:hover {
    color: var(--plum);
}

.post-card-meta {
    margin-top: auto;
    padding-top: 0.55rem;
    border-top: 1px dashed #eee1ea;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.86rem;
    color: var(--ink-muted);
}

.meta-comments {
    font-weight: 600;
    color: var(--plum);
}

/* Lapozó */
.pagination {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--plum-border);
    color: var(--ink);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.page-btn:hover {
    border-color: var(--plum);
    background: var(--plum-soft);
    color: var(--plum-dark);
}

.page-btn.active {
    background: var(--plum);
    border-color: var(--plum);
    color: #fff;
}

.page-dots {
    padding: 0 0.35rem;
    color: var(--ink-muted);
}

/* Egyedi bejegyzés és statikus oldal kártya */
.single-card {
    background: var(--surface);
    border: 1px solid var(--plum-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3.5vw, 2.25rem);
    box-shadow: var(--shadow-card);
}

.breadcrumb {
    font-size: 0.88rem;
    color: var(--ink-muted);
    margin-bottom: 0.65rem;
}

.breadcrumb .sep {
    margin: 0 0.35rem;
}

.single-header {
    border-bottom: 1px solid #efe4ec;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.single-title {
    margin: 0 0 0.55rem;
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    line-height: 1.25;
    color: var(--plum-deep);
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    color: var(--ink-muted);
}

.edit-inline-link {
    font-weight: 600;
    background: var(--honey-bg);
    color: var(--honey);
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
}

/* Bejegyzés belső tartalom, képek és videók */
.single-content {
    font-size: 1.08rem;
    line-height: 1.75;
}

.single-content p {
    margin: 0 0 1.15rem;
}

.single-content h2,
.single-content h3 {
    font-family: var(--font-serif);
    color: var(--plum-deep);
    margin: 1.75rem 0 0.65rem;
}

.single-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-content figure,
.featured-hero {
    margin: 0 0 1.5rem;
    text-align: center;
}

.single-content img,
.featured-hero img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    max-height: 760px;
    border-radius: var(--radius-md);
    border: 1px solid #eadbe5;
    box-shadow: 0 4px 16px rgba(42, 20, 36, 0.08);
    cursor: zoom-in;
}

/* Reszponzív YouTube (16:9), YouTube Shorts (9:16) és MP4 videók */
.video-embed {
    margin: 1.6rem auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #140b12;
    box-shadow: 0 6px 20px rgba(42, 20, 36, 0.14);
}

.video-wide {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-short {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 9 / 16;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-native {
    max-width: 680px;
}

.video-native video {
    width: 100%;
    height: auto;
    display: block;
}

.single-tags {
    margin-top: 1.8rem;
    padding-top: 1.1rem;
    border-top: 1px solid #efe4ec;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.tags-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-muted);
    margin-right: 0.25rem;
}

/* Előző / Következő munka kártyák */
.post-adjacent {
    margin-top: 1.35rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.adj-card {
    background: var(--surface);
    border: 1px solid var(--plum-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-card);
}

.adj-card:hover {
    border-color: var(--plum);
    background: var(--plum-tint);
}

.adj-next {
    justify-content: flex-end;
    text-align: right;
}

.adj-card img {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.adj-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.adj-dir {
    font-size: 0.8rem;
    color: var(--ink-muted);
    font-weight: 600;
}

.adj-text strong {
    font-size: 0.95rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hozzászólások */
.comments-section {
    margin-top: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--plum-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.2rem, 3vw, 2rem);
    box-shadow: var(--shadow-card);
}

.comments-heading {
    margin: 0 0 1.2rem;
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--plum-deep);
}

.comment-list,
.comment-replies {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-item {
    background: var(--plum-tint);
    border: 1px solid #eadbe5;
    border-radius: var(--radius-md);
    padding: 0.95rem 1.15rem;
    margin-bottom: 0.9rem;
}

.comment-item.is-author {
    background: #fdf6fa;
    border-color: var(--plum);
    border-left-width: 4px;
}

.comment-replies {
    margin-top: 0.8rem;
    padding-left: 1.1rem;
    border-left: 2px solid var(--plum-border);
}

.comment-replies .comment-item {
    margin-bottom: 0.65rem;
    background: #fff;
}

.comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
}

.comment-author {
    color: var(--plum-deep);
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.author-badge {
    background: var(--plum);
    color: #fff;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}

.comment-date {
    font-size: 0.82rem;
    color: var(--ink-muted);
}

.comment-body {
    font-size: 0.98rem;
    line-height: 1.6;
    word-break: break-word;
}

.comment-actions {
    margin-top: 0.45rem;
}

.reply-btn,
.cancel-reply-btn {
    background: none;
    border: none;
    color: var(--plum);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.15rem 0;
    cursor: pointer;
}

.reply-btn:hover,
.cancel-reply-btn:hover {
    text-decoration: underline;
}

.no-comments-yet {
    color: var(--ink-muted);
    font-style: italic;
    margin-bottom: 1.2rem;
}

.comment-form-box {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid #efe4ec;
}

.comment-form-title {
    margin: 0 0 0.8rem;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--plum-deep);
}

.reply-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--plum-soft);
    border: 1px solid var(--plum-border);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
}

.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.form-field {
    margin-bottom: 0.9rem;
}

.form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
}

.form-field .req {
    color: #c02a2a;
}

.form-field .opt {
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--ink-muted);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--plum-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.98rem;
    background: var(--plum-tint);
    color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 2px solid var(--plum);
    background: #fff;
}

.moderation-hint,
.admin-comment-note {
    font-size: 0.88rem;
    color: var(--ink-muted);
    margin: 0 0 0.85rem;
}

/* Honeypot elrejtése */
.hp-wrap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Értesítések */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-fg);
    border: 1px solid #b9e2c7;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-fg);
    border: 1px solid #efbcbc;
}

/* Oldalsáv widgetek */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.widget {
    background: var(--surface);
    border: 1px solid var(--plum);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow-card);
}

.widget-search-mobile {
    display: none;
}

.widget-title {
    margin: 0 0 0.8rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--plum-soft);
    font-family: var(--font-serif);
    font-size: 1.18rem;
    color: var(--plum-deep);
}

.widget-search-form {
    display: flex;
    gap: 0.4rem;
}

.widget-search-form input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--plum-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-list li + li {
    border-top: 1px dashed #efe3ec;
}

.widget-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.35rem;
    color: var(--ink);
    font-weight: 500;
    border-radius: 5px;
}

.widget-list a:hover,
.widget-list a.active {
    background: var(--plum-soft);
    color: var(--plum-dark);
    padding-left: 0.6rem;
}

.count-badge {
    background: var(--plum-soft);
    color: var(--plum-dark);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.tag-pill {
    display: inline-block;
    background: var(--plum-tint);
    border: 1px solid var(--plum-border);
    color: var(--ink);
    font-size: 0.82rem;
    padding: 0.2rem 0.58rem;
    border-radius: 999px;
}

.tag-pill:hover,
.tag-pill.active {
    background: var(--plum);
    border-color: var(--plum);
    color: #fff;
}

.recent-comments-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-comments-list li + li {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px dashed #efe3ec;
}

.rc-link {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    color: var(--ink);
}

.rc-author {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--plum-dark);
}

.admin-mini-badge {
    font-style: normal;
    background: var(--plum);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    margin-left: 0.25rem;
}

.rc-post {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--ink);
}

.rc-snippet {
    font-size: 0.82rem;
    color: var(--ink-muted);
}

.empty-state {
    background: var(--surface);
    border: 1px solid var(--plum-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-card);
}

/* Lábléc */
.site-footer {
    background: var(--plum-dark);
    color: #f4e6f0;
    padding: 1.8rem 0 1.3rem;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
}

.footer-brand p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #e4cde0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
}

.footer-links a {
    color: #fff;
    font-size: 0.93rem;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 0.9rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: #dbc1d5;
}

/* Lightbox képnagyító */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(24, 10, 20, 0.92);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.lightbox[hidden] {
    display: none !important;
}

.lightbox-stage {
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-stage img {
    max-width: 92vw;
    max-height: 84vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.lightbox-caption {
    margin-top: 0.6rem;
    color: #f3e6ef;
    font-size: 0.92rem;
    text-align: center;
}

.lightbox-close,
.lightbox-nav {
    position: fixed;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--plum);
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 1.15rem;
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Mobil & Tablet reszponzivitás */
@media (max-width: 960px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
        margin: 0.45rem 0;
        order: 1;
    }
    .nav-actions {
        order: 2;
    }
    .nav-links {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 0.6rem;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-search-form {
        display: none;
    }
    .widget-search-mobile {
        display: block;
    }
    .post-adjacent,
    .form-row-two {
        grid-template-columns: 1fr;
    }
    .adj-next {
        justify-content: flex-start;
        text-align: left;
    }
}
