/* ##############################  MUSEUM NXT GEN THEME  ############################## */

:root {
    /* Branding Colors based on provided guidelines */
    --nxt-bg-dark: #101424;
    --nxt-bg-card: #1a1f36;
    --nxt-text-main: #ffffff;
    --nxt-text-muted: #aab4cc;
    /* ÚJ GRADIENT: Kékből a megadott #66023e színbe megy át */
    --nxt-gradient: linear-gradient(135deg, #4458dc 0%, #66023e 100%);
    /* HOVER GRADIENT: Egy picit sötétebb verzió, amikor ráviszik az egeret a gombra */
    --nxt-gradient-hover: linear-gradient(135deg, #374ac4 0%, #4d012f 100%);
    /* Fonts */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    /* Klasszikus, elegáns múzeumi arany */
    --nxt-gold: #D4AF37;
    /* Csillogó arany színátmenet (fémes hatás) */
    --nxt-gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
}

html, body {
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 16px;
    background-color: var(--nxt-bg-dark);
    color: var(--nxt-text-main);
    scroll-behavior: smooth;
    padding-top: 0; /* A Hero overlay miatt nullázzuk a paddingot */
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--nxt-text-main);
}

p, .lead, li {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    color: var(--nxt-text-muted);
}

a {
    color: #66023e;
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: #4458dc;
    }

/* ##############################  NAVBAR & BRANDING  ############################## */

.nxt-navbar {
    background-color: transparent; /* Alapból átlátszó, hogy ráüljön a képre */
    backdrop-filter: blur(0px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    padding: 15px 0;
}

    /* Ha görgetünk (scrolled) VAGY ha olyan oldalon vagyunk, ahol NINCS carousel (no-hero) */
    .nxt-navbar.scrolled,
    body.no-hero .nxt-navbar {
        background-color: rgba(16, 20, 36, 0.95) !important;
        backdrop-filter: blur(12px);
        padding: 10px 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    }

.nxt-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-nxt {
    background: var(--nxt-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.brand-gen {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--nxt-text-main);
    letter-spacing: 4px;
    margin-left: 5px;
}

.nxt-nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--nxt-text-main) !important;
    position: relative;
    padding-bottom: 5px;
}

    .nxt-nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background: var(--nxt-gradient);
        transition: width 0.3s;
    }

    .nxt-nav-link:hover::after {
        width: 100%;
    }

/* ##############################  BUTTONS & UI ELEMENTS  ############################## */

/* Primary Gradient Button */
.nxt-btn-gradient {
    background: var(--nxt-gradient);
    border: none;
    color: white;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 25px;
    border-radius: 50px; /* Pill shape */
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 600;
}

    .nxt-btn-gradient:hover {
        background: var(--nxt-gradient-hover);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(68, 88, 220, 0.4);
        color: white;
    }

/* Outline Button */
.nxt-btn-outline {
    background: transparent;
    border: 2px solid #4458dc;
    color: white;
    font-family: var(--font-heading);
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s;
}

    .nxt-btn-outline:hover {
        background: #4458dc;
        color: white;
    }

/* Overriding Bootstrap Standard Buttons */
.btn-dark {
    background-color: #1f2540;
    border: 1px solid #2e3650;
}

.btn-info {
    background-color: #4458dc;
    color: white;
    border: none;
}

    .btn-info:hover {
        background-color: #3545b0;
        color: white;
    }

/* Arany gomb (Call to Action) */
.btn-gold {
    background: var(--nxt-gold-gradient);
    color: #121212 !important;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

    .btn-gold:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
        color: #000 !important;
    }

