/* --- Változók és Globális Stílusok --- */
:root {
    --color-dark-background: #0d0d0d;
    --color-text-primary: #F5F5DC; /* Törtfehér, bézs */
    --color-accent-gold: #B8860B; /* Sötét arany */
    --color-highlight-gold: #D4AF37; /* Világosabb arany */
    --color-intro-text: #D4AF37; /* Javított szín a kontraszt miatt */
    --color-overlay-dark: rgba(0, 0, 0, 0.6);
    --color-poem-text: #e0d9c6;

    --font-primary: 'Cormorant Garamond', serif;
    --font-secondary: 'Georgia', serif;
    --font-header-name: 'Playfair Display', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    background-color: var(--color-dark-background);
    overflow-x: hidden;
}

a {
    transition: color 0.3s ease, transform 0.2s ease, background-color 0.3s ease, opacity 0.3s ease;
}

/* --- KRITIKUS: Fix (Követő) Háttérvideó Stílusok --- */
/* Ez a megközelítés biztosítja, hogy a videó mindig a háttérben maradjon görgetés közben. */

.page-background-video {
    position: fixed; /* Ez biztosítja a követő hatást */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
}

.page-background-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover; /* Biztosítja a teljes kitöltést torzítás nélkül */
}

.page-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay-dark);
}

/* --- Intro Szekció (Csak a főoldalon) --- */
.intro-sequence {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--color-dark-background);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-out;
}

.intro-logo {
    width: 150px; opacity: 0; transform: scale(0.9);
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.intro-logo.visible {
    opacity: 1; transform: scale(1);
}

/* --- Fejléc Stílusok --- */
#main-header {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: transparent; /* Átlátszó, a videó látszik alatta */
    z-index: 5;
}

/* Főoldalon teljes magasság */
body.landing-page #main-header {
    height: 100vh;
}

/* Aloldalak fejléce alacsonyabb */
.subpage-header {
    height: 30vh;
    min-height: 200px;
    /* Enyhe elválasztás a tartalomtól, hogy a görgetésnél érezhető legyen a rétegződés */
    box-shadow: 0 2px 15px rgba(0,0,0,0.5); 
}

.header-content {
    position: relative;
}

.artist-name {
    font-family: var(--font-header-name);
    font-size: clamp(3em, 8vw, 5em);
    font-weight: 300;
    color: var(--color-intro-text);
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.subpage-header .artist-name {
    font-size: clamp(2.5em, 7vw, 3.5em);
}

/* Intro animációhoz kapcsolódó láthatóság */
#main-header, #main-footer, .artist-name, .main-nav {
    opacity: 0;
}

body:not(.landing-page) #main-header,
body:not(.landing-page) #main-footer,
body:not(.landing-page) .artist-name,
body:not(.landing-page) .main-nav {
    opacity: 1; /* Aloldalakon azonnal látható */
}

/* JS által hozzáadott osztályok az animációhoz */
#main-header.visible { opacity: 1; transition: opacity 1.5s ease-in; }
#main-footer.visible { opacity: 1; transition: opacity 1.5s ease-in; }
.artist-name.visible { opacity: 1; transition: opacity 2s ease-in-out 1s; }
.main-nav.visible { opacity: 1; transition: opacity 1s ease-in-out 3s; }


/* --- Navigáció --- */
.main-nav {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-item {
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 1.1em;
    margin: 5px 10px;
    font-family: var(--font-secondary);
    padding: 8px 15px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.nav-item:hover, .nav-item.active {
    color: var(--color-highlight-gold);
    background-color: rgba(184, 134, 11, 0.3);
}

/* --- Nyelvváltó Stílusok --- */
.language-switcher {
    position: relative;
    margin-left: 15px;
    margin-top: 5px;
    font-family: var(--font-secondary);
}

.current-language {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid rgba(245, 245, 220, 0.3);
    border-radius: 5px;
}

.language-switcher:hover .current-language {
    background-color: rgba(245, 245, 220, 0.1);
}

.lang-flag {
    width: 20px;
    margin-right: 8px;
}

.lang-text {
    font-size: 0.9em;
}

.arrow-down {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.language-dropdown {
    position: absolute;
    top: 100%; right: 0;
    background-color: var(--color-dark-background);
    border: 1px solid rgba(245, 245, 220, 0.3);
    border-radius: 5px;
    list-style: none;
    padding: 5px; margin-top: 5px;
    z-index: 100;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.language-switcher:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
}

.language-dropdown li a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--color-text-primary);
}

.language-dropdown li a:hover {
    background-color: rgba(245, 245, 220, 0.1);
}

/* --- Általános Szekció Stílusok --- */
.page-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    /* Biztosítja a magasságot a tartalomnak, hogy legyen mit görgetni a fix háttér felett */
    min-height: 70vh; 
    background-color: transparent; /* Fontos, hogy a fix videó látszódjon! */
}

