/*
Theme Name: Sabotiq Neon Core
Author: Adam
Description: Ultra-fast, gamified theme for Sabotiq with Ad support, Image Cards, Pagination, Gold Borders, Mobile fixes and Custom Logo.
Version: 1.5 FINAL
*/

:root {
    --vortex-bg: #0f0c29;
    --vortex-primary: #a29bfe; /* Neon Lila */
    --vortex-gold: #ffd700;    /* Arany */
    --vortex-danger: #ff4d4d;  /* Piros */
    --vortex-glass: rgba(0, 0, 0, 0.7);
    --vortex-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- A MOBILOS KILÓGÁS MEGOLDÁSA (MINDENRE ÉRVÉNYES) --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--vortex-bg);
    color: white;
    font-family: var(--vortex-font);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- ALAP ELRENDEZÉS --- */
.container {
    width: 100%;
    max-width: 800px; /* Direkt keskeny a mobil fókusz és az olvasás miatt */
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(162, 155, 254, 0.2);
    margin-bottom: 30px;
}


/* =========================================================================
   LINKEK (NEON ARANY ÉS NAGYÍTÁS EFFEKT)
   ========================================================================= */

/* Alapértelmezett linkek a szövegben */
a {
    color: var(--vortex-gold);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block; 
}

a:hover {
    color: var(--vortex-gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    transform: scale(1.05); 
}

/* KIVÉTEL 1: Logo és Főcím beállítások */
.site-logo-link {
    display: block;
    width: 100%;
    margin: 0 auto;
    transition: transform 0.3s ease;
}
.site-logo-link:hover {
    transform: scale(1.02); /* Egy egészen pici "lélegzés" hovernél a logónak is */
}

/* Ez feszíti ki a képet a kártyák széléig */
.site-logo-img {
    width: 100%;
    height: auto;
    border-radius: 15px; /* Harmonizál a cikkek lekerekítésével */
    display: block;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8); /* Kicsi mélység, hogy kiemelkedjen a háttérből */
}

/* Ha nincs logó feltöltve, ez a régi szöveg stílusa */
.site-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--vortex-primary);
    text-transform: uppercase;
    text-shadow: 0 0 15px var(--vortex-primary);
    letter-spacing: 2px;
    display: block;
}
.site-title:hover {
    color: var(--vortex-primary);
    text-shadow: 0 0 25px var(--vortex-primary);
}

/* KIVÉTEL 2: Főmenü */
.vortex-main-menu {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
.menu-list li a {
    color: var(--vortex-gold);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 8px;
}
.menu-list li a:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--vortex-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    text-shadow: 0 0 5px var(--vortex-gold);
    transform: scale(1.05); 
}
.menu-list li.current-menu-item a {
    background: var(--vortex-gold);
    color: #000;
    box-shadow: 0 0 15px var(--vortex-gold);
}


/* =========================================================================
   HIRDETÉSI HELYEK (AD SLOTS)
   ========================================================================= */
.vortex-ad-slot {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    margin: 25px auto;
    min-height: 250px; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,0.3);
    font-size: 12px;
    letter-spacing: 1px;
    width: 100%; /* Hirdetések se lógjanak ki */
}
.vortex-adblock-collapse:empty { display: none !important; margin: 0 !important; padding: 0 !important; min-height: 0 !important; }


/* =========================================================================
   CIKKEK OLDALA (GLASS PANEL) - ARANY KERETTEL!
   ========================================================================= */
.glass-panel {
    background: rgba(16, 16, 24, 0.98); 
    border: 2px solid var(--vortex-gold); /* <-- ITT A VÉGLEGES ARANY KERET A CIKKNEK! */
    box-shadow: 0 0 50px rgba(0,0,0,0.8); 
    border-radius: 15px; 
    padding: 20px;
    color: white;
    width: 100%;
    overflow-wrap: break-word; /* Ha túl hosszú egy szó, inkább törik, minthogy kilógjon */
}


