/**
 * KHT Verenigingsonderdeel Pagina Styling
 * Donkerblauw (#0a1128 tot #1a2340 gradient), gouden accenten (#D4AF37, #C9A961)
 */

:root {
    --kht-dark-blue-1: #0a1128;
    --kht-dark-blue-2: #1a2340;
    --kht-gold-1: #D4AF37;
    --kht-gold-2: #C9A961;
    --kht-white: #ffffff;
    --kht-text-light: #e8e8e8;
    --transition: all 300ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Floating Navigatie Balk - vergelijkbaar met category-filters op videotheek */
.section-nav-filters {
    position: sticky;
    top: 80px; /* Onder de navigation bar */
    z-index: 1000;
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.98) 0%, rgba(14, 15, 77, 0.98) 100%);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.section-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.section-nav-btn {
    padding: 12px 30px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    color: var(--kht-gold-1);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
}

.section-nav-btn:hover,
.section-nav-btn.active {
    background: var(--kht-gold-1);
    color: var(--kht-dark-blue-1);
    border-color: var(--kht-gold-1);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--kht-dark-blue-1) 0%, var(--kht-dark-blue-2) 100%);
    color: var(--kht-text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Crown pattern achtergrond */
.crown-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.015;
    pointer-events: none;
    background-image: url('../logo-patroon.png');
    background-size: 350px 350px;
    background-repeat: repeat;
    background-position: 0 0;
    z-index: 0;
}

/* Timeline Hero - gebruikt styling van kht-style.css */

/* Oude fixed-nav CSS verwijderd - nu gebruiken we section-nav-filters */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Secties */
.info-section {
    padding: 120px 0 80px 0;
    position: relative;
    z-index: 1;
    scroll-margin-top: 120px; /* Voor smooth scroll offset */
}

.timeline-section {
    padding: 80px 0 100px 0;
    position: relative;
    z-index: 1;
    min-height: auto;
    scroll-margin-top: 120px; /* Voor smooth scroll offset */
}

.section-title {
    font-family: 'Times New Roman', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--kht-gold-1);
    text-align: left;
    margin: 0;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    position: relative;
    padding-bottom: 0;
}

.section-title::after {
    display: none;
}

