/* Alapbeállítások és Változók */
:root {
    --primary-color: #e53935; /* Piros */
    --dark-color: #1a1a1a;    /* Sötét háttér */
    --light-color: #f0f0f0;   /* Világos szöveg */
    --grey-color: #2c2c2c;    /* Sötétszürke panelek */
    --header-height: 80px;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--dark-color);
    color: var(--light-color);
}
body.nav-open { overflow: hidden; } /* Letiltja a görgetést, ha a mobil menü nyitva */

.container { max-width: 1100px; margin: auto; padding: 0 20px; }
img { max-width: 100%; display: block; }
h1, h2 { font-family: var(--font-heading); text-transform: uppercase; margin-bottom: 20px; line-height: 1.2; }
h2 { font-size: 2.5rem; text-align: center; padding-bottom: 10px; border-bottom: 3px solid var(--primary-color); display: inline-block; }
.content-section { padding: 80px 20px; text-align: center; }
.dark-bg { background-color: var(--grey-color); }

/* --- Fejléc és Navigáció --- */
header {
    background-color: var(--dark-color);
    padding: 0 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--grey-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
}
header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo a {
    display: flex; align-items: center; gap: 15px;
    text-decoration: none; color: var(--light-color);
}
.logo img { height: 50px; width: auto; }
.logo span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    transition: font-size 0.3s ease; /* Finom átmenet a méretváltáshoz */
}

/* Asztali nézetben látható a nav */
header .main-nav { display: block; }
header .main-nav ul { list-style: none; display: flex; }
header .main-nav ul li a {
    color: var(--light-color); text-decoration: none; padding: 10px 15px;
    transition: color 0.3s ease; font-weight: bold;
}
header .main-nav ul li a:hover { color: var(--primary-color); }

/* A hamburger menü gomb alapból rejtett */
.nav-toggle { display: none; }
main { padding-top: var(--header-height); }

/* --- Hero Szekció --- */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex; justify-content: center; align-items: center; text-align: center; padding: 0 20px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/images/csoportkep.webp') no-repeat center center/cover;
}
.hero-content { max-width: 800px; }
.hero h1 { font-size: 4rem; color: white; }
.hero p { font-size: 1.5rem; color: var(--light-color); margin-bottom: 30px; }

.cta-button {
    display: inline-block; background-color: var(--primary-color); color: white; padding: 15px 30px;
    text-decoration: none; font-size: 1.2rem; font-weight: bold; border-radius: 5px;
    transition: all 0.3s ease; border: none; cursor: pointer;
}
.cta-button:hover { background-color: #c62828; transform: scale(1.05); }

/* Edzések, Form, Térkép, Lábléc változatlanok */
.edzes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; text-align: left; }
.edzes-card { background-color: var(--dark-color); padding: 30px; border-radius: 5px; border-left: 5px solid var(--primary-color); transition: transform 0.3s ease; }
.edzes-card:hover { transform: translateY(-5px); }
.edzes-card h3 { font-family: var(--font-heading); margin-bottom: 15px; color: var(--primary-color); }
.schedule-info { margin-top: 40px; font-size: 1.1rem; font-style: italic; color: #ccc; }
.contact-form { max-width: 700px; margin: 40px auto 0; text-align: left; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; color: var(--light-color); }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border-radius: 5px; border: 1px solid var(--grey-color); background-color: #2a2a2a; color: var(--light-color); font-size: 1rem; }
.contact-form button { width: 100%; margin-top: 10px; }
.map-container { margin-top: 40px; width: 100%; height: 450px; background-color: #111; border-radius: 5px; overflow: hidden; }
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* --- Galéria szekció --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}
.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: transform 0.3s;
}
.gallery-grid img:hover {
    transform: scale(1.04);
}

/* Galéria: extra képek alapból rejtve, ha nincs JS */
.gallery-grid .extra-img {
    display: none;
}

/* --- Lightbox Galéria --- */
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    flex-direction: column;
    transition: opacity 0.2s;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 2010;
    font-weight: bold;
    transition: color 0.2s;
}
.lightbox-close:hover { color: var(--primary-color); }
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 0 20px;
    z-index: 2010;
    font-weight: bold;
    transition: color 0.2s;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--primary-color); }

#edzo img {
    max-width: 100%;
    width: 220px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    margin-bottom: 20px;
}

