/* --- style.css --- */

/* ALAP BEÁLLÍTÁSOK ÉS RESET */
:root {
    --primary-color: #004d99; /* Egy sötétkék (Szegedi Egyetemre jellemző) */
    --secondary-color: #f0f0f0; /* Világos háttér */
    --text-color: #333;
    --accent-color: #ff6600; /* Egy élénk narancs a kiemeléshez */
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}


body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

.container {
    width: 80%; /* A tartalom szélessége 80% */
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px; /* Fontos: ez a 15px tolja be a szöveget */
    position: relative; /* Ez teszi lehetővé, hogy a benne lévő absolute elemek ehhez igazodjanak */
}

/* ÚJ BANNER SZEKCIÓ */
.hero-section {
    height: 350px;
    background-image: url('Bolyai_hatter.jpg');
    background-size: cover;
    background-position: center;
}

/* Ez a container a banneren belül van. Teljes magasságot adunk neki. */
.hero-container {
    height: 100%;
}

/* FEJLÉC STÍLUSOK (MÓDOSÍTVA A HÁTTÉRKÉPPEL) */
.site-header {
    position: absolute;
    top: 140px;
    left: 15px; 
    
    /* 1. Háttérszín (fallback): Ez jelenik meg, ha a kép nem töltődik be. */
    background-color: var(--primary-color);
    
    /* 2. Háttérkép: Ezt a szín fölé rajzolja a böngésző. */
    background-image: url('csm_banner.jpg');
    
    background-size: cover; /* A kép töltse ki a dobozt torzítás nélkül */
    background-position: center; /* A kép közepe legyen a doboz közepén */
    
    color: white;
    padding: 25px 35px;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    max-width: 520px;
}

.site-header h1 {
    font-size: 2.0em;
    margin-bottom: 5px;
}

.site-header .date-location {
    font-size: 1.1em;
    font-weight: 300;
}

/* NAVIGÁCIÓ STÍLUSOK (FLEXBOX) */
.main-nav {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* A '>' jel biztosítja, hogy csak a közvetlen ul-re vonatkozzon a szabály */
.main-nav .container > ul {
    list-style: none;
    display: flex; 
    justify-content: center;
    padding: 15px 0;
}

.main-nav li a {
    text-decoration: none;
    color: var(--primary-color);
    padding: 10px 15px;
    display: block;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.main-nav li a:hover {
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
}

/* === AKTÍV MENÜPONT KIJELZÉSE === */
.main-nav li a.active {
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
}

/* -------------------------------------- */
/* LEGÖRDÜLŐ MENÜ STÍLUSOK */
/* -------------------------------------- */

.dropdown {
    position: relative; 
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    position: absolute; 
    top: 100%; 
    left: 0;
    background-color: white;
    list-style: none;
    padding: 10px 0;
    margin: 0; 
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 5px;
    z-index: 1000;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    padding: 12px 20px;
    white-space: nowrap; 
}

.dropdown-menu li a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color); 
}

/* FŐ TARTALOM (KÁRTYA STÍLUSOK) */
main {
    padding: 50px 0 30px;
}

.card {
    background-color: white;
    padding: 30px;
	margin-top: 25px;
	margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: justify;
}

.card h2 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    display: inline-block;
    text-align: left;
}

.card h3 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.3em;
}

/* BIZOTTSÁGOK OLDAL */
#organizing-committee-section {
    margin-top: 35px;
}

.committee-list {
    list-style-type: none;
    padding-left: 0;
}

.committee-list li {
    padding: 4px 0;
    font-size: 1.05em;
}

.topics-list {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
}

#committee ul {
    list-style-type: none;
    padding-left: 0;
    text-align: left;
}

/* ELŐADÓK, RÉSZTVEVŐK */

.far-col {
    padding-left: 30px;
}


/* FLEXBOX CSOPORTOSÍTÁS (RESZPONZÍV ELRENDEZÉS) */
.flex-group {
    display: flex;
    gap: 25px;
}

.half-width {
    flex: 1;
	margin-top: 0;
	margin-bottom: 25px;
}

/* LÁBLÉC STÍLUSOK */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

.site-footer p {
    margin: 5px 0;
}

.site-footer .last-updated {
    opacity: 0.7;
}


/* KIEGÉSZÍTŐ STÍLUSOK */
.dates-table {
    width: 100%;
    border-collapse: collapse;
}

.dates-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

tr.upcoming {
    font-weight: bold;
}

.highlight-row {
    background-color: #f9f9f9;
}

/* Previous Editions lista stílusai */
.editions-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.editions-list li {
    margin-bottom: 12px;
    font-size: 1.1em;
}

/* Contact lista stílusai */
.contact-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.contact-list li {
    margin-bottom: 12px;
    font-size: 1.1em;
}


/* VENUE KÁRTYA STÍLUSOK */
.subsection-header {
    margin-top: 25px;
}