/* Timeline Instructions */
.timeline-instructions {
    text-align: center;
    margin: -30px 0 40px 0;
    padding: 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-instructions p {
    margin: 0;
    color: var(--kht-text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.timeline-instructions strong {
    color: var(--kht-gold-1);
    font-weight: 600;
}

/* Info Card (Magnetische Kaart) */
.info-card {
    background: linear-gradient(135deg, rgba(26, 35, 64, 0.9) 0%, rgba(10, 17, 40, 0.9) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(212, 175, 55, 0.1) inset;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.info-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(212, 175, 55, 0.2) inset;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(26, 35, 64, 0.5);
}

.card-title {
    font-family: 'Times New Roman', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--kht-gold-1);
    margin: 0;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-edit-card {
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid var(--kht-gold-1);
    border-radius: 10px;
    color: var(--kht-gold-1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-edit-card:hover {
    background: var(--kht-gold-1);
    color: var(--kht-dark-blue-1);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.card-content-wrapper {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Zorg dat content niet buiten de card valt */
.card-content-wrapper * {
    max-width: 100%;
    box-sizing: border-box;
}

.card-content-preview {
    line-height: 1.8;
    color: var(--kht-text-light);
    font-size: 1rem;
}

.card-content-preview .preview-image {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.card-content-preview .preview-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.card-content-full {
    line-height: 1.8;
    animation: fadeIn 0.3s ease;
    color: var(--kht-text-light);
    font-size: 1rem;
}

/* Styling voor alle content elementen binnen card-content-full */
.card-content-full h1,
.card-content-full h2,
.card-content-full h3,
.card-content-full h4,
.card-content-full h5,
.card-content-full h6 {
    color: var(--kht-gold-1);
    margin-top: 25px;
    margin-bottom: 15px;
    font-family: 'Times New Roman', serif;
}

.card-content-full h1 {
    font-size: 2rem;
}

.card-content-full h2 {
    font-size: 1.75rem;
}

.card-content-full h3 {
    font-size: 1.5rem;
}

.card-content-full p {
    margin-bottom: 15px;
}

.card-content-full ul,
.card-content-full ol {
    margin: 15px 0;
    padding-left: 30px;
}

.card-content-full li {
    margin: 8px 0;
}

/* Foto styling binnen card-content-full */
.card-content-full img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(212, 175, 55, 0.2) inset;
    display: block;
    object-fit: contain;
    background: rgba(10, 17, 40, 0.3);
    padding: 5px;
}

/* Als er meerdere foto's naast elkaar staan, maak een grid */
.card-content-full p:has(img),
.card-content-full div:has(img) {
    display: contents;
}

/* Wrapper voor foto's die naast elkaar staan */
.card-content-full figure {
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(212, 175, 55, 0.2) inset;
}

.card-content-full figure img {
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    display: block;
}

.card-content-full figcaption {
    padding: 10px 15px;
    background: rgba(26, 35, 64, 0.6);
    color: var(--kht-text-light);
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

/* Responsive foto grid voor meerdere foto's */
.card-content-full .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.card-content-full .image-gallery img {
    margin: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-content-full .image-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4),
                0 0 0 2px rgba(212, 175, 55, 0.3) inset;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.card-footer {
    padding: 0 40px 30px 40px;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 20px;
    padding-top: 30px;
}

.btn-read-more-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(197, 160, 89, 0.2) 100%);
    border: 2px solid var(--kht-gold-1);
    border-radius: 10px;
    color: var(--kht-gold-1);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10 !important;
    pointer-events: auto !important;
}

.btn-read-more-info:hover {
    background: var(--kht-gold-1);
    color: var(--kht-dark-blue-1);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.btn-read-more-info .btn-icon {
    transition: transform 0.3s ease;
}

.info-card.expanded .btn-read-more-info .btn-icon {
    transform: rotate(180deg);
}

.info-card.expanded .card-content-full {
    display: block !important;
}

.info-card:not(.expanded) .card-content-full {
    display: none !important;
}

.info-card.expanded .card-content-preview {
    display: none !important;
}

.info-card:not(.expanded) .card-content-preview {
    display: block !important;
}

/* Info Content (binnen card) */
.info-content {
    line-height: 1.8;
}

.info-content h1,
.info-content h2,
.info-content h3,
.info-content h4 {
    color: var(--kht-gold-1);
    margin-top: 25px;
    margin-bottom: 15px;
}

.info-content p {
    margin-bottom: 15px;
}

.info-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.info-content ul,
.info-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.info-content li {
    margin: 8px 0;
}

.info-content h1,
.info-content h2,
.info-content h3 {
    color: var(--kht-gold-1);
    margin-top: 30px;
    margin-bottom: 15px;
}

.info-content p {
    margin-bottom: 15px;
}

.info-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Edit Controls */
.edit-controls {
    text-align: right;
    margin-bottom: 20px;
}

.btn-edit,
.btn-add-year {
    padding: 12px 24px;
    background: var(--kht-gold-1);
    color: var(--kht-dark-blue-1);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-edit:hover,
.btn-add-year:hover {
    background: var(--kht-gold-2);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

.btn-add-year {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.6); }
}

/* Timeline Header */
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.timeline-controls-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(26, 35, 64, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    flex-wrap: wrap;
}

.filter-group,
.sort-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label,
.sort-group label {
    color: var(--kht-gold-1);
    font-weight: 600;
    white-space: nowrap;
}

.filter-select {
    padding: 10px 15px;
    background: rgba(10, 17, 40, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: var(--kht-text-light);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--kht-gold-1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Timeline Cards Grid */
.timeline-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.empty-timeline {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(26, 35, 64, 0.5);
    border: 2px dashed rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    color: var(--kht-text-light);
}

.empty-timeline p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: rgba(232, 232, 232, 0.7);
}

/* Year Card (Magnetische Kaart) */
.year-card {
    background: linear-gradient(135deg, rgba(26, 35, 64, 0.9) 0%, rgba(10, 17, 40, 0.9) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(212, 175, 55, 0.1) inset;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.year-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--kht-gold-1), 
        transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.year-card:hover::before,
.year-card.magnetic-active::before {
    opacity: 1;
}

.year-card:hover,
.year-card.magnetic-active {
    transform: translateY(-8px);
    border-color: var(--kht-gold-1);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.4),
                0 0 0 2px rgba(212, 175, 55, 0.3) inset,
                0 0 40px rgba(212, 175, 55, 0.3);
    z-index: 10;
}

.year-card-thumbnail {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(26, 35, 64, 0.8) 0%, rgba(10, 17, 40, 0.8) 100%);
}

.year-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.year-card:hover .year-card-thumbnail img,
.year-card.magnetic-active .year-card-thumbnail img {
    transform: scale(1.15);
}

.year-card-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(212, 175, 55, 0.3);
    background: rgba(26, 35, 64, 0.5);
}

.year-card-thumbnail-placeholder svg {
    width: 80px;
    height: 80px;
    stroke: rgba(212, 175, 55, 0.4);
}

.year-card-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.year-card-year {
    font-family: 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--kht-gold-1);
    line-height: 1;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}


.year-card-label {
    font-size: 0.9rem;
    color: rgba(232, 232, 232, 0.8);
    font-style: italic;
    margin-top: 5px;
}

.year-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.year-card-preview {
    color: var(--kht-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.year-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    margin-top: auto;
}

.year-card-photo-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(232, 232, 232, 0.7);
    font-size: 0.9rem;
}

.year-card-photo-count svg {
    width: 18px;
    height: 18px;
    fill: var(--kht-gold-1);
    opacity: 0.7;
}

.year-card-actions {
    display: flex;
    gap: 10px;
}

.btn-read-more {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(197, 160, 89, 0.2) 100%);
    border: 2px solid var(--kht-gold-1);
    border-radius: 8px;
    color: var(--kht-gold-1);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-read-more:hover {
    background: var(--kht-gold-1);
    color: var(--kht-dark-blue-1);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.btn-edit-year {
    padding: 10px;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid var(--kht-gold-1);
    border-radius: 8px;
    color: var(--kht-gold-1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.btn-edit-year:hover {
    background: var(--kht-gold-1);
    color: var(--kht-dark-blue-1);
    transform: scale(1.1) rotate(15deg);
}

.btn-edit-year svg {
    width: 18px;
    height: 18px;
}

/* Subtiel kronenpatroon op achtergrond */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../logo-patroon.png');
    background-size: 400px 400px;
    background-repeat: repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* Gouden gloedpunten (statisch, geen beweging) */
.timeline-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(212, 175, 55, 0.18) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.timeline-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Subtiel grid pattern */
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 0 0;
}

#timelineCanvas {
    width: 100%;
    height: 100%;
    cursor: grab;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.1));
}

#timelineCanvas:active {
    cursor: grabbing;
}

.timeline-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 20;
    padding: 10px;
    background: rgba(10, 17, 40, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(212, 175, 55, 0.1) inset;
}

.zoom-btn,
.reset-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.15) 0%, 
        rgba(197, 160, 89, 0.1) 50%,
        rgba(212, 175, 55, 0.15) 100%);
    border: 2px solid var(--kht-gold-1);
    border-radius: 12px;
    color: var(--kht-gold-1);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(212, 175, 55, 0.2) inset,
        0 0 20px rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.zoom-btn::before,
.reset-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.zoom-btn:hover::before,
.reset-btn:hover::before {
    width: 200%;
    height: 200%;
}

.zoom-btn:hover,
.reset-btn:hover {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.3) 0%, 
        rgba(244, 228, 193, 0.25) 50%,
        rgba(212, 175, 55, 0.3) 100%);
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.6),
        0 0 0 2px rgba(212, 175, 55, 0.4) inset,
        0 0 40px rgba(212, 175, 55, 0.4);
    transform: scale(1.1) translateY(-2px);
    border-color: var(--kht-gold-1);
}

