/* VORTEX NEON THEME V25.0 - FULL & FIXED */

: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;
}

/* --- JÁTÉK KONTÉNER & KÁRTYA --- */
#vortex-game-container {
    font-family: var(--vortex-font);
    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;
}

/* --- KRITIKUS JAVÍTÁS: KÉRDÉS DOBOZ LÁTHATÓSÁG --- */
#vortex-question-box {
    background: rgba(0, 0, 0, 0.85) !important; /* Sötét háttér */
    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; /* Biztosan felül legyen */
    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 FIX (2 OSZLOP) --- */
#shop-grid, #inventory-grid, #main-shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important; /* KÉNYSZERÍTETT 2 OSZLOP */
    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 (EZEK KELLENEK A LÁTVÁNYHOZ!) --- */

/* 1. SHAKE (Bomba, Földrengés) */
.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); } 
}

/* 2. BLUR (Zaj, Köd) */
.sabotage-blur { filter: blur(5px); transition: filter 0.2s; }

/* 3. ROTATE (Szédülés) */
.sabotage-rotate { transform: rotate(180deg); transition: transform 1s; }

/* 4. DARK (Vakond) */
.sabotage-dark { filter: brightness(0); transition: filter 0.2s; }

/* 5. STROBE (Vaku) */
.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;
}

/* Aktív állapot */
.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);
}

/* Arany Gombok (Shop) */
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);
}

/* Piros Gombok (Close) */
.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; }

.glass-panel {
    background: rgba(16, 16, 24, 0.98); border: 1px solid var(--vortex-primary);
    box-shadow: 0 0 50px rgba(0,0,0,0.8); border-radius: 15px; padding: 20px;
    position: relative; max-height: 90%; overflow-y: auto;
    width: 90%; max-width: 350px; margin: auto; text-align: center; color: white;
}

/* Bezáró gomb (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%;
}