/* =========================================================
   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;
}

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

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 {
    background: var(--vp-surface);
    border-bottom: 1px solid var(--vp-border);
    padding: 2rem 1rem;
}

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

.site-branding {
    text-align: center;
    margin-bottom: 1rem;
}

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

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

.site-description {
    margin: 0.5rem 0 0;
    color: var(--vp-muted);
    font-size: 1rem;
}

.main-navigation {
    margin-top: 1.5rem;
    text-align: center;
}

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

.main-navigation li {
    display: inline-block;
    margin: 0 0.75rem;
}

.main-navigation a {
    font-weight: 600;
    color: var(--vp-text);
}

.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) {
    .site-title {
        font-size: 1.75rem;
    }

    .main-navigation li {
        display: block;
        margin: 0.5rem 0;
    }

    .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;
    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;
}