.zoom-btn:active,
.reset-btn:active {
    transform: scale(1.05) translateY(0);
}

.reset-btn {
    font-size: 1rem;
    padding: 0;
}

/* Minimap - Premium Glasmorphism */
.minimap {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 220px;
    height: 165px;
    background: linear-gradient(135deg, 
        rgba(26, 35, 64, 0.85) 0%, 
        rgba(10, 17, 40, 0.85) 100%);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 12px;
    overflow: hidden;
    z-index: 20;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(212, 175, 55, 0.3) inset,
        0 0 30px rgba(212, 175, 55, 0.25);
    padding: 8px;
}

.minimap::before {
    content: 'Overzicht';
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.7rem;
    color: var(--kht-gold-1);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 1;
    opacity: 0.8;
}

#minimapCanvas {
    width: 100%;
    height: 100%;
}

/* Year Overlay Modal */
.year-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.year-overlay.active {
    display: flex;
}

.overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.year-overlay-content {
    position: relative;
    background: linear-gradient(135deg, var(--kht-dark-blue-2) 0%, var(--kht-dark-blue-1) 100%);
    border: 2px solid var(--kht-gold-1);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(212, 175, 55, 0.3) inset;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.overlay-header {
    padding: 30px 40px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 35, 64, 0.9);
    position: sticky;
    top: 0;
    z-index: 10;
}

