﻿/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Mulish', 'Futura', 'Century Gothic', 'Arial Rounded MT', sans-serif;
    overflow: hidden; /* Prevent body scrolling */
    background-color: transparent;
}

/* Import Mulish font if not already in HTML */
@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;700&display=swap');

/* ===== FIXED FULL-SCREEN BACKGROUND ===== */
.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/site-background.jpg');
    background-size: cover;
    background-position: left bottom;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: -1;
}

/* ===== MAIN CONTAINER ===== */
.site-container {
    display: flex;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
}

/* ===== LEFT NAVIGATION COLUMN ===== */
.site-navigation {
    width: 20%;
    background-color: transparent;
    padding: 2rem 0 0 0;
    position: relative;
    z-index: 2;
}

/* Navigation menu */
.nav-menu {
    list-style-type: none;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nav-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Navigation links */
.nav-menu a {
    display: block;
    width: 100%;
    padding: 0.8rem 2rem;
    color: rgba(200, 200, 189, 1);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background-color: transparent;
    font-weight: 500;
}

.nav-menu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    padding-left: 2.5rem;
    color: rgba(0, 0, 0, 1);
}

/* ===== MAIN CONTENT AREA ===== */
.site-content {
    width: 80%;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem 2rem 2rem 0.5rem; /* links verkleind naar 0.5rem */
    position: relative;
    z-index: 1;
}

/* Wrapper for the translucent background */
.content-wrapper {
    width: 100%;
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 0; /* extra ruimte verwijderd */
}

/* Translucent gray content area */
.content-area {
    width: 100%;
    background-color: rgba(200, 200, 189, 0.85);
    font-size: 1.5rem;
    color: rgba(60, 60, 60, 0.9);
    text-align: left;
    line-height: 1.6;
    min-height: 300px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 1px solid rgba(200, 200, 200, 0.5);
    margin-left: 0;
    position: relative;
    left: -1px;
    top: 0px;
    
    /* Padding: top/bottom 3rem, rechts 4rem, links 2rem */
    padding: 3rem 4rem 3rem 2rem;
}

/* ===== CONTENT TYPOGRAPHY ===== */
.content-area h1 {
    font-size: 2.5rem;
    margin-bottom: 0.1rem;
    color: rgba(200, 40, 40, 0.9);
    font-weight: normal;
    border-bottom: 1px solid rgba(200, 200, 200, 0.5);
    padding-bottom: 0.2rem;
}

/* Style for subtitle h2 that follows h1 */
.content-area h1 + h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: rgba(100, 100, 100, 0.9);
    font-weight: normal;
}

/* Regular h2 for other uses (if any) */
.content-area h2:not(:first-child) {
    font-size: 1.75rem;
    margin: 0 0 1.5rem 0;
    color: rgba(50, 50, 50, 0.9);
    font-weight: normal;
}

.content-area p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.content-area a {
    color: rgba(80, 120, 160, 0.9);
    text-decoration: none;
}

.content-area a:hover {
    text-decoration: underline;
}

/* ===== AFBEELDINGEN EN FIGURE/CAPTION ===== */
/* Responsive afbeeldingen */
.content-area img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem 0;
}

/* Figure container - om afbeelding + bijschrift te groeperen */
.content-area figure {
    margin: 2rem 0;
    text-align: left;
}

/* Afbeelding binnen figure */
.content-area figure img {
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    max-height: 80vh;
    width: auto;
    max-width: 100%;
}

/* Figcaption (bijschrift) - kleiner dan paragraph */
.content-area figcaption {
    font-size: 0.95rem;
    color: rgba(80, 80, 80, 0.8);
    margin-top: 0.75rem;
    font-style: italic;
    line-height: 1.4;
    text-align: left;
}

/* Afbeeldingen binnen paragraaf (indien nodig) */
.content-area p img {
    margin: 1.5rem 0;
}

/* ===== THUMBNAIL GRID MET FLEXBOX ===== */
.thumbnails-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
    margin: 2rem 0;
}

.thumbnail-item {
    flex: 0 0 auto;
    margin-bottom: 1rem;
}

.thumbnail {
    height: 225px;
    display: inline-block;
    border: 1px solid rgba(150, 150, 150, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: transparent;
    transition: all 0.3s ease;
}

.thumbnail img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    margin: 0;
}

/* Responsive voor flexbox */
@media screen and (max-width: 1024px) {
    .thumbnails-grid {
        justify-content: center;
        gap: 0.75rem;
    }
    .thumbnail {
        height: 200px;
    }
}

