/* ==========================================================================
   1. GLOBÁLIS ALAPOK ÉS HÁTTÉR RÉTEGEK
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body, html {
    width: 100%;
    background-color: #05050c;
    color: #e2e8f0;
    scroll-behavior: smooth;
}

.space-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 100px;
    background-color: #05050c;
}

.saturn-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(5, 5, 12, 0.75), rgba(5, 5, 12, 0.85)), url('Saturnx.jpg');
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

.star-layer, #stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
    animation: twinkle infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.1; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* ==========================================================================
   2. NAVIGÁCIÓ & FELSŐ DROPDOWN (LENYÍLÓ MENÜ FIX)
   ========================================================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    z-index: 100;
    background: rgba(5, 5, 12, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(31, 41, 61, 0.5);
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: #00ffcc;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li {
    position: relative; /* Kiindulópont az almenühöz */
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 15px 0; /* LÁTHATATLAN HÍD: Megakadályozza, hogy a menü bezáródjon mozgás közben */
    display: inline-block;
}

.nav-links a:hover {
    color: #00ffcc;
}

/* Felső lenyíló ablak konfigurációja */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* Pontosan a menüpont aljához tapasztja */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(12, 13, 33, 0.95);
    border: 1px solid rgba(31, 41, 61, 0.8);
    border-radius: 8px;
    min-width: 180px;
    padding: 8px 0;
    margin-top: 0px; /* KITÖRÖLVE A REZIDENS ÜRES RÉS, ÍGY NEM TŰNIK EL */
    list-style: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.dropdown-content li a {
    color: #94a3b8 !important;
    padding: 10px 15px !important;
    font-size: 0.95rem !important;
    display: block !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

.dropdown-content li a:hover {
    color: #00ffcc !important;
    background: rgba(0, 255, 204, 0.05) !important;
}

/* Hover eseményre aktiválódó animált megjelenítés */
.nav-links li:hover .dropdown-content {
    display: block !important;
    animation: fadeInMenu 0.2s ease-out;
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   3. HERO & FŐ SZEKCIÓK ELEMENTJEI
   ========================================================================== */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    z-index: 10;
    margin-top: 60px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #00ffcc;
    text-shadow: 0 0 30px rgba(0, 255, 204, 0.6);
}

.hero p {
    font-size: 1.3rem;
    color: #94a3b8;
    max-width: 600px;
    margin-bottom: 40px;
}

.section {
    width: 100%;
    max-width: 1000px;
    padding: 80px 20px 20px 20px;
    z-index: 10;
    margin-top: 40px;
}

.section-title {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00ffcc, transparent);
    margin-top: 8px;
}

/* Közös kártya és box stílus (Rólam, Discord és Accordion) */
.about-box, .discord-card, .accordion-item {
    background: rgba(22, 25, 35, 0.5);
    border: 1px solid rgba(31, 41, 61, 0.6);
    padding: 35px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.about-box p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ==========================================================================
   4. INTERAKTÍV ELEMEK (MINECRAFT BOX FIX & DISCORD CARD)
   ========================================================================== */
.status-box {
    background: rgba(22, 25, 35, 0.5) !important;
    border: 1px solid rgba(31, 41, 61, 0.6) !important;
    padding: 35px !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    max-width: 450px !important;
    width: 100% !important;
    margin: 40px auto 0 auto !important; /* Fixen középre rakja a kártyát */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.status-info {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    font-size: 1.1rem !important;
    color: #94a3b8 !important;
    margin-bottom: 25px !important;
    width: 100% !important;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #64748b;
    display: inline-block;
}

.status-dot.online {
    background: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.6);
}

.status-dot.offline {
    background: #ff3838;
    box-shadow: 0 0 15px rgba(255, 56, 56, 0.6);
}

.ip-copy-btn {
    position: relative;
    background-color: transparent;
    color: #00ffcc;
    border: 2px solid #00ffcc;
    padding: 14px 28px;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
    max-width: 320px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.ip-copy-btn:hover {
    background-color: #00ffcc;
    color: #05050c;
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.4);
    transform: translateY(-2px);
}

.tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #0c0d21;
    color: #ffffff;
    padding: 5px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.ip-copy-btn:hover .tooltip {
    opacity: 1;
    bottom: -42px;
}

.player-count {
    font-size: 1.1rem;
    color: #94a3b8;
}

.player-count strong {
    color: #ffffff;
}

.discord-card {
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

.dc-icon {
    margin-bottom: 15px;
}

.discord-card p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.dc-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: #00ffcc;
    background-color: transparent;
    border: 2px solid #00ffcc;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
}

.dc-join-btn:hover {
    background-color: #5865F2;
    border-color: #5865F2;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

/* ==========================================================================
   5. BELSŐ HARMONIKA (ACCORDION) SZERKEZET
   ========================================================================== */
.accordion-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    padding: 0; 
    overflow: hidden;
    transition: border-color 0.3s;
}

.accordion-item:hover {
    border-color: rgba(0, 255, 204, 0.5);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 20px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgba(0, 255, 204, 0.03);
}

.accordion-header .arrow {
    font-size: 0.9rem;
    color: #00ffcc;
    transition: transform 0.3s ease;
}

.accordion-item.active {
    border-color: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.1);
}

.accordion-item.active .arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(12, 13, 33, 0.4);
}

.status-box-inside {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.inner-info-text {
    padding: 25px;
    color: #94a3b8;
    line-height: 1.6;
    text-align: left;
}

.inner-info-text p {
    margin-bottom: 10px;
}

/* ==========================================================================
   6. RÉGI 3D PORTFÓLIÓ KÁRTYÁK MENTÉSE
   ========================================================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 220px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.flip-card-front {
    background: rgba(22, 25, 35, 0.6);
    border: 1px solid rgba(31, 41, 61, 0.6);
    color: white;
}

.flip-card-front h3 {
    font-size: 1.4rem;
    color: #ffffff;
    position: relative;
}

.flip-card-front h3::after {
    content: '➔';
    position: absolute;
    right: 0;
    color: #00ffcc;
    font-size: 1.1rem;
    opacity: 0.5;
}

.flip-card-back {
    background: rgba(12, 13, 33, 0.8);
    border: 1px solid #00ffcc;
    color: #94a3b8;
    transform: rotateY(180deg);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.15);
}

.flip-card-back h3 {
    color: #00ffcc;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   7. FOOTER & MEDIA QUERIES
   ========================================================================== */
.made-by {
    position: fixed;
    bottom: 15px;
    left: 20px;
    font-size: 0.8rem;
    color: #94a3b8;
    z-index: 9999;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
    transition: all 0.3s ease;
    user-select: none;
}

.made-by span {
    color: #00ffcc;
    font-weight: 800;
}

.made-by:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.6);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    nav { padding: 15px 5%; }
    .nav-links { gap: 15px; font-size: 0.9rem; }
}