/* WRAPPER – MOSTANTÓL VALÓBAN MŰKÖDIK */
.wrapper {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

/* ALAP BEÁLLÍTÁSOK */
body {
    background-color: black;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#hatterkep {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1300px;
    height: auto;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
}

/* FÉNYCSÍK – A HÁTTÉRHEZ IGAZODIK */
.fenycsik {
    position: relative;
    width: 1300px;
    height: 180px;
    margin: 40px auto 0 auto;
    overflow: hidden;
    z-index: 5;
}

.fenycsik span {
    position: absolute;
    left: -15%;
    width: 15%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        #b87333,
        #d98c4a,
        #b87333,
        transparent
    );
    animation: feny 2.5s linear infinite;
    box-shadow:
        0 0 6px #b87333,
        0 0 12px #d98c4a,
        0 0 20px #8a4f20;
}

.fenycsik span:nth-child(1) { top: 20px;  animation-delay: 0s; }
.fenycsik span:nth-child(2) { top: 60px;  animation-delay: 0.7s; }
.fenycsik span:nth-child(3) { top: 100px; animation-delay: 1.9s; }
.fenycsik span:nth-child(4) { top: 140px; animation-delay: 0.4s; }

@keyframes feny {
    0%   { transform: translateX(-100%); opacity: 1; }
    100% { transform: translateX(140%); opacity: 1; }
}

.oldalcim {
    position: relative;
    top: 110px;
    text-align: center;
    color: white;
    font-size: 38px;
    font-weight: bold;
    margin: 0;
    z-index: 12;
}

nav {
    text-align: center;
    position: relative;
    top: 1px;
    margin: 0;
    z-index: 10;
}

nav a {
    text-decoration: none;
    margin: 0 10px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
}

nav a img {
    width: 200px;
    height: 33px;
    display: block;
}

nav a:hover {
    transform: scale(1.08);
    box-shadow: 0 0 8px #0077aa;
}

/* AKTÍV GOMB ALATTI FUTÓ CSÍK */
nav a.active {
    position: relative;
    overflow: hidden;
}

nav a.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    --csik: 20%;
    background: linear-gradient(90deg,
        transparent,
        #b87333,
        #d98c4a,
        #b87333,
        transparent
    );
    opacity: 0;
    transform: translateX(calc(-1 * var(--csik)));
    animation: aktivcsik 2s linear infinite;
    box-shadow:
        0 0 6px #b87333,
        0 0 12px #d98c4a,
        0 0 20px #8a4f20;
}

@keyframes aktivcsik {
    0%   { transform: translateX(calc(-1 * var(--csik))); opacity: 0; }
    20%  { opacity: 1; }
    50%  { transform: translateX(100%); opacity: 1; }
    80%  { opacity: 0.3; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* TÁVTARTÓ */
.tartalom-elotoltes {
    height: 80px;
}

/* HÁROMOSZLOPOS ELRENDEZÉS */
.tartalom {
    width: 1268px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    position: relative;
}

/* BAL OLDALI OSZLOP */
.baloldal {
    width: 236px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toronykep {
    width: 236px;
    height: 288px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 18px;
}

.balgomb-link {
    display: block;
}

.balgomb {
    width: 236px;
    margin-bottom: 18px;
    border-radius: 6px;
    transition: 0.25s ease;
}

.balgomb:hover {
    transform: scale(1.05);
    box-shadow: 0 0 8px #0077aa;
}

/* KÖZÉPSŐ SZÖVEG */
.kozep {
    width: 680px;
}

.leiras {
    width: 100%;
    color: white;
    text-align: justify;
    font-size: 18px;
    line-height: 1.5;
}

/* BEVEZETŐ LINKJEI – MINDIG FEHÉREK */
.leiras a {
    color: white !important;
    font-weight: bold;
    text-decoration: underline;
}

.leiras a:hover,
.leiras a:visited,
.leiras a:active {
    color: white !important;
}

/* ALCÍM */
.alcim {
    margin-top: 60px;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
    font-family: "Times New Roman", serif;
    font-size: 34px;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
}

/* PANEL */
.alkatresz-panel {
    position: relative;
    width: 600px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 12px;
    background: #001A33;
    box-shadow:
        0 0 20px rgba(0, 80, 160, 0.25),
        inset 0 0 25px rgba(0, 80, 160, 0.35);
    z-index: 1;
}

/* PANEL FELSŐ/ALSÓ FÉNYCSÍK */
.alkatresz-panel::before,
.alkatresz-panel::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(120,180,255,0.9),
        rgba(180,220,255,1),
        rgba(120,180,255,0.9),
        transparent
    );
    box-shadow:
        0 0 6px rgba(150,200,255,0.6),
        0 0 12px rgba(150,200,255,0.4);
}

.alkatresz-panel::before { top: 0; }
.alkatresz-panel::after { bottom: 0; }

/* SOROK */
.alkatresz-sor {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 25px;
    position: relative;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.alkatresz-sor::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(120,180,255,0.9),
        rgba(180,220,255,1),
        rgba(120,180,255,0.9),
        transparent
    );
    box-shadow:
        0 0 6px rgba(150,200,255,0.6),
        0 0 12px rgba(150,200,255,0.4);
}

