/* MODULES CSS V151.0 - SHOP TEXT & GOLD WINNER FIX */

/* --- 1. MODAL ALAPOK --- */
.vortex-full-overlay { 
    position: absolute; top: 0; left: 0; bottom: 0; right: 0; width: 100%; height: 100%; 
    border-radius: 24px; display: none; justify-content: center; align-items: center; 
    backdrop-filter: blur(5px); z-index: 999; background: rgba(0,0,0,0.85); 
    padding: 20px; box-sizing: border-box; 
}
.vortex-active { display: flex !important; } 

.glass-panel { 
    background: rgba(20, 20, 20, 0.98); padding: 25px; border-radius: 30px; 
    text-align: center; width: 95%; max-width: 340px; 
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.3); border: 2px solid var(--vortex-primary); 
    display: flex; flex-direction: column; align-items: center; gap: 15px; 
    position: relative; color: white; height: auto; max-height: 90%; overflow-y: auto; 
}

.close-modal-btn { 
    position: absolute; top: 10px; right: 10px; 
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); 
    width: 30px; height: 30px; border-radius: 50%; font-weight: bold; 
    cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center; z-index: 999; 
}
.close-modal-btn:hover { background: var(--vortex-danger); }

/* --- 2. PASS SCREEN (Fehér Szövegek) --- */
#vortex-pass-screen .glass-panel {
    background: rgba(0, 0, 0, 0.95) !important; border: 2px solid var(--vortex-primary);
}
#vortex-pass-screen h1, #vortex-pass-screen h2, #vortex-pass-screen p, #pass-title, #pass-desc {
    color: #ffffff !important; text-shadow: 0 2px 10px rgba(0,0,0,1) !important; opacity: 1 !important;
}
#next-player-name {
    font-size: 32px !important; font-weight: 900 !important; margin: 20px 0 !important;
    text-transform: uppercase; letter-spacing: 2px; color: var(--vortex-gold) !important;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5) !important;
}
#start-turn-btn {
    background: white !important; color: black !important; font-weight: 900; 
    font-size: 18px; padding: 15px 30px; border: none; box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* --- 3. SHOP GRID & TEXT JAVÍTÁS (ITT A FIX!) --- */
#shop-grid, #inventory-grid { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; 
    width: 100%; overflow-y: auto; max-height: 300px; padding: 5px; box-sizing: border-box; 
}

.shop-item, .inv-item { 
    background: rgba(255,255,255,0.08); /* Kicsit világosabb háttér */
    border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 15px 10px; 
    display: flex; flex-direction: column; align-items: center; gap: 8px; 
    cursor: pointer; position: relative; color: white; transition: 0.2s;
}
.shop-item:hover, .inv-item:hover { 
    border-color: var(--vortex-primary); background: rgba(255,255,255,0.15); transform: translateY(-2px);
}

/* --- KÁRTYA NÉV JAVÍTÁS (FEHÉRRE KÉNYSZERÍTÉS) --- */
.shop-item h4, .inv-item .inv-name {
    color: #ffffff !important; /* Fehér szín kényszerítése */
    font-size: 13px !important;
    font-weight: 700 !important;
    margin: 5px 0 !important;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8); /* Fekete árnyék az olvashatóságért */
    pointer-events: none;
}

.shop-icon, .inv-icon { font-size: 28px; margin-bottom: 5px; text-shadow: 0 0 10px rgba(255,255,255,0.3); }

.shop-price { 
    font-weight: 900; color: var(--vortex-gold); font-size: 12px; 
    background: rgba(0,0,0,0.6); padding: 4px 10px; border-radius: 6px; 
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.shop-tabs { display: flex; flex-wrap: wrap; gap: 5px; width: 100%; margin-bottom: 10px; justify-content: center; }
.shop-tab-btn { flex: 1; padding: 8px 5px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #ccc; border-radius: 8px; font-size: 10px; font-weight: 800; cursor: pointer; text-transform: uppercase; }
.shop-tab-btn.active { background: var(--vortex-primary); color: white; border-color: white; }

/* --- 4. GYŐZTES KÉPERNYŐ (EPIC GOLD) --- */
.winner-card {
    background: radial-gradient(circle, #2a2200 0%, #000000 100%) !important;
    border: 4px solid #ffd700 !important;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(255, 215, 0, 0.3) !important;
    animation: pulse-gold 2s infinite alternate;
}
.winner-card h1 {
    font-size: 42px !important; font-weight: 900 !important; color: #ffd700 !important;
    text-transform: uppercase; text-shadow: 0 0 10px #ffd700, 0 0 20px #ffaa00; margin-bottom: 20px !important;
}
#winner-name-final {
    color: white !important; font-size: 24px !important;
    background: rgba(255, 215, 0, 0.2); padding: 10px 20px;
    border-radius: 12px; border: 1px solid rgba(255, 215, 0, 0.5); margin: 15px 0 !important;
}
#winner-avatar-display {
    width: 100px; height: 100px; margin: 0 auto; border-radius: 50%;
    border: 4px solid #ffd700; box-shadow: 0 0 20px #ffd700;
    display: flex; justify-content: center; align-items: center; font-size: 50px; background: #000;
}
@keyframes pulse-gold { from { box-shadow: 0 0 40px rgba(255,215,0,0.4); } to { box-shadow: 0 0 70px rgba(255,215,0,0.8); } }

/* --- 5. EGYÉB (Profil, Inventory) --- */
.profile-edit-card { background: #111 !important; border-color: #333 !important; }
.profile-tabs-container { display: flex; gap: 5px; width: 100%; justify-content: center; margin-bottom: 10px; }
.profile-tab { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); color: #aaa; border-radius: 8px; padding: 10px; font-size: 11px; font-weight: 800; cursor: pointer; text-transform: uppercase; text-align: center; }
.profile-tab.active { background: var(--vortex-primary); color: white; border-color: var(--vortex-primary); }
.profile-section { width: 100%; text-align: left; }
#edit-avatar-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 15px; padding: 10px; background: rgba(255,255,255,0.03); border-radius: 12px; }
.edit-avatar-opt { width: 40px; height: 40px; border-radius: 50%; background: #333; display: flex; justify-content: center; align-items: center; cursor: pointer; border: 2px solid transparent; font-size: 20px; transition: 0.2s; position: relative; z-index: 1000; pointer-events: auto; }
.edit-avatar-opt.selected { border-color: var(--vortex-primary); background: rgba(139, 92, 246, 0.2); }
.inv-subtabs { display: flex; flex-wrap: wrap; gap: 5px; width: 100%; margin-bottom: 10px; justify-content: center; }
.inv-tab-btn { flex: 1; padding: 8px 5px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #ccc; border-radius: 8px; font-size: 10px; font-weight: 800; cursor: pointer; text-transform: uppercase; text-align: center; }
.inv-tab-btn.active { background: var(--vortex-primary); color: white; border-color: white; }
.inv-equip-btn { width: 100%; padding: 6px; font-size: 10px; font-weight: 900; border: none; border-radius: 6px; background: var(--vortex-primary); color: white; cursor: pointer; margin-top: 5px; }
.inv-equip-btn.equipped { background: #333; color: #888; cursor: default; }