.page-section h2 {
    font-size: clamp(2.2em, 6vw, 3em);
    color: var(--color-accent-gold);
    font-family: var(--font-header-name);
    margin-bottom: 40px;
}

/* A tartalom konténere, ami a fix videó felett jelenik meg */
.section-content, .section-content-fullwidth {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    box-sizing: border-box;
    /* Vizuális elválasztás a háttértől a jobb olvashatóságért */
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- "Rólam" oldal specifikus --- */
#about-section .section-content {
    max-width: 800px;
    text-align: left;
    line-height: 1.7;
}

#about-section p {
    font-size: 1.1em;
}

.article-snippet {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(184, 134, 11, 0.3);
    text-align: center;
}

.article-quote {
    font-size: 1.4em;
    font-style: italic;
    margin-bottom: 15px;
}

.article-link {
    color: var(--color-highlight-gold);
    text-decoration: none;
}

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

/* --- "Alkotásaim" oldal stílusai --- */
.choice-card-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.choice-card {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(184, 134, 11, 0.3);
    padding: 25px;
    width: 350px;
    max-width: 100%;
    text-align: center;
    transition: transform 0.3s ease;
}

.choice-card:hover {
    transform: translateY(-10px);
}

.choice-card-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.choice-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.choice-card:hover .choice-card-image {
    transform: scale(1.1);
}

.choice-card-title {
    font-family: var(--font-header-name);
    font-size: 2em;
    margin-bottom: 20px;
}

/* --- Gomb Stílus --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    font-family: var(--font-header-name);
    font-size: 1.1em;
    color: var(--color-text-primary);
    background-color: transparent;
    border: 2px solid var(--color-accent-gold);
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-accent-gold);
    color: var(--color-dark-background);
}

/* --- "Előadásaim" (Videógaléria) Stílusok --- */
/* Ezen az oldalon a tartalom konténer lehet szélesebb és kevésbé átlátszó */
#performances-section .section-content-fullwidth {
    max-width: 1400px;
    background-color: rgba(0, 0, 0, 0.75);
}

.video-gallery-container {
    margin-bottom: 60px;
}

.gallery-title {
    font-family: var(--font-header-name);
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(184, 134, 11, 0.4);
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.video-item {
    background-color: rgba(0,0,0,0.6);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 arány */
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px;
    text-align: left;
}

.video-title {
    font-size: 1.4em;
    color: var(--color-highlight-gold);
    margin-bottom: 10px;
}

/* --- Eseménykártya ("Rendezvények") --- */
.event-card {
    padding: 50px;
    max-width: 600px;
    margin: 0 auto;
}

.event-title {
    font-family: var(--font-header-name);
    font-size: 2.8em;
    color: var(--color-accent-gold);
    margin: 15px 0;
}

/* --- Kapcsolat oldal & Chatbot Placeholder --- */
#chatbot-placeholder {
    max-width: 500px;
    margin: 40px auto;
    border-radius: 15px;
    background-color: #1a1a1a; /* Sötétebb alap */
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: var(--color-highlight-gold); /* Alapértelmezett szövegszín aranyra állítva */
    overflow: hidden;
    text-align: left;
}

.chatbot-header {
    background-color: var(--color-dark-background);
    color: var(--color-text-primary);
    padding: 20px;
}

.chat-window {
    height: 250px;
    padding: 20px;
    background-color: #2c2c2c; /* Sötétebb háttér */
    color: var(--color-highlight-gold); /* Világos arany szöveg */
}

.bot-message {
    color: var(--color-highlight-gold); /* Explicit megerősítés */
}

.chatbot-footer {
    display: flex;
    padding: 15px;
    background-color: #1a1a1a;
}

/* --- Blog Oldal Stílusok --- */
#blog-section .section-content {
    max-width: 900px;
    text-align: left;
}

.blog-post {
    background-color: rgba(20, 20, 20, 0.8);
    padding: 35px;
    margin-bottom: 40px;
    border-left: 4px solid var(--color-accent-gold);
}

.blog-post-title {
    font-size: 2em;
    color: var(--color-highlight-gold);
}

/* --- MODÁL (FELUGRÓ ABLAK) STÍLUSOK --- */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(13, 13, 13, 0.92);
    z-index: 10000;
    display: none; /* JS kapcsolja be */
    justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.4s ease;
    backdrop-filter: blur(8px);
}

