/* Reset and base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #faf8f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image:
        linear-gradient(135deg, rgba(26, 42, 58, 0.7) 0%, rgba(44, 62, 80, 0.7) 40%, rgba(52, 73, 94, 0.7) 100%),
        url('img/roemenie_huis.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(52, 152, 219, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(46, 204, 113, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Intro section */
.intro {
    padding: 4rem 0;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.intro p {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

/* Gallery section */
.gallery {
    padding: 4rem 0 5rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 0.5rem 0;
}

.timeline-line {
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3498db, #2ecc71);
    opacity: 0.3;
}

.tl-day {
    position: relative;
    margin-bottom: 2.5rem;
}

.tl-day:last-child {
    margin-bottom: 0;
}

.tl-day-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    text-align: right;
    padding-right: 2rem;
    z-index: 1;
}

.tl-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    line-height: 1.2;
    position: relative;
}

.tl-date::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: #3498db;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.tl-date-day {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

.tl-date-month {
    font-size: 0.7rem;
    font-weight: 600;
    color: #3498db;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tl-cards {
    margin-left: 140px;
}

.tl-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.tl-card:last-child {
    margin-bottom: 0;
}

.tl-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tl-img-wrapper {
    overflow: hidden;
}

.tl-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tl-card:hover .tl-img {
    transform: scale(1.03);
}

.tl-body {
    padding: 1.25rem;
}

.tl-text {
    font-size: 0.95rem;
    color: #555;
}

.tl-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.tl-card-link:hover {
    color: inherit;
}

/* Detail view */
.detail {
    padding: 3rem 0;
}

.detail-entry {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.detail-date {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-img-wrapper {
    border-radius: 8px;
    overflow: hidden;
}

.detail-img-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.detail-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    white-space: pre-line;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

.gallery-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    break-inside: avoid;
}

.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.05);
}

.gallery-img-wrapper {
    overflow: hidden;
    position: relative;
}

.gallery-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-img-placeholder {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0eee8;
    color: #bbb;
    font-size: 0.9rem;
}

.gallery-body {
    padding: 1.25rem;
}

.gallery-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #3498db;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
    background: rgba(52, 152, 219, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.gallery-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.empty-state p {
    color: #999;
    font-size: 1.1rem;
}

/* Sponsors slider */
.sponsors {
    padding: 3rem 0;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.sponsors .section-title {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.sponsors .section-title::after {
    width: 40px;
}

.sponsors-track-wrapper {
    overflow: hidden;
    width: 100%;
}

.sponsors-track {
    display: flex;
    gap: 2rem;
    align-items: center;
    width: max-content;
}

.sponsors-track.scrolling {
    animation: scroll var(--scroll-duration, 20s) linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(var(--scroll-width)); }
}

.sponsor-item {
    flex-shrink: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
}

.sponsor-item img {
    max-height: 100%;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(0.4);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}

.sponsor-item img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Footer */
.footer {
    background: #1a2a3a;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.875rem;
}

/* Admin link */
.admin-link {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(44, 62, 80, 0.15);
    color: rgba(44, 62, 80, 0.4);
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s, color 0.2s;
    z-index: 100;
}

.admin-link:hover {
    background: rgba(44, 62, 80, 0.25);
    color: rgba(44, 62, 80, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
    }

    .timeline-line {
        left: 60px;
    }

    .tl-day-marker {
        width: 50px;
        padding-right: 1rem;
    }

    .tl-date {
        padding: 0.3rem 0.4rem;
        border-radius: 8px;
    }

    .tl-date-day {
        font-size: 1rem;
    }

    .tl-date-month {
        font-size: 0.6rem;
    }

    .tl-date::after {
        right: -6px;
        width: 10px;
        height: 10px;
    }

    .tl-cards {
        margin-left: 75px;
    }

    .tl-img {
        height: 200px;
    }

    .tl-body {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .intro p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 40vh;
    }

    .tl-img {
        height: 180px;
    }

    .detail-entry {
        padding: 1.25rem;
    }

    .detail-images {
        grid-template-columns: 1fr;
    }

    .detail-img-wrapper img {
        height: 180px;
    }
}
