/*
Theme Name: Karel Deseure Theme
Theme URI: https://kareldeseure.nl
Author: Antigravity
Author URI: https://gemini.google.com
Description: A minimalist, high-performance, and custom theme for conductor Karel Deseure. Features clean typography, white background, black text, and zero animations.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: karel-theme
*/

/* --- Design System --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #FAF8F5;
    --color-text: #111111;
    --color-text-muted: #555555;
    --color-border: #E6E2DA;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-width: 1100px;
    --spacing-layout: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

p {
    margin-bottom: 22px;
    line-height: 1.75;
}

strong, b {
    font-weight: 700;
    color: inherit;
}

em, i {
    font-style: italic;
}

u {
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

li {
    margin-bottom: 8px;
    line-height: 1.7;
}

blockquote {
    border-left: 3px solid var(--color-border);
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--color-text-muted);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #000000;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.2px;
}

h1 { font-size: 52px; font-weight: 600; }
h2 { font-size: 38px; font-weight: 600; border-bottom: 1px solid var(--color-border); padding-bottom: 10px; margin-bottom: 40px; }
h3 { font-size: 26px; font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }
h5 { font-size: 17px; font-weight: 600; }
h6 { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

a {
    color: var(--color-text);
    text-decoration: underline;
    transition: color 0.1s ease;
}
a:hover {
    color: var(--color-text-muted);
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: var(--spacing-layout) 0;
}

/* Header & Nav */
.site-header {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 10000;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.site-logo a {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1px;
}
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
}
.mobile-menu-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 32px;
}
.main-navigation a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

@media (max-width: 860px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }
    .site-header .container {
        height: 60px;
        padding: 0 16px;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .main-navigation {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 12px 30px rgba(0,0,0,0.1);
        display: none;
        padding: 15px 0;
        z-index: 99999;
    }
    .main-navigation.active {
        display: block;
    }
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        text-align: center;
        padding: 0;
    }
    .main-navigation li {
        width: 100%;
    }
    .main-navigation a {
        display: block;
        padding: 14px 20px;
        font-size: 15px;
        border-bottom: 1px solid rgba(0,0,0,0.04);
    }
}

/* Hero Section */
.hero-section {
    padding: 0;
    height: 70vh;
    min-height: 500px;
    position: relative;
    background-color: #000;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 25%;
    opacity: 0.85;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding-top: clamp(150px, 30vh, 250px);
    padding-bottom: 60px;
    color: #ffffff;
}
.hero-content h1 {
    color: #ffffff;
    font-size: 64px;
    margin-bottom: 5px;
}
.hero-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.9;
}