.edzo-flex {
    display: flex;
    align-items: stretch;
    gap: 30px;
    justify-content: center;
}

.edzo-flex img {
    width: 220px;
    max-width: 100%;
    height: 100%; /* A szülő magasságához igazodik */
    object-fit: cover; /* Ha a kép aránya eltér, kitölti a magasságot */
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    margin-bottom: 0;
    flex-shrink: 0;
    display: block;
}

.edzo-flex p {
    font-size: 1.15rem;
    max-width: 400px;
    margin: 0;
    text-align: left;
    line-height: 1.7;
}

.edzo-section {
    padding-top: 8px;
    padding-bottom: 12px;
}

@media (max-width: 800px) {
    h2 { font-size: 2rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.2rem; }

    /* Asztali menü elrejtése mobilon */
    header .main-nav { display: none; }
    
    /* Logó feliratának méret- és térközcsökkentése */
    .logo span { font-size: 1.2rem; }
    .logo a { gap: 10px; }

    /* Mobil menü gomb megjelenítése */
    .nav-toggle {
        display: block;
        background: transparent; border: 0; cursor: pointer; padding: 5px; z-index: 1001;
    }

    /* Mobil menü panel stílusai */
    body.nav-open .main-nav {
        display: flex; /* Csak akkor jelenik meg, ha a body-n rajta van a class */
        position: fixed; top: 0; right: 0; width: 100%; height: 100vh;
        background: rgba(20, 20, 20, 0.98); backdrop-filter: blur(5px);
        transform: translateX(0);
        justify-content: center; align-items: center;
    }
    .main-nav ul { flex-direction: column; text-align: center; }
    .main-nav li { margin: 20px 0; }
    .main-nav a { font-size: 1.5rem; font-family: var(--font-heading); }
    
    /* Hamburger ikon animációja */
    .hamburger { display: block; position: relative; width: 25px; height: 3px; background: white; transition: all 0.2s ease-in-out; }
    .hamburger::before, .hamburger::after {
        content: ''; position: absolute; height: 3px; background: white;
        width: 100%; left: 0; transition: all 0.2s ease-in-out;
    }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }

    body.nav-open .hamburger { background: transparent; }
    body.nav-open .hamburger::before { transform: rotate(45deg) translate(5px, 6px); }
    body.nav-open .hamburger::after { transform: rotate(-45deg) translate(5px, -6px); }

    .gallery-grid img {
        height: 180px;
    }

    .lightbox-img {
        max-width: 98vw;
        max-height: 60vh;
    }
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 2rem;
    }
    .lightbox-prev, .lightbox-next {
        font-size: 2.2rem;
        padding: 0 10px;
    }

    #edzo img {
        width: 140px;
        margin-bottom: 15px;
    }

    .edzo-flex {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .edzo-flex img {
        width: 140px;
        height: auto; /* Mobilon ne legyen fix magasság */
    }
    .edzo-flex p {
        max-width: 100%;
        text-align: center;
    }
}
/* ÁLTALÁNOS stílus minden linkre */
.social-icons a {
    color: #aaa; /* Alapértelmezett halvány szürke szín */
    font-size: 2rem;
    margin: 0 10px;
    transition: color 0.3s ease;
    text-decoration: none; /* Biztos, ami biztos, vegyük ki az aláhúzást */
}

/* EGYEDI hover színek - ez a lényeg */
.social-icons a:has(.fa-youtube):hover {
    color: #ff0000; /* YouTube piros */
}

.social-icons a:has(.fa-github):hover {
    color: #181717; /* GitHub sötét */
}

.social-icons a:has(.fa-linkedin):hover {
    color: #0A66C2; /* LinkedIn kék */
}
.social-icons a:has(.fa-tiktok):hover {
    color: #000000; /* TikTok fekete */
}
.social-icons a:has(.fa-instagram):hover {
    color: #E1306C; /* Instagram jellegzetes pink/lila színe */
}

/* --- Lábléc --- */
footer {
    background: transparent; /* Kövesse az előtte lévő szekció színét */
    color: var(--light-color);
    padding: 16px 0 0 0; /* Csökkentett felső padding */
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px;
    text-align: center; /* Ez középre igazítja a szöveget is */
}

footer p {
    text-align: center;
}

footer .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: #c62828;
}