@media screen and (max-width: 768px) {
    .thumbnails-grid {
        gap: 0.5rem;
    }
    .thumbnail {
        height: 180px;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media screen and (max-width: 1024px) {
    .site-navigation {
        width: 25%;
    }
    .site-content {
        width: 75%;
        padding: 1.5rem 1.5rem 1.5rem 0.5rem;
    }
    .content-wrapper {
        padding-left: 0;
    }
    .nav-menu a {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
    .content-area {
        padding: 2.5rem 3rem 2.5rem 1.5rem;
        font-size: 1.3rem;
    }
    .content-area h1 {
        font-size: 2rem;
        margin-bottom: 0.05rem;
        padding-bottom: 0.15rem;
    }
    .content-area h1 + h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    /* Afbeeldingen op tablet */
    .content-area img {
        margin: 1.75rem 0;
    }
    .content-area figure {
        margin: 1.75rem 0;
    }
    .content-area figcaption {
        font-size: 0.9rem;
    }
    /* Thumbnails op tablet */
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 0.75rem;
        margin: 1.75rem 0;
    }
    .thumbnail {
        height: 200px;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .site-container {
        flex-direction: column;
        height: 100vh;
        height: calc(var(--real-vh, 1vh) * 100);
        min-height: -webkit-fill-available;
        overflow: hidden;
    }
    .site-navigation {
        width: 100%;
        height: auto;
        padding: 0;
        background-color: transparent !important;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        flex-shrink: 0;
        position: relative;
        z-index: 10;
    }
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
    }
    .nav-menu li {
        width: auto;
        flex: 1 0 25%;
    }
    .nav-menu a {
        text-align: center;
        padding: 0.8rem 0.5rem;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
        font-size: 0.9rem;
        color: rgba(255, 255, 200, 0.9) !important;
        background-color: rgba(255, 255, 255, 0.15) !important;
    }
    .nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.25) !important;
        padding-left: 0.5rem;
    }
    .nav-menu li:last-child a {
        border-right: none !important;
    }
    .site-content {
        width: 100%;
        flex: 1;
        overflow-y: auto;
        padding: 1.5rem; /* symmetrisch op mobiel */
        -webkit-overflow-scrolling: touch;
    }
    .content-wrapper {
        min-height: auto;
        padding-left: 0;
    }
    .content-area {
        padding: 2rem;
        font-size: 1.2rem;
        min-height: 200px;
        border-left: none;
    }
    .thumbnails-grid {
        justify-content: flex-start !important;
        gap: 0.75rem;
        margin: 1.5rem 0;
    }
    .thumbnail {
        height: 180px;
    }
}

/* Small mobile */
@media screen and (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-menu a {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 0.8rem;
        text-align: left;
        font-size: 1rem;
    }
    .content-area {
        padding: 1.5rem;
        font-size: 1.1rem;
    }
    .content-area h1 {
        margin-bottom: 0;
        padding-bottom: 0.1rem;
    }
    .content-area h1 + h2 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    /* Afbeeldingen op kleine mobiel */
    .content-area img {
        margin: 1.25rem 0;
    }
    .content-area figure {
        margin: 1.25rem 0;
    }
    .content-area figcaption {
        font-size: 0.8rem;
    }
    /* Thumbnails op kleine mobiel */
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
        margin: 1.25rem 0;
    }
    .thumbnail {
        height: 160px;
    }
}

/* Large desktop */
@media screen and (min-width: 1600px) {
    .site-navigation {
        width: 18%;
    }
    .site-content {
        width: 82%;
        padding: 3rem 3rem 3rem 0.5rem;
    }
    .content-wrapper {
        padding-left: 0;
    }
    .nav-menu a {
        padding: 1.3rem 2.5rem;
        font-size: 1.3rem;
    }
    .content-area {
        padding: 4rem 5rem 4rem 2rem;
        font-size: 1.7rem;
    }
    .content-area h1 {
        font-size: 3rem;
        margin-bottom: 0.15rem;
        padding-bottom: 0.25rem;
    }
    .content-area h1 + h2 {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
    /* Afbeeldingen op groot desktop */
    .content-area img {
        margin: 2.5rem 0;
    }
    .content-area figure {
        margin: 2.5rem 0;
    }
    .content-area figcaption {
        font-size: 1.05rem;
    }
    /* Thumbnails op groot desktop */
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
        margin: 2.5rem 0;
    }
    .thumbnail {
        height: 250px;
    }
}

/* Print styles */
@media print {
    .site-background,
    .site-navigation {
        display: none;
    }
    .site-container {
        display: block;
        height: auto;
    }
    .site-content {
        width: 100%;
        height: auto;
        overflow: visible;
        padding: 0;
    }
    .content-wrapper {
        min-height: auto;
        padding-left: 0;
    }
    .content-area {
        background-color: white;
        box-shadow: none;
        border-left: none;
        padding: 1rem !important;
    }
    .nav-menu a {
        color: black !important;
        background: none !important;
    }
    /* Afbeeldingen bij print */
    .content-area img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    .content-area figure {
        page-break-inside: avoid;
    }
    .content-area figcaption {
        font-size: 0.85rem;
        color: #666;
    }
    /* Thumbnails bij print */
    .thumbnails-grid {
        display: block;
    }
    .thumbnail-item {
        page-break-inside: avoid;
        margin-bottom: 1.5rem;
    }
    .thumbnail {
        border: 1px solid #ccc;
        box-shadow: none;
        height: auto;
        max-height: 300px;
    }
    .thumbnail img {
        max-height: 250px;
        object-fit: contain;
    }
}

/* FORCEER KLEINE AFSTAND TUSSEN H1 EN H2 */
.content-area h1 {
    margin-bottom: 0 !important;
    padding-bottom: 0.2rem !important;
}

.content-area h1 + h2 {
    margin-top: 0.05rem !important;
    margin-bottom: 2rem !important;
}