/* Alapvető beállítások */
:root {
    --primary-color: #5cb85c; /* Zöld */
    --dark-bg: #1a1a1a;
    --light-bg: #2a2a2a;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --secondary-green: #4CAF50;
    --hover-green: #6bc56b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oxanium', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth; /* Sima görgetés */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-green);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--heading-color);
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

section {
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* Elrejti a tartalom kilógását az animációknál */
}

/* Header és Navigáció */
.header {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo img {
    height: 60px;
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    margin: 0 auto; /* Középre igazítás */
    justify-content: center;
}

.main-nav .nav-list li {
    margin: 0 15px;
}

.main-nav .nav-list li a {
    color: var(--text-color);
    font-weight: bold;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav .nav-list li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    left: 50%;
    bottom: -5px;
    transition: width 0.3s ease, left 0.3s ease;
}

.main-nav .nav-list li a:hover::after,
.main-nav .nav-list li a.active::after {
    width: 100%;
    left: 0;
}

.main-nav .nav-list li a:hover,
.main-nav .nav-list li a.active {
    color: var(--primary-color);
}

.hamburger-menu {
    color: var(--text-color);
    font-size: 1.8em;
    cursor: pointer;
    display: none; /* Alapértelmezetten rejtett */
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: left 0.4s ease-in-out;
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
}

.mobile-nav ul li {
    margin: 25px 0;
}

.mobile-nav ul li a {
    color: var(--text-color);
    font-size: 0.9em;
    font-weight: bold;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.mobile-nav ul li a:hover {
    color: var(--primary-color);
}


/* Hero Szekció */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Minimális sötétítés */
    z-index: -1;
}

.hero-content {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content .main-logo {
    max-width: 400px;
    width: 80%;
    margin-bottom: 30px;
}

.hero-content h1 {
    font-size: 4em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 10px;
    color: var(--heading-color);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    color: var(--text-color);
}

.scroll-arrow {
    color: var(--primary-color);
    font-size: 3em;
    position: absolute;
    bottom: 80px;
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Státusz Szekció */
.status-section {
    background-color: var(--light-bg);
    text-align: center;
}

.status-banner {
    max-width: 300px; /* Vagy az általad kívánt méret */
    width: 100%;
    margin-bottom: 30px;
    display: block; /* Ez a kulcsfontosságú módosítás! */
    margin-left: auto; /* Középre igazítás display: block mellett */
    margin-right: auto; /* Középre igazítás display: block mellett */
}

.server-status-info {
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: inline-block;
    min-width: 300px;
    text-align: left;
    border: 1px solid var(--primary-color);
}

.server-status-info p {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.server-status-info p strong {
    color: var(--primary-color);
}

.status-online {
    color: var(--primary-color);
    font-weight: bold;
}

.status-offline {
    color: #f44336; /* Piros */
    font-weight: bold;
}

/* Jellemzők Szekció */
.features-section {
    background-color: var(--dark-bg);
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(92, 184, 92, 0.3);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.2);
}

.feature-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.8em;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-color);
}

/* Közösség és Kapcsolat Szekció (egyesített) */
.community-contact-section {
    background-color: var(--light-bg); /* Mostantól ez is szürke lesz */
    text-align: center;
}

.community-contact-section p {
    font-size: 1.1em;
    margin-bottom: 40px; /* Helyet hagy a widgetnek és gombnak */
}

.community-contact-section .discord-widget {
    margin: 0 auto 30px auto; /* Középre igazítás és alatta térköz */
    display: block; /* Hogy elfoglalja a teljes szélességet a középre igazításhoz */
    max-width: 350px; /* A Discord widget iframe szélességéhez igazítva */
    border-radius: 10px; /* Lekerekített sarkok */
    overflow: hidden; /* Biztosítja, hogy a saroklekerekítés érvényesüljön */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-color); /* Vékony zöld keret a widgetnek */
}

.discord-join-btn {
    margin-top: 20px; /* Térköz a widget és a gomb között */
    font-size: 1.1em;
}

.discord-join-btn i {
    margin-right: 10px; /* Térköz az ikon és a szöveg között */
}

/* Footer */
.footer {
    background-color: rgba(26, 26, 26, 0.9); /* Mostantól a headerrel azonos színű */
    color: var(--text-color);
    text-align: center;
    padding: 25px 0;
    font-size: 0.9em;
    border-top: 1px solid rgba(92, 184, 92, 0.3);
}

/* Scroll-to-top gomb */
#scrollToTopBtn {
    display: none; /* Alapértelmezetten rejtett */
    position: fixed; /* Fix pozíció */
    bottom: 30px; /* Alulról 30px */
    right: 30px; /* Jobbról 30px */
    z-index: 99; /* Előtte legyen minden máson */
    border: none; /* Nincs szegély */
    outline: none; /* Nincs körvonal fókuszban */
    background-color: var(--primary-color); /* Háttérszín a zöld változóval */
    color: white; /* Szövegszín */
    cursor: pointer; /* Egérkurzor mutató */
    padding: 15px 18px; /* Belső margó */
    border-radius: 50%; /* Kör alakú */
    font-size: 24px; /* Ikon mérete */
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.4); /* Zöldes árnyék */
}