.venue-image {
    display: block;
    width: 50%; /* Asztali nézeten 50% széles */
    margin: 15px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.venue-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 30px;
}

/* GOMB STÍLUSOK */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    cursor: pointer;
}

.btn:hover {
    background-color: #e65c00; 
    transform: translateY(-2px);
}

/* --- ÚJ REGISZTRÁCIÓS ŰRLAP STÍLUSOK (styles.css kiegészítés) --- */

.form-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

#accomodation.radio-group {
    margin-bottom: 10px;
}

#accomodation ~ .form-group {
    margin-bottom: 10px;
}

#special {
    margin-bottom: 15px;
}

#arrival-group label, 
#departure-group label, 
#room-sharing label, 
#special-group label {
    font-weight: 400;
} 

#mealtype-group.radio-group {
    margin-top: 10px;
}



.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"], /* Bár itt pattern van használva */
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif; /* Font beállítása */
    font-size: 1em;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 77, 153, 0.2);
}

.form-group input[readonly] {
    background-color: #f2f2f2;   /* világosszürke háttér */
    color: #777;                 /* szürke szöveg */
    cursor: not-allowed;
}

/* Radio és checkbox csoportok stílusa */
.radio-group, .checkbox-group {
    padding-left: 10px;
    margin-top: 5px;
}

.radio-group label, .checkbox-group label {
    display: inline-block; /* Hogy a szöveg a jelölő mellett legyen */
    font-weight: 400; /* Ne legyen vastag */
    margin-bottom: 5px;
    cursor: pointer;
}

.radio-group input[type="radio"], .checkbox-group input[type="checkbox"] {
    margin-right: 8px; /* Távolság a jelölőtől */
    vertical-align: middle; /* Középre igazítás */
    width: auto; /* Alapértelmezett szélesség */
}

/* Kisebb szövegek a formon belül (pl. magyarázatok) */
.small-text {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

.login-msg {
    text-align: center;
}

/* Gomb stílus (már van, de ha kell finomítani) */
.btn {
    display: block;
    width: auto; /* Hogy ne legyen full széles */
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Gombok csoportosítása egymás mellett, a formát nem változtatjuk */
.button-group {
    display: inline-flex;   /* inline-flex, hogy ne vegye el a teljes sort */
    gap: 15px;              /* távolság a gombok között */
    justify-content: center; /* jobbra tolja a gombokat */
    width: 100%;               /* teljes sort vegyen, hogy a flex működjön */}

/* Ne legyen széthúzva */
.button-group .btn {
    width: auto;            /* természetes szélesség */
    display: inline-block;  /* formát megtartja */
}


/* Automatikus kiegészítés */
.autocomplete-suggestions {
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    position: absolute;
    z-index: 1000;
    display: none; /* alapból rejtve legyen */
    box-sizing: border-box; /* biztosítja, hogy a padding benne legyen a szélességben */
}

/* Amikor vannak javaslatok, JS állítja display: block-re */
.suggestion-item {
    padding: 5px 10px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #eee;
}



/* MÉDIA LEKÉRDEZÉS (RESZPONZIVITÁS) */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .hero-section {
        height: 280px;
    }
    
    .site-header {
        top: 25px;
        left: 15px; 
        right: 15px;
        width: auto;
        max-width: none;
        padding: 15px 20px;
    }
    
    .site-header h1 {
        font-size: 1.3em;
    }
    
    .site-header .date-location {
        font-size: 1.0em;
    }

    /* Navigáció mobilra */
    .main-nav .container > ul {
        flex-direction: column;
        text-align: center;
    }

    .dropdown-menu {
        position: static; 
        display: none; 
        box-shadow: none;
        border-top: 1px solid #eee;
        border-radius: 0;
        margin: 0;
    }

    .dropdown:hover .dropdown-menu {
        display: block; 
    }

    .dropdown-menu li a {
        padding-left: 40px; 
    }

    /* Kártyák mobilra */
    .flex-group {
        flex-direction: column; 
        gap: 0;
    }
    
 
    /* --- MÉDIA LEKÉRDEZÉS BŐVÍTÉSE AZ ÚJ ELEMEKKEL --- */
    
    /* Venue kép - mobilon a kép töltse ki a rendelkezésre álló szélességet */
    .venue-image {
        width: 100%; 
    }

    /* Térkép magasságának csökkentése mobilon */
    .venue-map {
        height: 300px;
    }

    /* Gomb teljes szélességűvé tétele a könnyebb érintésért */
    .btn {
        display: block;
        width: 100%;
        margin-top: 20px;
    }

    /* Kisebb térköz a kártyán belüli alcímeknél */
    .subsection-header {
        margin-top: 20px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .button-group .btn {
        width: 100%;        /* mobilon teljes szélesség érintésbarát */
    }}