/* Cards */
.card {
    background-color: var(--nxt-bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
}

.list-group-item {
    background-color: transparent;
    border-color: rgba(255,255,255,0.1);
    color: var(--nxt-text-main);
}

/* Modals */
.modal-content {
    background-color: var(--nxt-bg-card);
    border: 1px solid rgba(68, 88, 220, 0.3);
    color: var(--nxt-text-main);
}

.modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ##############################  SECTIONS & LAYOUT  ############################## */

.content-wrapper {
    min-height: 80vh;
}

/* Ha nincs az oldalon Carousel, akkor toljuk lejjebb a tartalmat, hogy a fekete menü ne takarja ki! */
body.no-hero .content-wrapper {
    padding-top: 120px;
}

/* Input Fields - Modern Dark */
input, textarea, select, .form-control, .form-select {
    background-color: #0b0e1a !important;
    border: 1px solid #2e3650;
    color: white !important;
    border-radius: 8px;
    padding: 12px;
}

    input:focus, textarea:focus, select:focus, .form-control:focus, .form-select:focus {
        background-color: #0b0e1a !important;
        border-color: #4458dc;
        box-shadow: 0 0 0 0.2rem rgba(68, 88, 220, 0.25);
    }

/* Select nyíl (dropdown ikon) fehérre színezése sötét módban */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

/* Footer */
.nxt-footer {
    background-color: #0b0e1a;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 60px;
}

/* Cookie Banner */
.nxt-cookie {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(16, 20, 36, 0.95);
    border-top: 2px solid #4458dc;
    padding: 1.5rem;
    z-index: 9999;
}

/* Logó méretezése a Navbarban */
.nxt-logo-nav {
    height: 50px;
    width: auto;
    object-fit: contain;
}

    .nxt-logo-nav:hover {
        opacity: 1;
    }

/* Logó méretezése a Footerben */
.nxt-logo-footer {
    height: 60px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

    .nxt-logo-footer:hover {
        opacity: 1;
    }

/* ##############################  TÁBLÁZATOK (NXT-TABLE)  ############################## */

.nxt-table {
    color: var(--nxt-text-main) !important;
    background-color: transparent !important;
}

    /* Fejléc stílusa */
    .nxt-table thead th {
        background-color: #151a30 !important;
        color: var(--nxt-text-muted) !important;
        border-bottom: 2px solid #2e3650 !important;
        font-family: var(--font-heading);
        font-weight: 500;
        letter-spacing: 1px;
    }

    /* Sorok alap stílusa */
    .nxt-table tbody tr {
        background-color: transparent !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
        transition: all 0.2s ease;
    }

        /* Sorok fölé vitt egér (Hover) effektus */
        .nxt-table tbody tr:hover {
            background-color: rgba(68, 88, 220, 0.1) !important;
            box-shadow: inset 0 0 0 9999px rgba(68, 88, 220, 0.05);
        }

    /* Cellák szövegszíne */
    .nxt-table tbody td {
        color: var(--nxt-text-main) !important;
        background-color: transparent !important;
    }

.fixed-table-pagination .pagination-info,
.fixed-table-pagination .page-list {
    color: var(--nxt-text-muted) !important;
}

.fixed-table-toolbar .search input {
    background-color: #0b0e1a !important;
    border: 1px solid #2e3650 !important;
    color: white !important;
}

    .fixed-table-toolbar .search input:focus {
        border-color: #4458dc !important;
        box-shadow: 0 0 0 0.2rem rgba(68, 88, 220, 0.25) !important;
    }

/* ##############################  SUMMERNOTE  ############################## */

.summernote-wrapper .note-editor.note-frame {
    border: 1px solid #2e3650 !important;
    border-radius: 8px;
    overflow: hidden;
}

.summernote-wrapper .note-toolbar {
    background-color: var(--nxt-bg-dark) !important;
    border-bottom: 1px solid #2e3650 !important;
}

.summernote-wrapper .note-btn {
    color: #aab4cc !important;
    background-color: transparent !important;
    border-color: transparent !important;
}

    .summernote-wrapper .note-btn:hover {
        background-color: #2e3650 !important;
        color: #fff !important;
    }

.summernote-wrapper .note-editable {
    background-color: #1a1f36 !important;
    color: #e2e8f0 !important;
}

.note-modal-content, .note-dropdown-menu {
    background-color: var(--nxt-bg-card) !important;
    color: #e2e8f0 !important;
    border: 1px solid #2e3650 !important;
}

.note-modal-header {
    border-bottom: 1px solid #2e3650 !important;
}

.note-modal-footer {
    border-top: 1px solid #2e3650 !important;
}

.note-form-label {
    color: #aab4cc !important;
}

.note-input {
    background-color: #1a1f36 !important;
    color: #fff !important;
    border: 1px solid #2e3650 !important;
}

/* ##############################  HOVER EFFEKTEK  ############################## */

/* Kártya hover effekt arany szegéllyel */
.hover-gold-border {
    border: 1px solid transparent !important;
    transition: all 0.3s ease;
}

    .hover-gold-border:hover {
        border-color: var(--nxt-gold) !important;
        box-shadow: 0 10px 25px rgba(212, 175, 55, 0.25) !important;
        transform: translateY(-5px);
    }

/* Új arany ragyogás kártyákhoz */
.nxt-hover-glow {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

    .nxt-hover-glow:hover {
        transform: scale(1.04) translateY(-5px);
        box-shadow: 0 0 25px rgba(255, 193, 7, 0.4) !important;
        border-color: rgba(255, 193, 7, 0.8) !important;
        z-index: 2;
    }

/* Szövegszín ikonokhoz és egyszerű kiemelésekhez */
.text-gold {
    color: var(--nxt-gold) !important;
}

/* Színátmenetes arany szöveg */
.text-gold-gradient {
    background: var(--nxt-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ##############################  CAROUSEL STÍLUSOK  ############################## */

/* Carousel indikátorok (alsó csíkok) */
.carousel-indicators [data-bs-target] {
    width: 35px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 2px;
    transition: all 0.4s ease;
    margin: 0 6px;
}

.carousel-indicators .active {
    background-color: #66023e; /* MUSEUM lila */
    width: 55px;
    background-image: var(--nxt-gradient);
}

/* Gombok finomítása */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
    width: 3rem;
    height: 3rem;
}

/* Képek finom sötétítése az alján */
.carousel-inner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--nxt-bg-dark), transparent);
    z-index: 2;
    pointer-events: none;
}

/* --- CAROUSEL KÉPEK OKOS MÉRETEZÉSE --- */
.nxt-hero-image {
    width: 100%;
    object-fit: cover;
    height: 85vh; /* A képernyő magasságának 85%-át kitölti */
    min-height: 600px; /* Soha nem zsugorodik 600px alá! */
}

/* --- CAROUSEL ANIMATIONS & GLASSMORPHISM (BAL FELSŐ SAROK, LEJJEBB TOLVA) --- */
.nxt-carousel-caption {
    position: absolute;
    top: 25%; /* Fentről lejjebb tolva egy picit */
    left: 8%; /* Balra igazítva */
    right: auto; /* Felülírjuk a Bootstrap alapértelmezett középre zárását */
    bottom: auto; /* Felülírjuk a Bootstrap alapértelmezett lenti pozícióját */
    text-align: left; /* Balra zárt szöveg */

    background: rgba(16, 20, 36, 0.65); /* Félig átlátszó sötét háttér */
    backdrop-filter: blur(12px); /* Üveghatás */
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 650px; /* Ne legyen túl széles, hogy arányos maradjon bal oldalt */
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    opacity: 0; /* Alapból láthatatlan */
}

/* 5 másodperces ciklus pontosan lekövetve az 5000ms-os slide intervalt */
.carousel-item.active .nxt-carousel-caption {
    animation: fadeAndSlide 5s linear forwards;
}

@keyframes fadeAndSlide {
    0% {
        opacity: 0;
        transform: translateX(-40px); /* Balról indul */
    }

    30% { /* 1,5 másodperc eltelte: beúszott és látható */
        opacity: 1;
        transform: translateX(0);
    }

    70% { /* 3,5 másodperc eltelte: eddig stabilan látszik */
        opacity: 1;
        transform: translateX(0);
    }

    100% { /* 5 másodperc (a vége): elhalványul és kicsit feljebb csúszik */
        opacity: 0;
        transform: translateY(-20px);
    }
}

.nxt-caption-title {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--nxt-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2); /* Finom arany ragyogás */
}