#scrollToTopBtn:hover {
    background-color: var(--hover-green); /* Sötétebb zöld hoverre */
    transform: translateY(-3px); /* Kicsi emelkedés hoverre */
    box-shadow: 0 6px 15px rgba(0, 255, 0, 0.6);
}

#scrollToTopBtn i {
    display: block; /* Biztosítja az ikon középre igazítását */
}

/* Reszponzivitás a gombhoz (ha szükséges) */
@media (max-width: 600px) {
    #scrollToTopBtn {
        bottom: 20px;
        right: 20px;
        padding: 12px 15px;
        font-size: 20px;
    }
}

/* Animációk (görgetéskor) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

.delay-1 {
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Reszponzivitás */
@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    h2 {
        font-size: 2em;
    }

    .feature-grid, .community-grid {
        grid-template-columns: 1fr; /* Egy oszlop mobilnézetben */
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .hero-content .main-logo {
        max-width: 280px;
    }
    
    .scroll-arrow {
        font-size: 2.5em;
    }

    .status-section .container,
    .features-section .container,
    .community-contact-section .container { /* EZT AZ ÚJAT HASZNÁLD */
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
}
/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 20px; /* Alulról 20px */
    left: 20px; /* Balról 20px */
    background-color: rgba(30, 30, 30, 0.95); /* Sötét, enyhén áttetsző háttér */
    color: var(--text-color);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    max-width: 350px; /* Max. szélesség */
    z-index: 1000; /* Legfelül legyen */
    display: none; /* Alapértelmezetten rejtett */
    flex-direction: column;
    gap: 10px;
    opacity: 0; /* Kezdeti átlátszóság animációhoz */
    transform: translateX(-100%); /* Kezdeti pozíció animációhoz */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.cookie-consent-banner.show {
    display: flex; /* Megjelenítjük flexboxként */
    opacity: 1; /* Animáljuk láthatóra */
    transform: translateX(0); /* Animáljuk a helyére */
}

.cookie-consent-banner p {
    font-size: 0.95em;
    margin-bottom: 0; /* Nincs alsó margó a szövegnél */
    line-height: 1.4;
}

.cookie-consent-banner p a {
    color: var(--primary-color);
    font-weight: bold;
}

.cookie-consent-banner .cookie-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    text-transform: uppercase;
    font-weight: 600;
    align-self: flex-start; /* Gomb a bal oldalra igazítva */
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: none; /* Nincs extra árnyék */
}

.cookie-consent-banner .cookie-btn:hover {
    background-color: var(--hover-green);
    transform: none; /* Ne mozduljon el hoverre */
}

/* Reszponzív beállítások mobilra */
@media (max-width: 600px) {
    .cookie-consent-banner {
        bottom: 10px;
        left: 10px;
        right: 10px; /* Mobilon teljes szélességben nyúljon ki */
        max-width: unset; /* Ne legyen max-width */
        padding: 12px 20px;
    }

    .cookie-consent-banner .cookie-btn {
        width: 100%; /* Gomb teljes szélességben */
        align-self: stretch;
        margin-top: 10px;
    }
}