/* ALAPVETŐ BEÁLLÍTÁSOK */
:root {
    --primary-color: #d97706; /* Rozsda narancs */
    --secondary-color: #0891b2; /* Terminál cián */
    --dark-bg: #111827; /* Sötétkék-szürke háttér */
    --light-bg: #1f2937; /* Világosabb panel háttér */
    --text-color: #9ca3af; /* Szürke szöveg */
    --heading-color: #f9fafb; /* Fehér címsor */
    --border-color: rgba(13, 148, 178, 0.2); /* Cián keret áttetszően */
}

* {
    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;
    overflow-x: hidden;
}

h1, h2, h3 {
    color: var(--heading-color);
    font-weight: 700;
}

h1 { font-size: 2.5em; text-shadow: 0 0 10px rgba(217, 119, 6, 0.5); }
h2 { font-size: 2.2em; border-bottom: 2px solid var(--primary-color); display: inline-block; padding-bottom: 10px; margin-bottom: 15px; }
h3 { font-size: 1.5em; color: var(--secondary-color); margin-bottom: 10px; }

p {
    font-family: 'Roboto Mono', monospace;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--heading-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.5);
}

/* HÁTTÉR VIDEÓ */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.8) radial-gradient(circle, rgba(17, 24, 39, 0.6) 0%, rgba(17, 24, 39, 0.9) 100%);
}

/* FŐ TERMINÁL ELRENDEZÉS */
.terminal-container {
    display: flex;
    max-width: 1400px;
    height: calc(100vh - 145px);
    margin: 40px auto 0;
    background-color: rgba(31, 41, 55, 0.5);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 25px rgba(8, 145, 178, 0.2);
    backdrop-filter: blur(5px);
}

/* NAVIGÁCIÓS PANEL (BAL) */
.terminal-nav {
    width: 240px;
    background-color: rgba(17, 24, 39, 0.6);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.nav-logo {
    height: 50px;
    margin-right: 15px;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--heading-color);
}

#nav-server-status {
    font-size: 0.8em;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    margin-top: 4px;
}

.nav-status-loading {
    color: var(--text-color);
}

.nav-list {
    list-style: none;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    margin-bottom: 5px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: rgba(8, 145, 178, 0.1);
    border-left-color: var(--secondary-color);
}

.nav-item.active {
    background-color: rgba(217, 119, 6, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-item i {
    width: 30px;
    font-size: 1.2em;
    margin-right: 15px;
    text-align: center;
}

.external-links {
    margin-top: auto;
}

.external-link {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    margin-top: 5px;
    color: var(--text-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.external-link:hover {
    background-color: var(--light-bg);
    color: var(--heading-color);
}

.external-link.support-link {
    color: var(--primary-color);
}

.external-link i {
    width: 30px;
    font-size: 1.2em;
    margin-right: 15px;
    text-align: center;
}

/* TARTALOM PANEL (JOBB) */
.content-display {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.screen-header {
    margin-bottom: 40px;
}

/* KEZDŐLAP KÉPERNYŐ */
#home.screen.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 500px;
    padding: 20px 0;
}

.hero-content .main-logo {
    max-width: 300px;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1em;
}

/* Kezdőlap Statisztika Szekció */
.stats-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 30px;
    margin-bottom: 15px;
}

.home-stats-wrapper {
    padding: 20px;
    background-color: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
}

.home-stats-main-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.home-stats-secondary-grid {
    display: flex;
    gap: 20px 30px; /* sor- és oszlopköz */
    justify-content: center;
    flex-wrap: wrap;
}

.home-stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.home-stat-label {
    font-size: 0.8em;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 5px;
}

.home-stat-value {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    line-height: 1.2;
}

.home-stat-value.primary {
    font-size: 1.6em;
    color: var(--primary-color);
}

.home-stats-secondary-grid .home-stat-value {
    font-size: 1.1em;
    color: var(--heading-color);
}


/* STÁTUSZ KÉPERNYŐ */
.status-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.status-banner {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.server-status-info {
    background-color: rgba(17, 24, 39, 0.7);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.server-status-info p {
    font-size: 1.1em;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.server-status-info p:last-child {
    margin-bottom: 0;
}

.server-status-info strong {
    color: var(--heading-color);
    font-weight: 700;
}

.status-online { color: #22c55e; }
.status-offline { color: #ef4444; }

.connect-btn {
    margin-top: 20px;
}

.connect-btn i { margin-right: 10px; }


/* SZERVER INFÓ KÉPERNYŐ */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.feature-item {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.3);
}

.feature-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-right: 25px;
}

.feature-content h3 {
    margin-bottom: 5px;
}
.feature-content p span {
    color: var(--heading-color);
    font-weight: bold;
}


/* KAPCSOLAT KÉPERNYŐ */
.community-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.discord-widget-container {
    width: 100%;
    max-width: 500px;
    height: 400px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.discord-join-btn i {
    margin-right: 10px;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: var(--text-color);
    background-color: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* SÜTI BANNER & GOMBOK */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    transition: all 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: #b45309;
    transform: translateY(-3px);
}

.cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--light-bg);
    color: var(--text-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    z-index: 1001;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.cookie-consent-banner.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.cookie-consent-banner p { margin-bottom: 15px; }
.cookie-btn { width: 100%; }


/* RESZPONZIVITÁS */
.mobile-header { display: none; }

@media (max-width: 1024px) {
    .terminal-container {
        flex-direction: column;
        margin: 0;
        min-height: 100vh;
        height: auto;
    }
    .terminal-nav {
        width: 100%;
        height: calc(100vh - 60px);
        position: fixed;
        top: 60px;
        left: -100%;
        bottom: 0;
        z-index: 999;
        background-color: var(--dark-bg);
        padding-top: 20px;
        transition: left 0.3s ease-in-out;
    }
    .terminal-nav.open {
        left: 0;
    }
    .content-display {
        padding: 20px;
        margin-top: 60px;
        overflow-y: visible;
    }
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: rgba(31, 41, 55, 0.8);
        padding: 10px 20px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        border-bottom: 1px solid var(--border-color);
        backdrop-filter: blur(5px);
    }
    .mobile-logo { height: 40px; }
    .hamburger-menu {
        color: var(--heading-color);
        font-size: 1.8em;
        cursor: pointer;
    }
    .status-grid {
        grid-template-columns: 1fr;
    }
    .status-banner {
        max-width: 300px;
        margin: 0 auto 20px auto;
    }
    .footer {
        max-width: none;
        margin: 0;
    }

    /* --- JAVÍTÁS: MOBIL MENÜ BELSŐ TÁVOLSÁGA --- */
    .terminal-nav .nav-list {
        flex-grow: 0; /* Kikapcsolja a rugalmas növekedést, ami a nagy teret okozta */
    }
    .terminal-nav .external-links {
        margin-top: 30px; /* Az 'auto' helyett egy kisebb, fix távolságot ad */
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    .main-logo { max-width: 250px; }
    .content-display { padding: 15px; }
    .home-stats-wrapper {
        padding: 15px;
    }
    .home-stats-main-grid {
        gap: 20px;
    }
    .home-stats-secondary-grid {
        gap: 15px 20px;
    }
    .home-stat-value.primary {
        font-size: 1.4em;
    }
     .home-stats-secondary-grid .home-stat-value {
        font-size: 1em;
    }
    .cookie-consent-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
    #scrollToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}