/* Intro & Next Concerts */
.intro-section {
    background-color: var(--color-bg);
}
.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: start;
}
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
.intro-text p {
    font-size: 19px;
    margin-bottom: 20px;
}
.next-concerts-box {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    padding: 30px;
}
.next-concerts-box h3 {
    margin-bottom: 20px;
    font-size: 22px;
}
.concert-mini-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}
.concert-mini-item:last-child {
    border-bottom: none;
}
.concert-mini-date {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-text-muted);
}
.concert-mini-title {
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 16px;
    margin: 5px 0;
}
.concert-mini-details {
    font-size: 14px;
    color: var(--color-text-muted);
}
.more-schedule-link {
    display: block;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Biography Section */
.bio-section {
    background-color: var(--color-bg-alt);
}
.bio-content {
    max-width: 800px;
    margin: 0 auto;
}
.bio-short {
    font-size: 18px;
    margin-bottom: 30px;
}
.bio-short p,
.bio-long p,
.bio-content p,
.wp-block-paragraph {
    margin-bottom: 24px !important;
    line-height: 1.75;
}
.bio-short p:empty,
.bio-long p:empty,
.bio-content p:empty,
.wp-block-paragraph:empty {
    min-height: 24px !important;
    margin-bottom: 24px !important;
    display: block !important;
}
/* Native HTML Details & Summary toggle */
details.bio-details summary {
    display: inline-block;
    cursor: pointer;
    background: #000;
    color: #fff;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    user-select: none;
    list-style: none; /* Hide default triangle */
}
details.bio-details summary::-webkit-details-marker {
    display: none;
}
details.bio-details[open] summary {
    background: var(--color-text-muted);
}
.bio-long {
    padding-top: 30px;
    font-size: 17px;
}

/* Featured Media Section */
.home-media-section {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

/* Schedule Section */
.schedule-section {
    background-color: var(--color-bg-alt);
}
.concert-list {
    margin-bottom: 40px;
}
.concert-item {
    display: grid;
    grid-template-columns: 160px 1fr 220px;
    gap: 30px;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
    align-items: center;
}
@media (max-width: 768px) {
    .concert-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 0;
    }
}
.concert-img-container {
    width: 100%;
    height: 100px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.concert-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 768px) {
    .concert-img-container {
        height: 180px;
    }
}
.concert-details-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.concert-date {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}
.concert-info h3 {
    margin-bottom: 3px;
    font-size: 20px;
    font-family: var(--font-heading);
}
.concert-orchestra {
    color: var(--color-text-muted);
    font-size: 15px;
    font-weight: 500;
}
.concert-program-direct {
    margin-top: 4px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--color-text-muted);
}
.concert-mini-program-direct {
    margin-top: 2px;
    margin-bottom: 4px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--color-text-muted);
}
.concert-location-container {
    text-align: right;
}
.concert-location {
    font-size: 15px;
}
@media (max-width: 768px) {
    .concert-location-container {
        text-align: left;
    }
}

/* Archive Accordion */
.archive-details summary {
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    list-style: none;
}
.archive-details summary::-webkit-details-marker {
    display: none;
}
.accordion-arrow {
    display: inline-block;
    font-size: 16px;
    color: var(--color-text-muted);
    transition: transform 0.2s ease-in-out;
}
.archive-details[open] summary .accordion-arrow {
    transform: rotate(180deg);
    border-bottom: none;
}
.archive-details[open] summary {
    border-bottom: none;
}
.archive-concerts {
    padding: 20px 0;
}
.archive-item {
    display: grid;
    grid-template-columns: 120px 1fr 200px;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px dashed var(--color-border);
    align-items: center;
}
.archive-item:last-child {
    border-bottom: none;
}
.archive-img-container {
    width: 100%;
    height: 75px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.archive-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.archive-details-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.archive-date {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.archive-orchestra {
    font-size: 14px;
    color: var(--color-text-muted);
}
.archive-location-container {
    text-align: right;
}
.archive-location {
    font-size: 14px;
}
@media (max-width: 768px) {
    .archive-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px 0;
    }
    .archive-img-container {
        height: 140px;
    }
    .archive-location-container {
        text-align: left;
    }
}

/* Press Section */
.press-section {
    background-color: var(--color-bg);
}
.press-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 768px) {
    .press-grid {
        grid-template-columns: 1fr;
    }
}
.press-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.press-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #000;
    white-space: pre-line;
}
.press-source {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

/* Booking & Contact */
.booking-section {
    background-color: var(--color-bg-alt);
}
.booking-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 50px 40px;
    text-align: center;
}
.management-logo {
    margin-bottom: 20px;
}
.mgr-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
}
.booking-intro {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}
.centered-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
}
.mgr-website {
    font-size: 16px;
    margin-bottom: 25px;
}
.mgr-contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 30px;
}
.mgr-contact-details p {
    font-size: 16px;
    margin: 0;
}
.mgr-contact-details i {
    width: 20px;
    color: var(--color-text-muted);
    margin-right: 8px;
}
.disclaimer-box {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--color-border);
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Hero Quote Styling */
.hero-quote {
    margin-top: 25px;
    max-width: 650px;
    background: rgba(0, 0, 0, 0.45);
    padding: 15px 20px;
    border-left: 3px solid #ffffff;
    text-align: left;
}
.hq-text {
    display: block;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    line-height: 1.45;
    color: #ffffff;
    margin-bottom: 5px;
}
.hq-source {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
}

