/* =========================================================
   Vriendenplek Basis Theme
   Main Stylesheet

   Dit bestand bevat alle hoofdstyles van het thema.
   Wordt geladen via inc/enqueue.php.

   Auteur: Rudy Deelen
   Website: https://vriendenplek.com
   Versie: 1.2.0

   Structuur:

   1. Reset / Basis
   2. Layout
   3. Header
   4. Navigatie
   5. Content / Posts
   6. Sidebar
   7. Widgets
   8. Footer
   9. Comments
   10. Responsive
========================================================= */

:root {
    --vp-background: #f7f9fc;
    --vp-surface: #ffffff;
    --vp-text: #333333;
    --vp-muted: #666666;
    --vp-border: #dfe5ee;
    --vp-accent: #2f6fed;
    --vp-accent-hover: #1f57c7;
    --vp-max-width: 1100px;
    --vp-radius: 12px;
    --vp-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    color-scheme: light dark;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
    color: var(--vp-text);
    background: var(--vp-background);
    transition: background .25s ease, color .25s ease;
}

/* Smooth theme transition */
body,
.site-header,
.main-navigation,
.vp-profile-menu__dropdown,
.widget,
.card,
.entry-card,
.archive-card,
button,
input,
select,
textarea,
a,
hr {
    transition:
        background-color .25s ease,
        color .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

/* Theme switch performance hint */
body,
.site-header,
.main-navigation,
.vp-profile-menu__dropdown,
.card,
.entry-card,
.widget {
    will-change: background-color, color, border-color;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--vp-accent);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--vp-accent-hover);
    text-decoration: underline;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    isolation: isolate;
}

.site-content,
.site-footer__inner {
    max-width: var(--vp-max-width);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Override de algemene max-width inner voor de header — padding ipv margin */
.site-header .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    max-width: var(--vp-max-width);
    margin: 0 auto;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.2;
}

.site-title a {
    color: var(--vp-text);
    text-decoration: none;
}

.site-description {
    display: none;
}

/* ── Rechterhelft: nav + profiel + hamburger ── */
.site-header__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ── Hoofdnavigatie ── */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 0.45rem 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--vp-text);
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a {
    background: #f0f4ff;
    color: var(--vp-accent);
    text-decoration: none;
}

/* ── BuddyPress profielmenu ── */
.vp-profile-menu {
    position: relative;
    flex-shrink: 0;
}

.vp-profile-menu__trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    color: var(--vp-text);
    transition: background 0.15s;
}

.vp-profile-menu__trigger:hover {
    background: #f0f4ff;
}

.vp-profile-menu__avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover;
    display: block;
}

.vp-profile-menu__chevron {
    transition: transform 0.2s;
    color: var(--vp-muted);
}

.vp-profile-menu__trigger[aria-expanded="true"] .vp-profile-menu__chevron {
    transform: rotate(180deg);
}

.vp-profile-menu__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #fff;
    border: 1px solid var(--vp-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    min-width: 190px;
    list-style: none;
    margin: 0;
    padding: 0.4rem;
    z-index: 9999;
}

.vp-profile-menu__dropdown.is-open {
    display: block;
}

.vp-profile-menu__dropdown li {
    display: block;
}

.vp-profile-menu__dropdown a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    color: var(--vp-text);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s;
}

.vp-profile-menu__dropdown a:hover {
    background: #f0f4ff;
    color: var(--vp-accent);
    text-decoration: none;
}

.vp-profile-menu__dropdown a svg {
    flex-shrink: 0;
    color: var(--vp-muted);
}

.vp-profile-menu__divider {
    height: 1px;
    background: var(--vp-border);
    margin: 0.35rem 0.5rem;
}

.vp-profile-menu__logout {
    color: #dc2626 !important;
}

.vp-profile-menu__logout svg {
    color: #dc2626 !important;
}

.vp-profile-menu__logout:hover {
    background: #fff1f1 !important;
    color: #dc2626 !important;
}

/* ── Hamburger ── */
.vp-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
    flex-shrink: 0;
}

.vp-hamburger:hover {
    background: #f0f4ff;
}

.vp-hamburger__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--vp-text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
}

/* Hamburger → kruis animatie */
.nav-open .vp-hamburger__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-open .vp-hamburger__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-open .vp-hamburger__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hamburger boven nav-panel houden als menu open is */
.nav-open .vp-hamburger {
    position: fixed;
    top: 0.65rem;
    right: 1rem;
    z-index: 1001;
    background: #fff;
}

/* ── Mobiel overlay ── */
.vp-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 998;
    backdrop-filter: blur(2px);
}

.nav-open .vp-nav-overlay {
    display: block;
}

