/*
Theme Name: Oosten Unlimited
Theme URI: https://mikefrom.amsterdam
Author: Mike Oosten
Author URI: https://mikefrom.amsterdam
Description: Een allesomvattend thema voor een echte Oosten
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oosten-unlimited
Tags: custom-logo, blog, one-column, responsive-layout
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #2a2a2a;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #aa3535;
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

/* Header  */
.site-header {
    padding: 30px 0;
    border-bottom: 1px solid #444;
    margin-bottom: 40px;
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 1px;
    flex-wrap: wrap;
    text-align: left; 
}

.site-logo img {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    flex-shrink: 0;
}

.site-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.site-title a:hover {
    opacity: 0.8;
}

.site-description {
    margin: 5px 0 0;
    font-size: 1rem;
    color: #aaa;
    line-height: 1.4;
}

/* Mobiel: kleiner, maar nog steeds gecentreerd */
@media (max-width: 768px) {
    .site-branding {
        gap: 15px;
        text-align: center;
    }
    .site-title {
        font-size: 2rem;
    }
    .site-logo img {
        max-width: 80px;
        max-height: 80px;
    }
}

/* Post Styling */
.post-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: rgba(255,255,255,0.05);
    padding-bottom: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Featured Image - Zorgt voor ingezoomd effect bij niet-vierkante afbeeldingen */
.featured-image {
    margin-bottom: 15px;
    overflow: hidden;
    display: block; /* Verwijder inline-block voor consistente vulling */
    aspect-ratio: 1 / 1;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    position: relative; /* Voor eventuele overlays */
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Behoudt kwaliteit en vult het veld */
    object-position: center; /* Centreert de zoom */
    transition: transform 0.3s ease; /* Gladde animatie */
    transform: scale(1.1); /* Standaard iets ingezoomd voor vulling */
}

.featured-image:hover img {
    transform: scale(1.15); /* Extra zoom bij hover */
}

.entry-title {
    font-size: 2.2rem;
    margin: 0px;
    color: #fff;
    padding-left: 20px;
    padding-right: 20px;
}

.entry-content {
    font-size: 1rem;
    margin: 10px 0;
    color: #ddd;
    padding-left: 20px;
    padding-right: 20px;
}

.entry-date {
    color: #999;
    font-size: 0.9rem;
    margin-top: 15px;
    padding-left: 20px;
    padding-right: 20px;

}

/* Footer */
.site-footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid #444;
    text-align: center;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
}

.footer-icons a {
    font-size: 1.5rem;
    color: #fff;
    transition: color 0.3s;
}

.footer-icons a:hover {
    color: #ccc;
}

.footer-text {
    color: #777;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    .post-wrapper {
        padding-bottom: 20px;
    }
    .footer-icons {
        gap: 15px;
    }
}

/* ============================================================= */
/* ABOUT PAGE – CAROUSEL WERKT + GALLERY 100% VERBORGEN          */
/* ============================================================= */

.about-wrapper {
    max-width: 1200px;
    margin: 0px auto;
    padding: 0px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.about-gallery,
.about-content {
    min-height: 500px;
}

.carousel-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* Carousel pijltjes zichtbaar */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 0.8;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Carousel pijltjes zichtbaar 
.carousel-inner {
    aspect-ratio: 1 /1;
}
    */

.about-content {
    padding-top: 30px;
    padding-right: 30px;
    padding-bottom: 0px;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    color: #ddd;
}

.about-content h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
    line-height: 1.2;
}

.about-content .about-text {
    font-size: 1rem;
    line-height: 1.6rem;
    padding-top: 20px;
}

/* ULTIEME VERBERG GUTENBERG GALLERY – ALLE VARIANTEN */
.about-wrapper [class*="wp-block-gallery"],
.about-wrapper figure[class*="wp-block-gallery"],
.about-wrapper ul[class*="wp-block-gallery"],
.about-wrapper div[class*="wp-block-gallery"],
.about-wrapper li[class*="wp-block-gallery"],
.about-content [class*="wp-block-gallery"],
.about-content figure[class*="wp-block-gallery"],
.about-content ul[class*="wp-block-gallery"],
.about-content div[class*="wp-block-gallery"],
.about-content li[class*="wp-block-gallery"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Extra: verberg losse images in gallery-context */
.about-text img:not(.carousel-img):not([class*="wp-block-image"]) {
    display: none !important;
}

/* Mobiel */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-gallery {
        min-height: 400px;
    }
    .about-content {
        padding: 40px 30px;
    }
    .about-content h1 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .about-content {
        padding-top: 5px;
        padding-right: 20px;
        padding-bottom: 30px;
        padding-left: 20px;
    }
    .about-content h1 {
        font-size: 1.3rem;
    }
}

