/* =========================================
   1. ALAPBEÁLLÍTÁSOK (RESET & BASE)
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #121212; /* Mélyfekete háttér */
    color: #e0e0e0; /* Világosszürke szöveg (szemkímélő) */
    font-family: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Fő konténer középre igazításhoz */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* =========================================
   2. FEJLÉC ÉS MENÜ (HEADER) - JAVÍTOTT
   ========================================= */
header {
    background-color: #1a1a1a;
    border-bottom: 2px solid #39ff14;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.7);
}

/* ITT A VÁLTOZÁS: */
nav {
    display: flex;
    justify-content: space-between; /* Ez a kulcs! Balra a Logo, Jobbra a Menü */
    align-items: center;
    width: 100%; /* Kitölti a teljes szélességet */
    flex-wrap: wrap; 
}

/* =========================================
   LOGÓ BEÁLLÍTÁSOK (JAVÍTOTT)
   ========================================= */
.logo {
    margin-right: auto; /* Ez tolja el a menüt jobbra */
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px; /* A fejléc magasságához igazítva */
    width: auto;  /* A szélesség automatikus, hogy ne torzuljon */
    object-fit: contain;
    filter: drop-shadow(0 0 5px #39ff14); /* Egy kis neon ragyogás a kép mögé */
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05); /* Pici nagyítás ha ráviszed az egeret */
    filter: drop-shadow(0 0 10px #39ff14); /* Erősebb ragyogás */
}

nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}
/* =========================================
   3. KÁRTYÁK ÉS GRID (CARDS) - JAVÍTOTT
   ========================================= */
.cheat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.cheat-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative; /* FONTOS: Ez tartja egyben a linket */
    overflow: hidden;
    cursor: pointer; /* Kéz ikon jelenjen meg */
}

.cheat-card:hover {
    transform: translateY(-5px);
    border-color: #39ff14;
    box-shadow: 0 5px 20px rgba(57, 255, 20, 0.15);
}

.cheat-card h3 {
    margin: 0 0 10px 0;
}

/* A TRÜKK: Az egész kártyát linkké tesszük */
.cheat-card h3 a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* A kártya fölé, de a címkék alá */
}

.cheat-card h3 a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.cheat-card h3 a:hover {
    color: #39ff14;
}

/* Címkék és Meta adatok (Hogy külön is kattinthatóak maradjanak) */
.cheat-card .tags a,
.cheat-card .meta a {
    position: relative;
    z-index: 2; /* A nagy link fölé emeljük */
}

/* Meta adatok a kártya alján */
.meta {
    font-size: 13px;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Hogy mindig alul legyen */
    padding-top: 15px;
    border-top: 1px solid #333;
}

/* =========================================
   4. GOMBOK (BUTTONS)
   ========================================= */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-size: 14px;
    text-align: center;
    transition: 0.3s;
}

/* Elsődleges Neon Gomb */
.btn-primary {
    background-color: #39ff14;
    color: #000;
}

.btn-primary:hover {
    background-color: #32cb12;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

/* Másodlagos / Szürke gomb */
.btn-secondary {
    background-color: #333;
    color: white;
}
.btn-secondary:hover { background-color: #444; }

/* Törlés / Veszély gomb */
.btn-danger {
    background-color: #e74c3c;
    color: white;
}
.btn-danger:hover { background-color: #c0392b; box-shadow: 0 0 10px rgba(231, 76, 60, 0.4); }

/* =========================================
   5. ŰRLAPOK (FORMS)
   ========================================= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background-color: #252525;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: 0.3s;
}

/* Ha belekattintasz */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #39ff14;
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.2);
    background-color: #2a2a2a;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #ccc;
    font-size: 14px;
}

/* =========================================
   6. TÁBLÁZATOK (ADMIN & LISTÁK)
   ========================================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

th {
    background-color: #252525;
    color: #39ff14;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #333;
}

td {
    padding: 12px;
    border-bottom: 1px solid #333;
    color: #ccc;
}

tr:hover {
    background-color: #222; /* Kiemelés ha ráviszed az egeret */
}

/* =========================================
   7. STÁTUSZ CÍMKÉK (BADGES)
   ========================================= */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.working {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.patched {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.testing {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid #f1c40f;
}

/* =========================================
   8. EGYÉB ELEMEK
   ========================================= */
/* Kód blokk */
pre {
    background-color: #000;
    color: #0f0; /* Klasszikus hacker zöld */
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    border: 1px solid #333;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
}

/* Homályosított szöveg (Hide Hack) */
.blurred {
    filter: blur(6px);
    user-select: none;
    opacity: 0.5;
}

/* Lapozó gombok aktív állapota */
.pagination a.active {
    background-color: #39ff14;
    color: black;
}

/* =========================================
   9. MOBIL OPTIMALIZÁLÁS
   ========================================= */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 10px;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 10px;
        background: #222;
        border-radius: 5px;
    }

    .container {
        width: 95%;
        padding: 10px;
    }
    
    .cheat-card {
        padding: 15px;
    }
}