@media (max-width: 768px) {
    .nxt-hero-image {
        height: 90vh; /* Mobilon szinte teljes képernyős */
        min-height: 550px; /* Elég magas, hogy a szöveg doboza kényelmesen elférjen */
        object-position: center; /* Hogy a képek közepe látsszon levágáskor */
    }

    .nxt-caption-title {
        font-size: 1.5rem;
    }

    .nxt-carousel-caption {
        top: 20%;
        left: 5%;
        width: 90%;
        padding: 1.5rem 1rem;
    }
}

/* ##############################  EGYÉB  ############################## */

/* Notiflix Loading SVG ikonok kényszerített átszínezése */
[id^="NotiflixLoadingWrap"] svg path {
    fill: #d4af37 !important;
}

[id^="NotiflixLoadingWrap"] svg circle {
    stroke: #d4af37 !important;
}

[id^="NotiflixLoadingWrap"] p {
    color: #d1d1d1 !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 1px;
}

/* Gördülésnél a rögzített menüsáv magasságának kompenzálása */
section {
    scroll-margin-top: 90px;
}

/* --- NYELVVÁLASZTÓ GÖRGETŐSÁV --- */
.nxt-lang-dropdown::-webkit-scrollbar {
    width: 6px;
}

.nxt-lang-dropdown::-webkit-scrollbar-track {
    background: var(--nxt-bg-card);
    border-radius: 4px;
}

.nxt-lang-dropdown::-webkit-scrollbar-thumb {
    background: rgba(102, 2, 62, 0.6); /* Az elegáns bordós-lila színed áttetsző verziója */
    border-radius: 4px;
}

    .nxt-lang-dropdown::-webkit-scrollbar-thumb:hover {
        background: rgba(102, 2, 62, 1);
    }
