/* Google Fonts - Wellfleet betűkészlet betöltése */
@import url('https://fonts.googleapis.com/css2?family=Wellfleet&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Wellfleet', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    /* Háttérkép teljes, torzulásmentes kitöltése minden kijelzőn */
    background: url('miklosilakasWeb2.1.png') no-repeat center center fixed;
    background-size: cover;
    background-color: #1b0e5e; /* White space-ek elkerülésére sötét alapszín */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Fő konténer */
.dashboard {
    width: 96vw;
    height: 92vh;
    max-width: 1920px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- FELSŐ SÁV --- */
.top-row {
    display: flex;
    gap: 20px;
    height: 12%;
    min-height: 60px;
}

/* Futó cím konténer */
.marquee-container {
    flex: 3.2;
    background-color: transparent;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
    font-size: clamp(1.2rem, 2vw, 2rem);
    font-weight: 400;
    color: #82ea14;
    font-family: 'Wellfleet', serif;
}

.marquee-content span {
    margin-right: 60px;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* ÉRDEKEL gomb konténer */
.interest-box {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.btn-interest {
    width: 100%;
    height: 100%;
    background-color: #1b0e5e;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1.2rem, 2.2vw, 2.2rem);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    user-select: none;
    font-family: 'Wellfleet', serif;
}

.btn-interest:hover {
    background-color: #281585;
    transform: scale(1.02);
}

/* Email popover */
.email-popover {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background-color: #1b0e5e;
    border: 2px solid #82ea14;
    border-radius: 12px;
    padding: 12px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    z-index: 100;
    animation: fadeIn 0.2s ease-in-out;
}

.email-popover.show {
    display: block;
}

.email-popover a {
    color: #82ea14;
    font-size: clamp(0.9rem, 1.3vw, 1.3rem);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s;
    font-family: 'Wellfleet', serif;
}

.email-popover a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- KÖZÉPSŐ KARUSSZEL (INDEX.HTML) --- */
.carousel-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

:root {
    --visible-cards: 3;
}

/* Karusszel kártyák (1%-os belső keret) */
.card {
    flex: 0 0 calc((100% - (var(--visible-cards) - 1) * 20px) / var(--visible-cards));
    height: 100%;
    background-color: #82ea14;
    border-radius: 24px;
    padding: 1%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Kártyafejléc / Gomb felirat */
.card-header {
    position: absolute;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background-color: rgba(27, 14, 94, 0.5); /* #1b0e5e sötétlila háttér 50% átlátszósággal */
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 8px 0;
    text-align: center;
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    color: #82ea14; /* A karusszel mező élénkzöld betűszíne */
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    z-index: 20;
    font-family: 'Wellfleet', serif;
    transition: transform 0.2s, color 0.2s, background-color 0.2s;
}

.card-header:hover {
    color: #ffffff;
    background-color: rgba(27, 14, 94, 0.8);
    transform: translateX(-50%) scale(1.03);
}

/* Kép alatti szövegsáv a karusszel mezőben */
.card-caption {
    width: 100%;
    padding: 8px 5px;
    margin-top: 5px;
    background-color: rgba(27, 14, 94, 0.75);
    color: #82ea14;
    text-align: center;
    font-size: clamp(0.85rem, 1.1vw, 1.1rem);
    font-family: 'Wellfleet', serif;
    border-radius: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 10;
}

/* --- MEDIA / CONTENT STRUKTÚRA --- */
.content-wrapper {
    flex: 1;
    display: flex;
    gap: 20px;
    height: 100%;
    overflow: hidden;
}

.media-box {
    flex: 2;
    height: 100%;
    background-color: #82ea14;
    border-radius: 24px;
    padding: 1%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.media-title {
    position: absolute;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background-color: rgba(130, 234, 20, 0.35);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 8px 0;
    text-align: center;
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    color: #1b0e5e;
    text-transform: uppercase;
    z-index: 20;
    font-family: 'Wellfleet', serif;
    pointer-events: none;
}

/* Alsó kattintható felirat/link stílusa (pl. lokacio.html) */
.media-caption-link {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background-color: rgba(130, 234, 20, 0.35);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 8px 0;
    text-align: center;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    color: #1b0e5e;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 20;
    font-family: 'Wellfleet', serif;
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
    display: block;
    cursor: pointer;
}

.media-caption-link:hover {
    background-color: rgba(130, 234, 20, 0.7);
    color: #000000;
    transform: translateX(-50%) scale(1.02);
}

/* Statikus (nem kattintható, nem animált) alsó felirat (pl. galeria.html) */
.media-caption-static {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background-color: rgba(130, 234, 20, 0.35);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 8px 0;
    text-align: center;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    color: #1b0e5e;
    text-transform: uppercase;
    z-index: 20;
    font-family: 'Wellfleet', serif;
    pointer-events: none;
    display: block;
}

/* Média konténer */
.media-container {
    width: 100%;
    height: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.media-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 18px;
}

/* Média elemek (képek/videók) */
.media-item {
    display: none;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 18px;
    margin: 0 auto;
    cursor: pointer;
}

.media-item.active {
    display: block;
}

/* Jobb oldali Oszlop */
.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.text-box {
    flex: 1;
    background-color: #82ea14;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.text-title {
    width: 100%;
    background-color: transparent;
    padding: 5px 0 10px 0;
    text-align: center;
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    color: #1b0e5e;
    text-transform: uppercase;
    font-family: 'Wellfleet', serif;
}

.text-content {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    padding: 5px 10px;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.5;
    color: #1b0e5e;
    font-family: 'Wellfleet', serif;
}

.phone-box-column {
    height: 12%;
    min-height: 50px;
    background-color: rgba(106, 101, 163, 0.35);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    color: #ffffff;
    font-family: 'Wellfleet', serif;
    letter-spacing: 1px;
}

.btn-back-column {
    height: 10%;
    min-height: 45px;
    background-color: #6a65a3;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1.1rem, 1.6vw, 1.6rem);
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
    font-family: 'Wellfleet', serif;
}

.btn-back-column:hover {
    background-color: #57528e;
    transform: scale(1.02);
}

/* Navigációs nyilak és pöttyök */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(27, 14, 94, 0.6);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px 10px;
    cursor: pointer;
    border-radius: 8px;
    z-index: 30;
    transition: background 0.3s;
    font-family: Arial, sans-serif;
}

.nav-btn:hover {
    background: rgba(27, 14, 94, 0.9);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.dots-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 30;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(27, 14, 94, 0.3);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #1b0e5e;
}

/* --- ALSÓ SÁV (INDEX.HTML) --- */
.bottom-row {
    height: 10%;
    min-height: 55px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.phone-box {
    width: 100%;
    flex: 3;
    height: 100%;
    background-color: rgba(106, 101, 163, 0.35);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1.4rem, 2.3vw, 2.3rem);
    color: #ffffff;
    font-family: 'Wellfleet', serif;
    letter-spacing: 1px;
}

/* --- NYITÓ KÉP MODAL / POPUP STÍLUSOK --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7); /* Elhalványított/sötétített háttér */
    backdrop-filter: blur(5px);           /* Enyhe elmosódás a háttérnek */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;                        /* Minden más elem felett jelenjen meg */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    margin: 0;
    padding: 0;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.modal-picture {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    margin: 0;
}

.modal-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 42px;
    height: 42px;
    background-color: #1b0e5e;
    color: #82ea14;
    border: 3px solid #82ea14;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
    user-select: none;
    z-index: 10000;
}

.modal-close-btn:hover {
    background-color: #82ea14;
    color: #1b0e5e;
    transform: scale(1.1);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    :root {
        --visible-cards: 2;
    }
}

@media (max-width: 800px) {
    .content-wrapper {
        flex-direction: column;
        height: auto;
    }
    .media-box {
        width: 100%;
        height: 350px;
    }
    .right-column {
        width: 100%;
        height: auto;
    }
    .text-box {
        height: 250px;
    }
}

/* MOBIL NÉZET - ÁLLÓ ÉS ELFORGATOTT TÁJOLÁSÁBAN IS (max 650px / max-height 650px) */
@media (max-width: 650px), (max-height: 650px) and (orientation: landscape) {
    html, body {
        overflow-y: auto;
        height: auto;
        background-attachment: fixed;
        background-size: cover;
    }

    .dashboard {
        height: auto;
        min-height: 100vh;
        padding: 15px 0 145px 0;
        gap: 15px;
    }

    .top-row {
        flex-direction: column;
        height: auto;
    }

    .marquee-container {
        height: 50px;
    }

    .interest-box {
        height: 85px;
    }

    :root {
        --visible-cards: 1;
    }

    .carousel-wrapper {
        height: 350px;
    }

    .media-box {
        height: 525px;
    }

    .bottom-row {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        padding: 10px 15px;
        background-color: transparent;
        z-index: 1000;
        flex-direction: column;
        gap: 8px;
    }

    .phone-box {
        width: 100%;
        height: 48px;
        flex: none;
        background-color: rgba(106, 101, 163, 0.35);
        backdrop-filter: blur(4px);
    }

    .phone-box-column {
        position: fixed;
        bottom: 68px;
        left: 15px;
        width: calc(100% - 30px);
        height: 48px;
        z-index: 1001;
        flex: none;
        background-color: #6a65a3;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    .btn-back-column {
        position: fixed;
        bottom: 12px;
        left: 15px;
        width: calc(100% - 30px);
        height: 48px;
        z-index: 1001;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    /* MOBIL NÉZET: A KÉP SZÉLESSÉGÉNEK IGAZÍTÁSA ÉS A BEZÁRÓ GOMB FELFELÉ ELTÁVOLÍTÁSA */
    .modal-overlay {
        padding: 0;
        margin: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }

    .modal-content {
        position: relative;
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .modal-picture {
        width: 100vw;
        display: flex;
        justify-content: center;
    }

    .modal-image {
        width: 100vw;
        height: auto;
        max-width: 100vw;
        max-height: 90vh;
        margin: 0;
        padding: 0;
        border-radius: 0;
        object-fit: contain;
    }

    .modal-close-btn {
        top: -15px; /* Felfelé eltolva a kép felső szélétől */
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}