/* =========================================================================
   FŐOLDALI RÁCS ÉS KÉPES KÁRTYÁK (ARANY KERETTEL)
   ========================================================================= */
.quiz-loop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Mobilon egy picit jobban elfér így */
    gap: 20px;
}

/* KIVÉTEL 3: A kvíz kártya linkje */
.quiz-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid var(--vortex-gold); 
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white; 
    display: flex; 
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.quiz-card:hover {
    border-color: var(--vortex-primary); /* Hovernél átvált neon lilára */
    box-shadow: 0 0 20px rgba(162, 155, 254, 0.4);
    transform: translateY(-5px);
    color: white; 
    text-shadow: none; 
}

.quiz-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(162, 155, 254, 0.2);
    display: block;
    transition: all 0.3s ease;
}

.quiz-card:hover .quiz-card-image {
    filter: brightness(1.2); 
}

.card-content {
    padding: 15px 20px;
    flex-grow: 1;
}

.card-action-wrapper {
    padding: 0 20px 20px 20px;
    display: flex;
    justify-content: center;
}
.card-action-wrapper .action-btn {
    width: auto !important;
    min-width: 150px;
    margin: 0 !important;
}


/* =========================================================================
   LAPOZÓ (PAGINATION)
   ========================================================================= */
.vortex-pagination {
    margin: 40px 0;
    text-align: center;
    width: 100%;
}
.vortex-pagination .nav-links {
    display: inline-flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.vortex-pagination .page-numbers {
    color: var(--vortex-gold);
    padding: 10px 18px;
    border: 1px solid var(--vortex-gold);
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.6);
    display: inline-block; 
}
.vortex-pagination .page-numbers:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transform: scale(1.1);
    color: var(--vortex-gold);
}
.vortex-pagination .page-numbers.current {
    background: var(--vortex-gold);
    color: #000;
    box-shadow: 0 0 15px var(--vortex-gold);
    transform: none; 
    cursor: default;
}


/* =========================================================================
   SABOTIQ NEON CORE CSS (V25.0 & Effektek)
   ========================================================================= */

#vortex-game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    background: transparent;
    width: 100%;
}

#vortex-card {
    width: 100%;
    max-width: 400px;
    height: 700px;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(162, 155, 254, 0.3);
    position: relative; 
    overflow: hidden;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
}

#vortex-question-box {
    background: rgba(0, 0, 0, 0.85) !important; 
    border: 2px solid var(--vortex-primary);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 10px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 100; 
    box-shadow: 0 0 20px rgba(162, 155, 254, 0.2);
}

#vortex-question-text {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,1);
}

#shop-grid, #inventory-grid, #main-shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 10px;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
    box-sizing: border-box;
}

