/* --- styles.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;
}

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('szeged_tel.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('cscs_banner.png');
    
    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: 600px;
}

.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);
}

/* JAVÍTVA: 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;
}

/* 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;
}

/* === VISSZASZÁMLÁLÓ STÍLUSOK === */
#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

#countdown-timer > div {
    display: flex;
    flex-direction: column;
}

#countdown-timer .number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}

#countdown-timer .label {
    font-size: 0.9em;
    font-weight: 300;
    color: #666;
    text-transform: uppercase;
}

#countdown-timer h3 {
    color: var(--primary-color);
}

/* 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;
}

.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;
}

.editions-list a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s;
}

.editions-list a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 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(--accent-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);
}

/* 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;
    }
    
    /* Visszaszámláló mobilon */
    #countdown-timer {
        flex-wrap: wrap;
        gap: 15px;
    }
    #countdown-timer .number {
        font-size: 2em;
    }

    /* --- 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;
    }
}