/* ─────────────────────────────────────────────
   RESPONSIVE: mobiele navigatie
───────────────────────────────────────────── */
@media (max-width: 768px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1100;
    }

    .site-header .site-header__inner {
        padding: 0.6rem 0.75rem;
        gap: 0.5rem;
        min-height: 56px;
    }

    .site-branding,
    .site-header__right {
        min-width: 0;
    }

    .site-logo img,
    .site-logo a img,
    .custom-logo {
        max-width: 120px !important;
        max-height: 40px !important;
        width: auto !important;
        height: auto !important;
    }

    .site-header__right {
        gap: 0.35rem;
    }

    .vp-profile-menu__trigger {
        padding: 0.2rem 0.25rem;
        gap: 0.2rem;
    }

    .vp-profile-menu__avatar {
        width: 28px !important;
        height: 28px !important;
    }

    .vp-profile-menu__chevron {
        display: none;
    }

    .vp-hamburger {
        display: inline-flex;
        position: relative;
        z-index: 1110;
    }

    .main-navigation {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: min(280px, 82vw);
        height: 100vh;
        padding: 4.5rem 1rem 1.5rem;
        background: #fff;
        border-left: 1px solid var(--vp-border);
        box-shadow: -6px 0 24px rgba(0, 0, 0, 0.14);
        z-index: 1105;
        overflow-y: auto;
    }

    .nav-open .main-navigation {
        display: block;
    }

    .main-navigation ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        width: 100%;
    }

    .nav-open .vp-hamburger {
        position: fixed;
        top: 0.65rem;
        right: 0.75rem;
        z-index: 1115;
        background: #fff;
        border-radius: 6px;
    }

    .vp-nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1101;
    }

    .nav-open .vp-nav-overlay {
        display: block;
    }

    .vp-profile-menu__dropdown {
        right: 0;
        left: auto;
        max-width: min(260px, calc(100vw - 1rem));
    }
}

.site-content {
    padding: 2rem 1rem 3rem;
}

.content-area {
    width: 100%;
}

.post-card {
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius);
    box-shadow: var(--vp-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.post-card__thumbnail {
    margin: -1.5rem -1.5rem 1.25rem;
    overflow: hidden;
    border-radius: var(--vp-radius) var(--vp-radius) 0 0;
}

.post-card__thumbnail img {
    width: 100%;
}

.entry-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.7rem;
    line-height: 1.3;
}

.entry-title a {
    color: var(--vp-text);
    text-decoration: none;
}

.entry-meta {
    margin-bottom: 1rem;
    color: var(--vp-muted);
    font-size: 0.95rem;
}

.entry-summary {
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    padding: 0.7rem 1rem;
    background: var(--vp-accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover,
.read-more:focus {
    background: var(--vp-accent-hover);
    color: #fff;
    text-decoration: none;
}

.site-footer {
    background: var(--vp-surface);
    border-top: 1px solid var(--vp-border);
    padding: 1.5rem 1rem;
    color: var(--vp-muted);
    font-size: 0.95rem;
}

.site-footer__inner {
    text-align: center;
}

.no-posts {
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius);
    padding: 2rem;
}

@media (max-width: 768px) {
    .post-card {
        padding: 1.25rem;
    }

    .post-card__thumbnail {
        margin: -1.25rem -1.25rem 1rem;
    }
}

.entry-content {
    margin-bottom: 1.5rem;
}

.entry-content p {
    margin-bottom: 1.2rem;
}

.entry-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--vp-border);
}

.post-taxonomy {
    margin: 0.5rem 0;
    color: var(--vp-muted);
}

.post-taxonomy strong {
    color: var(--vp-text);
}

.post-navigation {
    margin: 2rem 0;
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--vp-shadow);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation a {
    font-weight: 600;
}

@media (max-width: 768px) {
    .post-navigation .nav-links {
        flex-direction: column;
    }
}

.comments-area {
    margin-top: 2rem;
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius);
    box-shadow: var(--vp-shadow);
    padding: 1.5rem;
}

.comments-title,
.comment-reply-title {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--vp-text);
}

.comment-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.comment-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--vp-border);
}

.comment-list li:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-body {
    position: relative;
}

.comment-meta {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--vp-muted);
}

.comment-author {
    font-weight: 600;
    color: var(--vp-text);
}

.comment-author img {
    border-radius: 50%;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.comment-metadata a {
    color: var(--vp-muted);
    text-decoration: none;
}

.comment-content p {
    margin: 0 0 1rem;
}

.reply a,
.comment-reply-link {
    display: inline-block;
    font-weight: 600;
    color: var(--vp-accent);
}

.no-comments {
    color: var(--vp-muted);
}

.comment-form-custom p {
    margin-bottom: 1rem;
}

.comment-form-custom label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--vp-text);
}

