/* =========================================
   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 */
    font-family: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Fő konténer */
.container {
    width: 90%;
    max-width: 1400px; /* Kicsit szélesebb, hogy több kártya férjen el */
    margin: 0 auto;
    padding: 20px;
    flex: 1; /* Hogy a footer mindig alulra kerüljön */
}

/* =========================================
   2. FEJLÉC ÉS MENÜ (HEADER) - JAVÍTOTT
   ========================================= */
header {
    background-color: #1a1a1a;
    border-bottom: 2px solid #39ff14;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.7);
}

nav {
    display: flex;
    justify-content: space-between; /* Balra Logó, Jobbra Menü */
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- LOGÓ BEÁLLÍTÁSOK --- */
.logo {
    display: flex;
    align-items: center;
    margin-right: auto; /* Biztonsági tolás balra */
}

.logo img {
    height: 50px; /* Fix magasság, hogy ne essen szét a menü */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px #39ff14); /* Neon ragyogás */
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px #39ff14);
}

/* --- MENÜ LISTA --- */
nav ul {
    display: flex;
    gap: 25px; /* Távolság a menüpontok között */
    align-items: center;
    margin: 0;
}

nav ul li a {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: #ccc;
    position: relative;
}

nav ul li a:hover {
    color: #39ff14;
}

/* Aktív menüpont jelölése (opcionális, ha később js-el kezeled) */
nav ul li a.active {
    color: #39ff14;
}

/* =========================================
   3. KÁRTYÁK ÉS GRID (CARDS) - FULL KLIKKELHETŐ
   ========================================= */
.cheat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Reszponzív oszlopok */
    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 a link kiterjesztéshez */
    overflow: hidden;
}

.cheat-card:hover {
    transform: translateY(-5px);
    border-color: #39ff14;
    box-shadow: 0 5px 20px rgba(57, 255, 20, 0.15);
}

.cheat-card h3 {
    margin: 10px 0;
    font-size: 18px;
}

/* --- A NAGY TRÜKK: TELJES KÁRTYA LINK --- */
/* Ez kiterjeszti a Cím linkjét az egész kártyára */
.cheat-card h3 a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Alap réteg */
}

.cheat-card h3 a {
    color: white;
    text-decoration: none;
}

.cheat-card h3 a:hover {
    color: #39ff14;
}

/* --- KIVÉTELEK (Gombok, Címkék, Linkek) --- */
/* Ezeket a Z-Index 2-re emeljük, hogy a nagy link fölött legyenek */
.cheat-card .btn,
.cheat-card .status-badge,
.cheat-card .meta a,
.cheat-card .tags a,
.cheat-card form button,
.cheat-card a.download-link {
    position: relative;
    z-index: 2; 
}

/* Meta adatok (Lábléc) */
.meta {
    font-size: 13px;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #333;
}

/* =========================================
   4. GOMBOK (BUTTONS)
   ========================================= */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-size: 13px;
    text-align: center;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-primary {
    background-color: #39ff14;
    color: #000;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.btn-primary:hover {
    background-color: #32cb12;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.6);
}

/* Szív gomb stílus */
a[href*="toggle_favorite"] {
    transition: transform 0.2s;
}
a[href*="toggle_favorite"]:active {
    transform: scale(1.2);
}

/* =========================================
   5. ŰRLAPOK (FORMS)
   ========================================= */
input, select, textarea {
    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;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #39ff14;
    background-color: #2a2a2a;
}

/* =========================================
   6. CÍMKÉK ÉS ÁLLAPOTOK
   ========================================= */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.working { background: rgba(46, 204, 113, 0.2); color: #2ecc71; border: 1px solid #2ecc71; }
.patched { background: rgba(231, 76, 60, 0.2); color: #e74c3c; border: 1px solid #e74c3c; }
.testing { background: rgba(241, 196, 15, 0.2); color: #f1c40f; border: 1px solid #f1c40f; }

/* =========================================
   7. PROFIL ÉS SHOP EXTRÁK
   ========================================= */
/* Bolt kártyák kiemelése */
.cheat-card h2 { margin: 10px 0; }

/* Profil avatar keret */
.avatar-frame {
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

/* =========================================
   8. MOBIL NÉZET (RESPONSIVE)
   ========================================= */
@media (max-width: 900px) {
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }

    .logo { margin-right: 0; margin-bottom: 10px; }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .container { width: 95%; padding: 10px; }
}