/* Media Page Specific */
.media-header {
    padding: 60px 0 30px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 40px;
}
.media-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
    text-align: center;
}
.media-header p {
    font-size: 17px;
    color: var(--color-text-muted);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}
.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 1px solid var(--color-border);
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}
.video-item {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border: 1px solid var(--color-border);
}
.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Homepage Featured Media Grid (Equal Dimensions) */
.home-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}
.home-media-grid .gallery-item,
.home-media-grid .video-item {
    height: 350px !important;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    background: #000;
    margin: 0;
    padding: 0;
}
.home-media-grid .gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.home-media-grid .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block;
    transition: transform 0.3s ease;
}
.home-media-grid .gallery-item:hover img {
    transform: scale(1.03);
}
.home-media-grid .video-item {
    padding-bottom: 0 !important;
}
.home-media-grid .video-item iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}
@media (max-width: 768px) {
    .home-media-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .home-media-grid .gallery-item,
    .home-media-grid .video-item {
        height: 250px !important;
    }
}
.spotify-section {
    border: 1px dashed var(--color-border);
    padding: 40px;
    text-align: center;
    background: var(--color-bg-alt);
    margin-bottom: 60px;
}

/* Gutenberg block styles integration to match the theme design */
.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0 60px;
}
.wp-block-gallery .wp-block-image img,
.wp-block-gallery.has-nested-images .wp-block-image img {
    width: 100% !important;
    height: 320px !important;
    object-fit: cover !important;
    object-position: center top !important;
    aspect-ratio: auto !important;
    border: 1px solid var(--color-border);
    margin: 0;
}
.wp-block-gallery .wp-block-image {
    height: 320px !important;
}

/* Lightbox Modal Styles */
.karel-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.karel-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.karel-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.karel-lightbox-image {
    max-width: 88vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.7);
    user-select: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.karel-lightbox-close {
    position: fixed;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000000;
    transition: all 0.2s ease;
    line-height: 1;
}
.karel-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}
.karel-lightbox-prev,
.karel-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000000;
    transition: all 0.2s ease;
    user-select: none;
}
.karel-lightbox-prev {
    left: 20px;
}
.karel-lightbox-next {
    right: 20px;
}
.karel-lightbox-prev:hover,
.karel-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}
.karel-lightbox-counter {
    color: rgba(255, 255, 255, 0.75);
    font-family: sans-serif;
    font-size: 14px;
    margin-top: 14px;
    letter-spacing: 1px;
}
.wp-block-columns {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    align-items: start;
}
.wp-block-column {
    flex: 1;
    min-width: 0;
}
.wp-block-embed {
    margin: 0 0 20px 0;
    width: 100%;
}
.wp-block-embed .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}
/* 16:9 Landscape Video */
.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper,
.wp-block-embed-youtube:not(.wp-embed-aspect-9-16) .wp-block-embed__wrapper {
    padding-bottom: 56.25% !important;
    height: 0 !important;
}
/* 9:16 Vertical Video / Shorts */
.wp-block-embed.wp-embed-aspect-9-16 {
    max-width: 320px;
    margin: 0 auto 20px auto;
}
.wp-block-embed.wp-embed-aspect-9-16 .wp-block-embed__wrapper {
    padding-bottom: 177.77% !important;
    height: 0 !important;
}
.wp-block-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column !important;
        gap: 30px !important;
    }
    .wp-block-column {
        width: 100% !important;
        flex: none !important;
        margin: 0 !important;
    }
    .wp-block-embed.wp-embed-aspect-9-16 {
        max-width: 280px !important;
        margin: 0 auto !important;
    }
}

/* Footer */
.site-footer {
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
    text-align: center;
}
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}
.footer-socials a {
    font-size: 20px;
    color: var(--color-text);
    text-decoration: none;
}
.footer-socials a:hover {
    color: var(--color-text-muted);
}
.footer-copyright {
    font-size: 14px;
    color: var(--color-text-muted);
}