.overlay-title {
    font-family: 'Times New Roman', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--kht-gold-1);
    margin: 0;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.overlay-close {
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid var(--kht-gold-1);
    border-radius: 50%;
    color: var(--kht-gold-1);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.overlay-close:hover {
    background: var(--kht-gold-1);
    color: var(--kht-dark-blue-1);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.overlay-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

/* Year Detail Content (in overlay) */
.year-detail-content {
    line-height: 1.8;
}

.year-detail-text {
    margin-bottom: 30px;
}

.year-detail-text h1,
.year-detail-text h2,
.year-detail-text h3,
.year-detail-text h4 {
    color: var(--kht-gold-1);
    margin-top: 25px;
    margin-bottom: 15px;
}

.year-detail-text p {
    margin-bottom: 15px;
}

.year-detail-text ul,
.year-detail-text ol {
    margin: 15px 0;
    padding-left: 30px;
    list-style-position: outside;
}

.year-detail-text ul {
    list-style-type: disc;
}

.year-detail-text ol {
    list-style-type: decimal;
}

.year-detail-text li {
    margin: 8px 0;
    padding-left: 10px;
}

.year-detail-photos {
    margin-top: 40px;
}

.year-content {
    line-height: 1.8;
    margin-bottom: 30px;
}

.year-content h1,
.year-content h2,
.year-content h3 {
    color: var(--kht-gold-1);
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Lijsten met correcte inspringing */
.year-content ul,
.year-content ol {
    margin: 15px 0;
    padding-left: 30px;
    list-style-position: outside;
}

.year-content ul {
    list-style-type: disc;
}

.year-content ol {
    list-style-type: decimal;
}

.year-content li {
    margin: 8px 0;
    padding-left: 10px;
}

.year-content ul ul,
.year-content ol ol,
.year-content ul ol,
.year-content ol ul {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 25px;
}

.year-content ul ul {
    list-style-type: circle;
}

.year-content ul ul ul {
    list-style-type: square;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    display: block;
    text-decoration: none;
    color: inherit;
}

.photo-item:hover {
    transform: scale(1.05);
    border-color: var(--kht-gold-1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 10px;
    font-size: 0.9rem;
    opacity: 0;
    transition: var(--transition);
}

.photo-item:hover .photo-caption {
    opacity: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, var(--kht-dark-blue-2) 0%, var(--kht-dark-blue-1) 100%);
    border: 2px solid var(--kht-gold-1);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-large {
    max-width: 1000px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 35, 64, 0.8);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h3 {
    font-family: 'Times New Roman', serif;
    font-size: 1.8rem;
    color: var(--kht-gold-1);
    margin: 0;
}

.modal-close {
    width: 35px;
    height: 35px;
    background: transparent;
    border: 2px solid var(--kht-gold-1);
    border-radius: 50%;
    color: var(--kht-gold-1);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--kht-gold-1);
    color: var(--kht-dark-blue-1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background: rgba(26, 35, 64, 0.8);
}

/* Form Elements */
/* Icon Selector */
.icon-selector {
    margin-top: 10px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(26, 35, 64, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.icon-option {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    background: rgba(10, 17, 40, 0.6);
    transition: all 0.3s ease;
    user-select: none;
}

.icon-option:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--kht-gold-1);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.icon-option.selected {
    background: rgba(212, 175, 55, 0.3);
    border-color: var(--kht-gold-1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transform: scale(1.15);
}

.selected-icon-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(26, 35, 64, 0.6);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    min-height: 50px;
}

.selected-icon-text {
    font-size: 1.1rem;
    color: var(--kht-gold-1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-icon-text .icon-preview {
    font-size: 1.8rem;
}

.icon-clear-btn {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--kht-gold-1);
    color: var(--kht-gold-1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-clear-btn:hover {
    background: rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
}

/* Emoji Picker Button */
.emoji-picker-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(197, 160, 89, 0.2) 100%);
    border: 2px solid var(--kht-gold-1);
    border-radius: 8px;
    color: var(--kht-gold-1);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.emoji-picker-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(197, 160, 89, 0.3) 100%);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.emoji-picker-btn span {
    font-size: 1.5rem;
}

/* Emoji Picker Container */
.emoji-picker-container {
    background: rgba(26, 35, 64, 0.95);
    border: 2px solid var(--kht-gold-1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.emoji-picker-header {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.emoji-search-input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(10, 17, 40, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: var(--kht-text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.emoji-search-input:focus {
    outline: none;
    border-color: var(--kht-gold-1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.emoji-picker-close {
    width: 35px;
    height: 35px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--kht-gold-1);
    border-radius: 8px;
    color: var(--kht-gold-1);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.emoji-picker-close:hover {
    background: rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
}

.emoji-categories {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.emoji-category-btn {
    padding: 8px 12px;
    background: rgba(10, 17, 40, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    color: var(--kht-gold-1);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.emoji-category-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--kht-gold-1);
}

.emoji-category-btn.active {
    background: rgba(212, 175, 55, 0.3);
    border-color: var(--kht-gold-1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.emoji-grid-container {
    flex: 1;
    overflow-y: auto;
    max-height: 350px;
    padding-right: 5px;
}

.emoji-grid-container::-webkit-scrollbar {
    width: 8px;
}

.emoji-grid-container::-webkit-scrollbar-track {
    background: rgba(10, 17, 40, 0.5);
    border-radius: 4px;
}

.emoji-grid-container::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 4px;
}

.emoji-grid-container::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.7);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.emoji-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    background: rgba(10, 17, 40, 0.4);
    transition: all 0.2s ease;
    user-select: none;
}

.emoji-item:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--kht-gold-1);
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    z-index: 10;
    position: relative;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--kht-gold-1);
    font-weight: 600;
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    background: rgba(26, 35, 64, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: var(--kht-text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--kht-gold-1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Photo Upload Zone */
.photo-upload-zone {
    margin-top: 15px;
}

.upload-area {
    border: 3px dashed rgba(212, 175, 55, 0.5);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(26, 35, 64, 0.4);
}

.upload-area:hover {
    border-color: var(--kht-gold-1);
    background: rgba(212, 175, 55, 0.1);
}

.upload-area.dragover {
    border-color: var(--kht-gold-1);
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.upload-placeholder p {
    margin: 10px 0;
    color: var(--kht-text-light);
}

.upload-hint {
    font-size: 0.9rem;
    color: rgba(232, 232, 232, 0.7);
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.photo-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-item .remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background: rgba(255, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.photo-preview-item .remove-photo:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

.photo-preview-item .photo-caption-input {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 0.85rem;
    width: 100%;
}

/* Buttons */
.btn-save,
.btn-cancel,
.btn-delete {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-save {
    background: var(--kht-gold-1);
    color: var(--kht-dark-blue-1);
}

.btn-save:hover {
    background: var(--kht-gold-2);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.btn-cancel {
    background: rgba(232, 232, 232, 0.2);
    color: var(--kht-text-light);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.btn-cancel:hover {
    background: rgba(232, 232, 232, 0.3);
    border-color: var(--kht-gold-1);
}

.btn-delete {
    background: rgba(255, 0, 0, 0.8);
    color: white;
}

.btn-delete:hover {
    background: rgba(255, 0, 0, 1);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.form-errors {
    color: #ff6b6b;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    display: none;
}

.form-errors:not(:empty) {
    display: block;
}

/* Quill Editor Styling */
.ql-container {
    background: rgba(26, 35, 64, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: var(--kht-text-light);
    min-height: 300px;
}

.ql-toolbar {
    background: rgba(26, 35, 64, 0.9);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px 8px 0 0;
}

.ql-stroke {
    stroke: var(--kht-gold-1);
}

.ql-fill {
    fill: var(--kht-gold-1);
}

.ql-picker-label {
    color: var(--kht-gold-1);
}

.ql-editor {
    color: var(--kht-text-light);
}

.ql-editor.ql-blank::before {
    color: rgba(232, 232, 232, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .section-nav-filters {
        top: 80px;
        padding: 15px 0;
    }
    
    .section-nav-buttons {
        gap: 10px;
        padding: 0 15px;
    }
    
    .section-nav-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .nav-label {
        font-size: 0.85rem;
    }
    
    .info-card {
        margin: 0 10px;
    }
    
    .card-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .card-content {
        padding: 25px;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-controls-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group,
    .sort-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .timeline-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .year-card-thumbnail {
        height: 200px;
    }
    
    .year-card-header {
        padding: 20px;
    }
    
    .year-card-content {
        padding: 20px;
    }
    
    .year-overlay-content {
        max-height: 95vh;
        margin: 10px;
    }
    
    .overlay-header {
        padding: 20px;
    }
    
    .overlay-body {
        padding: 25px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