.modal.visible {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-content.large {
    max-width: 1400px;
}

.modal-body {
    overflow-y: auto; /* Görgethetőség a modálon belül */
    padding: 20px;
}

.modal-close-btn {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none;
    color: var(--color-text-primary);
    font-size: 2.5em;
    cursor: pointer;
}

/* --- Képgaléria Stílusok (Modálban) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    cursor: pointer;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Versek Stílusok (Modálban) --- */
.poem-article {
    background-color: #0d0d0d;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.poem-title {
    font-family: var(--font-header-name);
    font-size: 2em;
    color: var(--color-accent-gold);
    margin-bottom: 25px;
}

.poem-text {
    font-size: 1.2em;
    line-height: 2;
    color: var(--color-poem-text);
    font-style: italic;
    /* white-space: pre-line; - Nem szükséges, mert innerHTML-t használunk <br> tagekkel */
}

/* --- Képnagyító Lightbox --- */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    display: none;
    justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.4s ease;
}

.lightbox.visible {
    display: flex; opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
}

#lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border: 3px solid var(--color-accent-gold);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    color: var(--color-text-primary);
    font-size: 2.5em;
    cursor: pointer;
}

.lightbox-close { top: 15px; right: 35px; }
.lightbox-prev { top: 50%; left: 25px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 25px; transform: translateY(-50%); }

/* --- Lábléc Stílusok --- */
#main-footer {
    background-color: #0a0a0a;
    padding: 50px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 15px;
}

/* Támogatók */
.footer-sponsors .sponsor-link {
    display: flex;
    align-items: center;
    color: var(--color-text-primary);
    text-decoration: none;
    margin-bottom: 15px;
}

.sponsor-logo {
    height: 35px;
    margin-right: 10px;
}

/* Középső rész */
.footer-info {
    text-align: center;
}

.footer-logo {
    max-height: 80px;
    margin-bottom: 15px;
}

/* Linkek és Social Media */
.footer-links {
    text-align: right;
}

.impressum-link {
    color: var(--color-text-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-block;
    margin-left: 15px;
    color: var(--color-text-primary);
    font-size: 1.4em;
}

/* --- Reszponzív Beállítások (Media Queries) --- */

.hamburger-menu {
    display: none; /* Alapból rejtett */
    cursor: pointer;
    padding: 15px;
    z-index: 1001;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-text-primary);
    transition: all 0.3s ease-in-out;
}

 @media (max-width: 1024px) {
    .main-nav {
        flex-direction: column;
        align-items: center;
    }
    .nav-item {
        margin: 8px 0;
    }
    .language-switcher {
        margin-top: 15px;
        margin-left: 0;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-section, .footer-links {
        text-align: center;
        margin-bottom: 30px;
    }
    .footer-sponsors .sponsor-link {
        justify-content: center;
    }
    .social-icons a {
        margin: 0 15px;
    }
}

 @media (max-width: 768px) {
    #main-header.subpage-header {
        height: 80px; /* Fix magasság aloldalakon */
        padding-top: 0;
        align-items: center; /* Vertikális középre igazítás */
    }

    .header-content {
        display: flex;
        justify-content: space-between; /* Logó balra, hamburger jobbra */
        align-items: center;
        width: 100%;
        padding: 0 20px;
    }

    .artist-name {
        margin: 0; /* Eltávolítjuk a felesleges margót */
        font-size: 1.8em; /* Kisebb betűméret mobilon */
    }

    .hamburger-menu {
        display: block; /* Hamburger menü megjelenítése */
    }

    .main-nav {
        display: none; /* Alap navigáció elrejtése */
        position: absolute;
        top: 80px; /* A fejléc magassága alatt */
        left: 0;
        width: 100%;
        background-color: rgba(13, 13, 13, 0.98);
        flex-direction: column;
        padding: 20px 0;
    }

    .main-nav.is-open {
        display: flex; /* Navigáció megjelenítése, ha nyitva van */
    }

    .page-section {
        padding: 60px 10px;
    }
    .section-content, .section-content-fullwidth {
        padding: 30px;
    }
    .video-gallery-grid {
        grid-template-columns: 1fr;
    }
    /* Biztosítja, hogy az esemény címe ne lógjon ki mobilon */
    .event-title.responsive-event-title {
        font-size: 2rem;
    }
}

 @media (max-width: 480px) {
    .event-title.responsive-event-title {
        font-size: 1.6rem;
    }
    .poem-text {
        font-size: 1.1em;
        line-height: 1.8;
    }
    .modal-content {
        padding: 15px;
    }
    .modal-close-btn {
        font-size: 2em;
        top: 10px;
        right: 10px;
    }
}

/* --- Impresszum Specifikus Stílusok --- */
#imprint-section a {
    color: var(--color-accent-gold);
    text-decoration: none;
}

#imprint-section a:hover {
    color: var(--color-highlight-gold);
    text-decoration: underline;
}