.alkatresz-sor:last-child::after {
    display: none;
}

/* KÉPEK */
.alkatresz-kep {
    width: 135px;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.alkatresz-kep:hover {
    transform: scale(1.05);
}

/* SZÖVEGEK */
.alkatresz-szoveg {
    font-family: "Times New Roman", serif;
    color: white;
    line-height: 1.5;
    max-width: 420px;
    text-align: justify;
    text-justify: inter-word;
}

.alkatresz-nev {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 6px;
}

.alkatresz-leiras {
    margin-top: 6px;
    color: white;
    font-size: 18px;
    line-height: 1.5;
}

/* PROGRAMOZÁS PANEL LINKJEI – VILÁGOSKÉKEK */
.alkatresz-szoveg a {
    color: #66ccff !important;
    font-weight: bold;
    text-decoration: underline;
}

.alkatresz-szoveg a:hover,
.alkatresz-szoveg a:visited,
.alkatresz-szoveg a:active {
    color: #66ccff !important;
}

/* KAPCSOLÁSI RAJZ */
.kapcsolasi-kep-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.kapcsolasi-kep {
    width: 100%;
    max-width: 520px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(150,200,255,0.4);
}

.kapcsolasi-megjegyzes {
    margin-top: 20px;
    text-align: center;
    color: white !important;
    font-size: 18px;
    line-height: 1.4;
    font-family: "Times New Roman", serif;
}

/* JOBB OLDAL */
.jobboldal {
    width: 272px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.videotorony {
    width: 272px;
    border-radius: 6px;
}

.sponsor {
    width: 272px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    padding: 4px;
}

/* NAGY KÉP OVERLAY */
#nagykep {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
}

#nagykep img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/* Ha egy sorban nincs kép, a szöveg legyen szélesebb */
.alkatresz-sor:not(:has(.alkatresz-kep)) .alkatresz-szoveg {
    max-width: 650px;
}

.bevezeto-panel {
    background: rgba(0, 60, 120, 0.25);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow:
        0 0 20px rgba(0, 120, 255, 0.20),
        inset 0 0 25px rgba(0, 120, 255, 0.25);
    margin-bottom: 30px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==== PC-s tartalom fix magassággal + belső görgetés ==== */
@media (min-width: 481px) {

    /* A középső oszlop teljes magassága a háttérhez igazodik */
    .kozep {
        height: 1536px;     /* háttérkép magassága */
        display: flex;
        flex-direction: column;
    }

    /* A bevezető + alcím fixen felül marad */
    .bevezeto-panel {
        flex: 0 0 auto;
    }

    .alcim {
        flex: 0 0 auto;
        margin-top: 20px;
    }

    /* CSAK a betöltött tartalom legyen görgethető */
    #panel-tartalom {
        flex: 1 1 auto;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 10px; /* hogy a scrollbar ne takarja a szöveget */
    }
}


/* --- JAVÍTOTT MOBILOS BLOKK --- */
@media (max-width: 600px) {

    /* A fix 1300px szélességek felülírása */
    #hatterkep{
        width: 100vw;
        left: 0;
        transform: none;
    }

    .wrapper{
        max-width: 100%;
        overflow-x: hidden;
    }

    .fenycsik {
        width: 100%;
    }


    /* A 1268px széles tartalom felülírása */
    .tartalom {
        width: 100%;
        box-sizing: border-box;
    }

    .alkatresz-panel {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 20px;
    }


    .baloldal,
    .kozep,
    .jobboldal {
        width: 100%;
        max-width: 400px;
    }

    /* Menü igazítása */
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    nav a img {
        width: 90%;
        height: auto;
    }

    /* Cím pozíció */
    .oldalcim {
        top: 40px;
        font-size: 28px;
    }
}
#panel-tartalom .alkatresz-panel {
    margin-top: 0px;
    margin-bottom: 20px;
}