/* Fancybox clickable cursor */
.featured-image a,
.featured-image a img {
    cursor: zoom-in;
    display: block;
}

.featured-image a:hover img {
    opacity: 0.9;
}

/* ============================================================= */
/*  TITLE + FIRST PARAGRAPH – DESKTOP = SAME LINE, MOBILE = STACK */
/* ============================================================= */

.title-content-inline {
    padding: 0 20px;
    margin: 2px 0 10px;
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
}

/* ---- Desktop (inline) ---- */
.entry-title-inline {
    display: inline;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
}
.entry-title-inline::after {               /* één spatie tussen titel en tekst */
    content: " ";
    white-space: pre;
}

.entry-content-inline {
    display: inline;
    margin: 0;
    color: #ddd;
}
.entry-content-inline > p {
    display: inline;
    margin: 0;
}
.entry-content-inline > p:not(:first-of-type) {
    display: block;
    margin-top: 12px;
}

/* ---- Mobiel (stack) ---- */
@media (max-width: 768px) {
    .title-content-inline {
        display: block;               /* forceer block, ook bij viewport‑verandering */
    }

    .entry-title-inline {
        display: block;
        margin-bottom: 8px;
        font-size: 1.3rem;
        line-height: 1.4;
        font-weight: 700;
    }
    .entry-title-inline::after { content: none; }

    .entry-content-inline {
        display: block;
    }
    .entry-content-inline > p {
        display: block;
        margin: 0;
    }
    .entry-content-inline > p:not(:first-of-type) {
        margin-top: 12px;
    }
}

/* ============================================================= */
/* HOOFDMENU – GECENTREERD ONDER HEADER                          */
/* ============================================================= */

.main-navigation {
    margin-top: 0px;
    padding: 20px 0;
    border-top: 0px solid #444;        /* Scheiding van logo/titel */
}

.primary-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    transition: opacity 0.3s ease;
}

.primary-menu a:hover {
    opacity: 0.7;
}

/* Actieve pagina */
.primary-menu .current-menu-item > a,
.primary-menu .current-page-ancestor > a {
    color: #aa3535;
    opacity: 1;
}

/* Submenu (dropdown) – optioneel, als je die ooit gebruikt */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    min-width: 180px;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.primary-menu li:hover > .sub-menu {
    display: block;
}

.primary-menu .sub-menu a {
    padding: 10px 20px;
    font-size: 1rem;
    text-transform: none;
}

/* Mobiel: menu onder elkaar */
@media (max-width: 768px) {
    .primary-menu {
        flex-direction: column;
        gap: 15px;
    }
    .primary-menu a {
        font-size: 1.2rem;
    }
    .main-navigation {
        margin-top: 20px;
        padding: 15px 0;
    }
}

/* ============================================================= */
/* CUSTOM POST ARCHIVE – MAANDGRID MET 5 THUMBS                 */
/* ============================================================= */

.month-filter-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0 50px;
    padding: 15px 0;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #aa3535;
    color: #fff;
    border-radius: 10%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-arrow:hover {
    background: #c04040;
    transform: scale(1.1);
    opacity: 1;
}

.current-month {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

/* Grid met thumbnails */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.post-thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast; /* Scherpte boost voor Webkit (Chrome/Safari) */
    image-rendering: crisp-edges; /* Voor Firefox/Edge */
}

/* High-DPI optimalisatie */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .thumb-img {
        transform: scale(1.05); /* Extra zoom voor 2x schermen om pixelatie te maskeren */
    }
}

.thumb-link:hover .thumb-img {
    transform: scale(1.08);
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #444, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 0.9rem;
}

/* Paginering */
.archive-pagination {
    text-align: center;
    margin: 50px 0 30px;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 4px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
    background: #aa3535;
    color: #fff;
}

.archive-pagination .page-numbers.prev,
.archive-pagination .page-numbers.next {
    font-size: 1.1rem;
}

/* Responsive: 2 kolommen op mobiel */
@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .month-filter-nav {
        gap: 15px;
        font-size: 1.1rem;
        padding: 12px 0;
        max-width: 90%;
    }

    .current-month {
        font-size: 1.2rem;
    }

    .nav-arrow {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .month-filter-nav {
        gap: 10px;
    }

    .nav-arrow {
        order: -0;
    }

    .current-month {
        order: 0;
    }
}