/*
Theme Name: De vooruitgang
Author: Jouw Naam
Version: 3.3
*/

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.7;
    background: #f8f9fa;
    color: #333;
}

/* HERO */
.hero-outer {
    background: #f8f9fa;
    padding-top: 10px;
}

.hero {
    height: 280px;
    background: #1b4965;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
}

/* MENU */
.nav-outer {
    background: #f8f9fa;
}

.main-navigation {
    height: 50px;
    background: #c0392b;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.main-navigation ul li a:hover {
    border-bottom-color: rgba(255,255,255,0.6);
}

/* DROPDOWN */
.main-navigation ul li {
    position: relative;
}

.main-navigation ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #a93226;
    min-width: 200px;
    z-index: 999;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.main-navigation ul li:hover ul {
    display: flex;
}

.main-navigation ul li ul li {
    width: 100%;
}

.main-navigation ul li ul li a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-bottom-color: rgba(255,255,255,0.1) !important;
    white-space: nowrap;
}

.main-navigation ul li ul li a:hover {
    background: #922b21;
    border-bottom-color: rgba(255,255,255,0.1) !important;
}

/* SECTIONS */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* content blok */
.section.page-content {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* tekst */
.section p {
    margin-bottom: 18px;
}

/* FOOTER */
footer {
    background: #1b4965;
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
}

/* HOME LAYOUT: twee kolommen */
.home-layout {
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.home-main {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 30px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* SIDEBAR */
.home-sidebar {
    flex: 0 0 260px;
    width: 260px;
    margin-left: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-block {
    background: #c0392b;
    border-radius: 6px;
    overflow: hidden;
}

.sidebar-title {
    background: #a93226;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px;
    margin: 0;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
}

.sidebar-item a:hover {
    text-decoration: underline;
}

.sidebar-date {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    margin-top: 3px;
}

.sidebar-locatie {
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    font-style: italic;
}

.sidebar-empty {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    padding: 12px 16px;
    margin: 0;
}

/* CONCERT DETAIL */
.concert-thumbnail {
    margin-bottom: 24px;
    border-radius: 6px;
    overflow: hidden;
}

.concert-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* CONCERT ARCHIEF */
.archive-subtitle {
    font-size: 18px;
    color: #1b4965;
    margin: 30px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.archive-subtitle--past {
    color: #888;
    margin-top: 50px;
}

.concert-lijst {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.concert-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    border-radius: 6px;
    padding: 16px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border-left: 4px solid #c0392b;
}

.concert-item--past {
    border-left-color: #ccc;
    opacity: 0.7;
}

.concert-datum-blok {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
    background: #c0392b;
    color: white;
    border-radius: 4px;
    padding: 8px 6px;
    text-align: center;
    line-height: 1.2;
}

.concert-item--past .concert-datum-blok {
    background: #aaa;
}

.concert-dag {
    font-size: 22px;
    font-weight: bold;
}

.concert-maand {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.concert-jaar {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}

.concert-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.concert-info h4 a {
    color: #1b4965;
    text-decoration: none;
}

.concert-info h4 a:hover {
    text-decoration: underline;
}

.concert-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    gap: 16px;
    margin-bottom: 4px;
}

.concert-excerpt {
    font-size: 14px;
    color: #555;
    margin-top: 6px;
}

/* PAGINERING */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    background: white;
    color: #1b4965;
    border: 1px solid #ddd;
    transition: background 0.15s;
}

.pagination a:hover {
    background: #1b4965;
    color: white;
    border-color: #1b4965;
}

.pagination .current {
    background: #c0392b;
    color: white;
    border-color: #c0392b;
}

/* BULLETIN OVERZICHT */
.bulletin-lijst {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.bulletin-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border-radius: 6px;
    padding: 14px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border-left: 4px solid #c0392b;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.1s;
}

.bulletin-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateX(3px);
}

.bulletin-icoon {
    font-size: 28px;
    flex-shrink: 0;
}

.bulletin-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bulletin-naam {
    font-weight: bold;
    font-size: 16px;
    color: #1b4965;
}

.bulletin-datum {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.bulletin-pijl {
    font-size: 24px;
    color: #c0392b;
    font-weight: bold;
}

/* BULLETIN DETAIL HEADER */
.bulletin-header {
    margin-bottom: 20px;
}

.bulletin-terug {
    display: inline-block;
    font-size: 14px;
    color: #c0392b;
    text-decoration: none;
    margin-bottom: 10px;
}

.bulletin-terug:hover {
    text-decoration: underline;
}

.bulletin-header h2 {
    font-size: 22px;
    color: #1b4965;
}

.bulletin-header-datum {
    font-size: 13px;
    color: #888;
}

/* PDF VIEWER */
.pdf-viewer-wrapper {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    background: #555;
}

.pdf-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #1b4965;
    padding: 12px 20px;
    flex-shrink: 0;
}

.pdf-btn {
    background: #c0392b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
    line-height: 1;
}

.pdf-btn:hover:not(:disabled) {
    background: #a93226;
    transform: scale(1.1);
}

.pdf-btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.5;
}

.pdf-btn--fullscreen {
    margin-left: auto;
    font-size: 18px;
}

.pdf-page-info {
    color: white;
    font-size: 14px;
    font-weight: bold;
    min-width: 120px;
    text-align: center;
}

/* Canvas wrapper: vaste hoogte met zichtbare scrollbalk */
.pdf-canvas-wrapper {
    position: relative;
    background: #555;
    display: flex;
    justify-content: center;
    padding: 24px;
    height: calc(100vh - 320px);
    min-height: 400px;
    overflow-y: scroll; /* altijd zichtbaar zodat breedte stabiel blijft */
    overflow-x: hidden;
}

/* Canvas: breedte vast, hoogte auto = ratio altijd correct */
#pdf-canvas {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    transition: opacity 0.2s;
    align-self: flex-start;
}

.pdf-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    pointer-events: none;
    background: rgba(80,80,80,0.6);
}

