/* ==========================================================================
   Globale Styles
   ========================================================================== */
body {
    background-color: #1a1a1a;
    color: #f0f0f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
}

.logo { font-weight: bold; font-size: 1.5rem; }
.account-link a { color: #fff; text-decoration: none; background: rgba(255,255,255,0.1); padding: 8px 15px; border-radius: 20px; transition: background 0.3s; }
.account-link a:hover { background: rgba(255,255,255,0.2); }

/* ==========================================================================
   Desktop: Horizontale Tijdlijn
   ========================================================================== */
@media screen and (min-width: 769px) {
    #timeline-container {
        width: 100vw;
        height: 100vh;
        overflow-x: scroll;
        overflow-y: hidden;
        position: fixed;
        top: 0;
        left: 0;
        scrollbar-width: none; /* Firefox */
    }
    #timeline-container::-webkit-scrollbar { display: none; /* Chrome, Safari */ }

    .timeline-wrapper {
        display: flex;
        flex-direction: row;
        height: 100%;
        width: min-content; /* Zorgt dat de wrapper zo breed is als alle sections */
    }

    .year-section {
        flex-shrink: 0;
        width: 100vw;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 120px 60px; /* Ruimte voor header en footer nav */
        border-right: 1px solid #444; /* Scheidingslijn tussen jaren */
    }
}

/* ==========================================================================
   Mobiel & Tablet: Verticale Layout
   ========================================================================== */
@media screen and (max-width: 768px) {
    .site-content {
        padding-top: 80px; /* Ruimte voor de vaste header */
    }
    #timeline-container {
        position: static;
        height: auto;
        width: 100%;
        overflow-x: hidden;
    }
    .timeline-wrapper {
        flex-direction: column;
        height: auto;
    }
    .year-section {
        width: 100%;
        min-height: 100vh; /* Zorgt dat een sectie minstens schermhoog is */
        padding: 40px 20px;
        border-bottom: 1px solid #444;
    }
}

/* ==========================================================================
   Jaar Sectie Content Styling (Geldt voor beide layouts)
   ========================================================================== */
.year-content-wrapper {
    max-width: 900px;
    width: 100%;
    text-align: center;
}
.year-title {
    font-size: clamp(3rem, 10vw, 6rem); /* Responsive lettergrootte */
    margin-bottom: 30px;
}
.year-main-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px auto;
}
.year-gallery h3 {
    margin: 40px 0 20px 0;
    font-size: 1.5rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.gallery-item figcaption {
    font-size: 0.9rem;
    margin-top: 8px;
    color: #ccc;
    text-align: left;
}


/* ==========================================================================
   Jaar Navigatie (Footer)
   ========================================================================== */
.year-navigation {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 50px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    overflow-x: hidden; /* Verberg jaartallen die buiten de balk vallen */
}
/* Vervang je bestaande .year-navigation ul */
.year-navigation ul {
    display: flex;
    justify-content: space-between; /* BELANGRIJK: Zorgt voor uitlijning aan begin/eind */
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    /* De breedte wordt nu door JavaScript bepaald */
}
.year-navigation a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #aaa;
    padding: 5px 10px;
    position: relative;
    transition: color 0.3s ease;
}
.nav-dot {
    display: block;
    width: 8px;
    height: 8px;
    background-color: currentColor;
    border-radius: 50%;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}
.nav-year {
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.year-navigation a:hover .nav-year,
.year-navigation li.active a .nav-year {
    opacity: 1;
}
.year-navigation a:hover,
.year-navigation li.active a {
    color: #fff;
}
.year-navigation li.active .nav-dot {
    transform: scale(1.8);
}

/* ==========================================================================
   Standaard Pagina & Authenticatie Styles
   ========================================================================== */
.page-wrapper, .auth-form-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    color: #333;
    border-radius: 8px;
}

@media screen and (min-width: 769px) {
    /* Op desktop, voeg wat padding toe om onder de vaste header te komen */
    .page-wrapper, .auth-form-wrapper {
        margin-top: 120px;
    }
}

.page-header {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.auth-form-wrapper {
    text-align: center;
}

.auth-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-links a {
    color: #0073aa;
    text-decoration: none;
    line-height: 2;
}

.auth-links a:hover {
    text-decoration: underline;
}

.account-section { margin: 30px 0; }
.account-section h2 { margin-bottom: 15px; }
a.logout-link { color: #c00; text-decoration: underline; }

/* ==========================================================================
   Tijdlijn Preview Stijlen
   ========================================================================== */
.timeline-preview {
    position: fixed; /* Blijft op dezelfde plek in het scherm */
    bottom: 100px; /* Startpositie (wordt door JS aangepast) */
    left: 50%; /* Startpositie (wordt door JS aangepast) */
    transform: translateX(-50%) scale(0.8);
    width: 200px;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 10px;
    text-align: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none; /* Zorgt dat de preview zelf niet klikbaar is */
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.timeline-preview h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #fff;
}

.timeline-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.timeline-preview .no-image {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    background-color: #222;
    border-radius: 4px;
}