.shop-item, .inv-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}
.shop-item:hover, .inv-item:hover {
    border-color: var(--vortex-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

/* --- SABOTAGE EFFEKTEK --- */
.sabotage-shake { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake { 
    10%, 90% { transform: translate3d(-2px, 0, 0); } 
    20%, 80% { transform: translate3d(4px, 0, 0); } 
    30%, 50%, 70% { transform: translate3d(-6px, 0, 0); } 
    40%, 60% { transform: translate3d(6px, 0, 0); } 
}
.sabotage-blur { filter: blur(5px); transition: filter 0.2s; }
.sabotage-rotate { transform: rotate(180deg); transition: transform 1s; }
.sabotage-dark { filter: brightness(0); transition: filter 0.2s; }
.vortex-effect-strobe { animation: strobe 0.1s infinite; }
@keyframes strobe { 
    0% { opacity: 1; background: transparent; } 
    50% { opacity: 0.8; background: white; } 
    100% { opacity: 1; background: transparent; } 
}

/* --- NEON GOMBOK --- */
button, .action-btn, .hub-tab-btn, .shop-tab-btn, .inner-tab, .profile-tab {
    background: rgba(0, 0, 0, 0.6) !important; 
    border: 1px solid var(--vortex-primary) !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 5px rgba(162, 155, 254, 0.2);
    font-size: 11px;
    letter-spacing: 1px;
    outline: none;
    width: 100%;
    margin-bottom: 5px;
    display: flex; justify-content: center; align-items: center; gap: 5px;
}

button:hover, .action-btn:hover {
    background: var(--vortex-primary) !important;
    color: #000 !important;
    box-shadow: 0 0 20px var(--vortex-primary);
    border-color: var(--vortex-primary) !important;
}

.hub-tab-btn.active, .shop-tab-btn.active, .inner-tab.active, .profile-tab.active {
    background: var(--vortex-primary) !important;
    color: black !important;
    box-shadow: 0 0 15px var(--vortex-primary);
}

button[style*="ffd700"], .action-btn[style*="ffd700"], #menu-shop-btn {
    border-color: var(--vortex-gold) !important; color: var(--vortex-gold) !important;
}
button[style*="ffd700"]:hover, #menu-shop-btn:hover {
    background: var(--vortex-gold) !important; color: black !important;
    box-shadow: 0 0 20px var(--vortex-gold);
}

.close-modal-btn, .close-main-shop, .close-bank-btn {
    border-color: var(--vortex-danger) !important; color: var(--vortex-danger) !important;
}
.close-modal-btn:hover {
    background: var(--vortex-danger) !important; color: white !important;
    box-shadow: 0 0 20px var(--vortex-danger);
}

/* --- VÁLASZ GOMBOK (PILLS) --- */
.option-pill {
    display: block; width: 90%; margin: 10px auto; padding: 15px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; text-align: center; color: white;
    text-decoration: none; font-weight: bold; font-size: 16px; transition: all 0.2s; cursor: pointer;
}
.option-pill:hover {
    background: var(--vortex-primary); border-color: var(--vortex-primary);
    box-shadow: 0 0 20px var(--vortex-primary); transform: scale(1.05); color: black;
}

/* --- MODAL OVERLAY --- */
.vortex-full-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9);
    z-index: 9000; display: none;
    justify-content: center; align-items: center; flex-direction: column;
    backdrop-filter: blur(5px);
}
.vortex-active { display: flex !important; }

/* KIVÉTEL 4: A Modal gombja (X) */
.close-modal-btn {
    position: absolute; top: 10px; right: 10px;
    width: 30px; height: 30px; padding: 0;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%;
}
/* =========================================================================
   MOBIL HAMBURGER MENÜ ÉS MARGÓK
   ========================================================================= */
.hamburger-btn {
    display: none; /* Asztali gépen rejtve */
    background: transparent !important;
    border: none !important;
    color: var(--vortex-gold) !important;
    font-size: 32px;
    cursor: pointer;
    box-shadow: none !important;
    margin: 15px auto 0;
    width: 40px;
    height: 40px;
    padding: 0;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    /* Kitoljuk az arany keretet a képernyő szélére */
    .container {
        padding: 10px 5px !important; /* Csak 5 pixel marad a képernyő széle és a keret között */
    }
    
    /* Kicsit vékonyabb belső margó, hogy a szöveg jobban kiférjen */
    .glass-panel {
        padding: 15px 10px !important;
        border-radius: 10px; /* Mobilon szebb a picit kisebb lekerekítés */
    }

    .hamburger-btn {
        display: block; /* Mobilon megjelenik */
    }
    
    .menu-list {
        display: none; /* Alapból rejtve mobilon */
        flex-direction: column;
        width: 100%;
        background: rgba(16, 16, 24, 0.98);
        border: 1px solid var(--vortex-primary);
        border-radius: 10px;
        padding: 15px;
        margin-top: 15px;
        gap: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    }
    
    .menu-list.active {
        display: flex;
        animation: fadeInDown 0.3s ease;
    }
    
    .menu-list li a {
        display: block;
        text-align: center;
        padding: 12px;
        border: 1px solid rgba(255, 215, 0, 0.2);
    }
}

/* Finom animáció a lenyíláshoz */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}