.pdf-exit-btn {
    display: none;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    background: #c0392b;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: background 0.2s;
}

.pdf-exit-btn:hover {
    background: #a93226;
}

/* Toon sluitknop alleen in fullscreen */
#pdf-wrapper:fullscreen .pdf-exit-btn,
#pdf-wrapper:-webkit-full-screen .pdf-exit-btn {
    display: block;
}

/* Fullscreen: zelfde aanpak, canvas schaalt op breedte */
#pdf-wrapper:fullscreen,
#pdf-wrapper:-webkit-full-screen {
    background: #333;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    height: 100vh;
}

#pdf-wrapper:fullscreen .pdf-canvas-wrapper,
#pdf-wrapper:-webkit-full-screen .pdf-canvas-wrapper {
    height: calc(100vh - 65px);
    min-height: unset;
    overflow-y: scroll;
    padding: 30px 40px;
}

#pdf-wrapper:fullscreen #pdf-canvas,
#pdf-wrapper:-webkit-full-screen #pdf-canvas {
    /* Breedte beperken in fullscreen zodat A5 niet te breed wordt */
    max-width: 600px;
    margin: 0 auto;
}

.pdf-missing {
    background: #fff3cd;
    border-left: 4px solid #f0a500;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 14px;
    color: #7a5800;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .main-navigation ul {
        gap: 15px;
    }

    .section {
        padding: 25px 15px;
    }

    .home-layout {
        flex-direction: column;
        padding: 20px 15px;
    }

    .home-sidebar {
        flex: none;
        width: 100%;
        margin-left: 0;
    }
}
/* ── CONTACTFORMULIER ── */
.contact-formulier {
    margin-top: 24px;
}

.contact-veld {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.contact-veld label {
    font-size: 14px;
    font-weight: bold;
    color: #1b4965;
    margin-bottom: 6px;
}

.verplicht {
    color: #c0392b;
}

.contact-veld input,
.contact-veld textarea {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    color: #333;
    transition: border-color 0.2s;
    width: 100%;
}

.contact-veld input:focus,
.contact-veld textarea:focus {
    outline: none;
    border-color: #1b4965;
}

.contact-veld textarea {
    resize: vertical;
}

.contact-knop {
    background: #c0392b;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-knop:hover {
    background: #a93226;
}

.contact-succes {
    background: #f0f8e8;
    border-left: 4px solid #46a32a;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 15px;
    color: #2d6a1a;
}

.contact-fout {
    background: #fde8e8;
    border-left: 4px solid #c0392b;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 15px;
    color: #a00;
    margin-bottom: 20px;
}


/* HOME ZONDER SIDEBAR */
.home-layout--geen-sidebar {
    display: block;
}

.home-layout--geen-sidebar .home-main {
    max-width: 700px;
    margin: 0 auto;
}

/* SOCIAL MEDIA ICOONTJES */
.main-navigation {
    position: relative;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.15s;
}

.social-icons a:hover {
    opacity: 1;
    transform: scale(1.15);
}
