/* --- 1. ALAPBEÁLLÍTÁSOK (STIPCKY FOOTER) --- */
html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Fontos a lábléchez */
}

body {
    background-color: #ffffff;
    color: #0056b3; 
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* --- 2. NAVIGÁCIÓ (STICKER LOGO) --- */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(0, 86, 179, 0.90); 
    backdrop-filter: blur(10px); 
    z-index: 1000;
    padding: 12px 0;
}

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

.nav-logo img {
    height: 18px; 
    width: auto;
    padding: 8px 18px;
    background-color: #ffffff;
    border-radius: 20px;
}

.nav-butt {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    
}

.nav-butt-kleithron img {
    height: 40px;
    padding: 0 10px 0;   
    background-color: #222222;
    border-radius: 40px;
}

.login-btn {
    background-color: #ffffff; 
    color: #0056b3;
    border: none;
    padding: 8px 18px;
    font-weight: 700;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    font-family: 'Montserrat', sans-serif;
}

/* --- 3. FŐ TARTALOM ÉS HERO --- */
.container { 
    padding: 60px 20px 20px; 
}

.container img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* --- 4. APP GRID (AZ ALKALMAZÁS KÁRTYÁK) --- */
.button-container {
    flex: 1; 
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.button-container ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

/* Ez az univerzális osztály váltja fel a 9 korábbi blokkot */
.modal-trigger {
    display: block;
    text-decoration: none;
    color: #0056b3;
    background-color: #f6fbff;
    padding: 30px 20px;
    font-weight: 700; 
    font-size: 1.2rem;
    letter-spacing: 1px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    
    /* Előkészítjük a dinamikus szegélyt a JS-nek */
    border-left: 5px solid var(--app-color, transparent); 
}

.modal-trigger:hover {
    transform: translateY(-5px);
    /* A hover színét is a scriptből kapja majd meg a kártya */
    background-color: var(--app-color, #0056b3);
    color: #ffffff;
    box-shadow: 0 12px 20px rgba(0, 86, 179, 0.2);
}

/* --- 5. FOOTER --- */
footer {
    padding: 30px 0;
    font-size: 0.8rem;
    opacity: 0.4;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- 6. MOBIL JAVÍTÁSOK --- */
@media only screen and (max-width: 768px) {
    .container {
        padding: 40px 15px 0;
    }

/* Itt javítottuk a div szelektor hibát .container-re */
    .container img {
        width: 80%;
        margin-top: 20px;
    }

/* Navigációs sáv */
    .nav-logo img {
    height: 8px; 
    width: auto;
    padding: 8px 18px;
    background-color: #ffffff;
    border-radius: 20px;
    }

    .nav-butt {
    color: white;
    font-size: 0.5rem;
    text-decoration: none;
    
    }

    .nav-butt-kleithron img {
    height: 28px;
    padding: 0 5px 0 5px;   
    background-color: #222222;
    border-radius: 40px;
    }

    .login-btn {
    background-color: #ffffff; 
    color: #0056b3;
    border: none;
    padding: 8px 10px;
    font-weight: 700;
    font-size: 0.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    font-family: 'Montserrat', sans-serif;
    }

/* App lista */
    .button-container ul {
        grid-template-columns: 1fr 1fr;
        gap: 15px; 
    }
}

/* --- MODAL WINDOW STÍLUSOK --- */

/* A teljes képernyős, sötétített háttér (alapból rejtve) */
.modal-overlay {
    display: none; /* Alapértelmezetten nem látszik */
    position: fixed; 
    z-index: 2000; /* A navbar (1000) fölött legyen */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Félig áttetsző fekete */
    backdrop-filter: blur(5px); /* Modern homályosítás a háttéren */
    justify-content: center; /* Középre igazítás vízszintesen */
    align-items: center; /* Középre igazítás függőlegesen */
    opacity: 0; /* Animációhoz kell */
    transition: opacity 0.3s ease;
}

/* Ha aktív a modal, megjelenítjük */
.modal-overlay.active {
    display: flex;
    opacity: 1;
}


/* Maga a fehér felugró doboz */
.modal-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 25px; /* Illeszkedik a FirmNetwork stílushoz */
    width: 90%;
    max-width: 500px; /* Ne legyen túl széles nagy képernyőn */
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative; /* A bezáró gomb pozicionálásához */
    transform: translateY(-50px); /* Animáció induló pozíció */
    transition: transform 0.3s ease;
    color: #333;
}

/* Amikor aktív, "beúszik" a helyére */
.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Bezáró X gomb */
.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.close-modal:hover { color: #0056b3; }

/* Modal belső elemek */

.modal-badge {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 15px; /* Harmonizál a kártyák lekerekítésével */
    color: #ffffff; /* Fehér betűk a színes háttéren */
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Finom árnyék a kiemeléshez */
    
    /* Biztosítja, hogy a hosszú nevek ne törjenek meg */
    white-space: nowrap; 
}

.modal-header h2 { margin: 10px 0 20px; font-size: 2rem; letter-spacing: 1px;}
.modal-body p { 
    font-size: 1.1rem; 
    line-height: 1.6; 
    color: #555; 
    margin-bottom: 35px; 
    text-align: justify;
    hyphens: auto;
}

/* A "Tovább" gomb a modalban */
.modal-btn {
    display: inline-block;
    padding: 15px 35px;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: filter 0.2s, transform 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.modal-btn:hover {
    filter: brightness(1.1); /* Kicsit világosabb lesz hoverre */
    transform: translateY(-3px);
}