.comment-form-custom input[type="text"],
.comment-form-custom input[type="email"],
.comment-form-custom input[type="url"],
.comment-form-custom textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--vp-border);
    border-radius: 8px;
    font: inherit;
    color: var(--vp-text);
    background: #fff;
}

.comment-form-custom textarea {
    min-height: 140px;
    resize: vertical;
}

.comment-form-custom input:focus,
.comment-form-custom textarea:focus {
    outline: none;
    border-color: var(--vp-accent);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

.comment-form-custom .submit {
    display: inline-block;
    padding: 0.8rem 1.1rem;
    border: 0;
    border-radius: 8px;
    background: var(--vp-accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.comment-form-custom .submit:hover,
.comment-form-custom .submit:focus {
    background: var(--vp-accent-hover);
}

.comments-navigation {
    margin: 1.5rem 0;
}

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

.sidebar {
    width: 100%;
}

.widget {
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius);
    box-shadow: var(--vp-shadow);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--vp-text);
}

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

.widget ul li {
    margin-bottom: 0.65rem;
}

.widget ul li:last-child {
    margin-bottom: 0;
}

.widget select,
.widget input[type="search"],
.widget input[type="text"],
.widget input[type="email"],
.widget input[type="url"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--vp-border);
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: var(--vp-text);
}

.widget input:focus,
.widget select:focus {
    outline: none;
    border-color: var(--vp-accent);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

.widget .search-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.widget .search-submit {
    display: inline-block;
    padding: 0.8rem 1rem;
    border: 0;
    border-radius: 8px;
    background: var(--vp-accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.widget .search-submit:hover,
.widget .search-submit:focus {
    background: var(--vp-accent-hover);
}

@media (max-width: 900px) {
    .site-layout {
        grid-template-columns: 1fr;
    }
}

.archive-header {
    margin-bottom: 2rem;
}

.archive-title {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    line-height: 1.3;
}

.archive-description {
    color: var(--vp-muted);
}

.archive-description p:last-child {
    margin-bottom: 0;
}

.no-results-search {
    margin-top: 1.5rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-field {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--vp-border);
    border-radius: 8px;
    font: inherit;
    color: var(--vp-text);
    background: #fff;
}

.search-field:focus {
    outline: none;
    border-color: var(--vp-accent);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

.search-submit {
    display: inline-block;
    padding: 0.8rem 1rem;
    border: 0;
    border-radius: 8px;
    background: var(--vp-accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.search-submit:hover,
.search-submit:focus {
    background: var(--vp-accent-hover);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-logo img {
    max-height: 80px;
    max-width: 120px;
    width: auto;
    margin: 0 auto;
}

.site-header-image {
    margin-top: 1.5rem;
    border-radius: var(--vp-radius);
    overflow: hidden;
}

.site-header-image img {
    width: 100%;
    height: auto;
    display: block;
}

.home-intro {
    margin-bottom: 2rem;
}

.home-intro__content>*:first-child {
    margin-top: 0;
}

.home-intro__content>*:last-child {
    margin-bottom: 0;
}

.site-layout.no-sidebar {
    grid-template-columns: 1fr;
}

.site-layout.no-sidebar .content-area {
    max-width: 820px;
    width: 100%;
}

/* ---------------------------------
   WordPress content styling
--------------------------------- */

.entry-content blockquote,
.entry-summary blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--vp-accent);
    background: #f3f6fb;
    color: var(--vp-text);
    border-radius: 0 8px 8px 0;
}

.entry-content blockquote p:last-child,
.entry-summary blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content table,
.entry-summary table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
}

.entry-content th,
.entry-content td,
.entry-summary th,
.entry-summary td {
    padding: 0.85rem 1rem;
    border: 1px solid var(--vp-border);
    text-align: left;
}

.entry-content th,
.entry-summary th {
    background: #f3f6fb;
    font-weight: 600;
}

.entry-content caption,
.entry-summary caption {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--vp-muted);
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5rem 1.5rem;
}

.entry-content li,
.entry-summary li {
    margin-bottom: 0.5rem;
}

.entry-content pre,
.entry-summary pre {
    overflow-x: auto;
    padding: 1rem;
    background: #1f2430;
    color: #f1f1f1;
    border-radius: 8px;
    font-size: 0.95rem;
}

.entry-content code,
.entry-summary code {
    font-family: Consolas, Monaco, monospace;
    font-size: 0.95em;
}

.entry-content hr,
.entry-summary hr {
    border: 0;
    border-top: 1px solid var(--vp-border);
    margin: 2rem 0;
}

.wp-caption {
    max-width: 100%;
    margin: 1.5rem 0;
    background: #fff;
    border: 1px solid var(--vp-border);
    border-radius: 10px;
    padding: 0.75rem;
}

.wp-caption img {
    margin-bottom: 0.5rem;
    border-radius: 6px;
}

.wp-caption-text {
    margin: 0;
    font-size: 0.92rem;
    color: var(--vp-muted);
    text-align: center;
}

.gallery {
    margin: 1.5rem 0;
}

.gallery img {
    border-radius: 8px;
}

.alignleft {
    float: left;
    margin: 0.4rem 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0.4rem 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin: 1.5rem auto;
}

.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

.error-404__search {
    margin: 1.5rem 0;
}

.not-found .entry-content>*:first-child {
    margin-top: 0;
}

/* Post navigation styling */
.posts-navigation,
.post-navigation {
    margin-top: 2rem;
}

.posts-navigation .nav-links,
.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.posts-navigation .nav-previous,
.posts-navigation .nav-next,
.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.posts-navigation a,
.post-navigation a {
    display: inline-block;
    font-weight: 600;
}

/* Responsive tables and aligned images */
@media (max-width: 768px) {

    .alignleft,
    .alignright {
        float: none;
        display: block;
        margin: 1rem auto;
    }

    .entry-content table,
    .entry-summary table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .posts-navigation .nav-links,
    .post-navigation .nav-links {
        flex-direction: column;
    }
}

.home-intro {
    padding: 2rem;
}

.home-intro__content {
    max-width: 760px;
}

.home-intro__content p {
    margin-bottom: 1rem;
}

.home-intro__content p:last-child {
    margin-bottom: 0;
}

.home-intro__content strong {
    color: var(--vp-text);
}

.home-intro__content a {
    font-weight: 600;
}

.home-intro__content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--vp-text);
}

@media (max-width: 768px) {
    .home-intro {
        padding: 1.5rem;
    }

    .home-intro__content {
        font-size: 1rem;
    }
}

/* =========================================================
   Blog layout variations
========================================================= */

.content-area--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}

.content-area--grid .home-intro,
.content-area--grid .page-header,
.content-area--grid .archive-description,
.content-area--grid .no-posts,
.content-area--grid .navigation,
.content-area--grid .posts-navigation {
    grid-column: 1 / -1;
}

.content-area--grid .post-card {
    height: 100%;
}

.content-area--grid .post-card__thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .content-area--grid {
        grid-template-columns: 1fr;
    }
}

/* Post card layout improvements */

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card .entry-summary {
    flex-grow: 1;
}

.post-card .read-more {
    margin-top: auto;
}

/* Featured posts */

.post-card.is-featured {
    border: 2px solid var(--vp-accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.post-card.is-featured .entry-title::before {
    content: "★ ";
    color: var(--vp-accent);
}

.content-area--grid .post-card.is-featured {
    grid-column: 1 / -1;
}

.content-area--grid .post-card.is-featured .post-card__thumbnail img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

/* Pinned posts */

.post-card.is-pinned {
    position: relative;
}

.post-card.is-pinned .entry-title::after {
    content: " 📌";
    font-size: 0.9em;
}

.post-card__thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* -----------------------------------------
   Theme switcher
----------------------------------------- */
.vp-theme-switcher {
    padding: 0.85rem 1rem;
}

.vp-theme-switcher__label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--vp-muted);
}

.vp-theme-switcher__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vp-theme-switcher__button {
    appearance: none;
    border: 1px solid var(--vp-border);
    background: var(--vp-surface, #ffffff);
    color: var(--vp-text);
    border-radius: 0.75rem;
    padding: 0.5rem 0.85rem;
    min-height: 38px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.vp-theme-switcher__button:hover,
.vp-theme-switcher__button:focus-visible {
    background: var(--vp-surface-hover, #f3f4f6);
    border-color: var(--vp-accent);
    color: var(--vp-accent);
    outline: none;
}

.vp-theme-switcher__button:active {
    transform: translateY(1px);
}

.vp-theme-switcher__button.is-active {
    background: var(--vp-accent);
    border-color: var(--vp-accent);
    color: #ffffff;
}

.vp-theme-switcher__button.is-active:hover,
.vp-theme-switcher__button.is-active:focus-visible {
    background: var(--vp-accent-hover);
    border-color: var(--vp-accent-hover);
    color: #ffffff;
}

@media (max-width: 480px) {
    .vp-theme-switcher__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .vp-theme-switcher__button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .vp-profile-menu,
    .vp-profile-menu__dropdown {
        overflow: visible !important;
        max-height: none !important;
    }

    .vp-profile-menu__dropdown .vp-theme-switcher {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .vp-profile-menu__dropdown .vp-theme-switcher__label {
        display: block !important;
    }

    .vp-profile-menu__dropdown .vp-theme-switcher__buttons {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .vp-profile-menu__dropdown .vp-theme-switcher__button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* -----------------------------------------
   Sticky header polish
----------------------------------------- */

.site-header {
    background: #ffffff;
}

.site-header.is-sticky,
.site-header.is-scrolled,
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
