/* VORTEX WIDGET MAIN CSS (MERGED V4.0) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

:root { 
    --vortex-primary: #8b5cf6; 
    --vortex-secondary: #00ffcc; 
    --vortex-danger: #ff4d4d; 
    --vortex-gold: #ffd700; 
    --vortex-dark: #121212; 
    --vortex-header-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --widget-width: 380px;
    --widget-height: 600px;
}

/* =========================================
   1. LEBEGŐ IKON (LAUNCHER)
   ========================================= */
#vortex-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 999999; /* Legfelső réteg */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255,255,255,0.2);
}

#vortex-launcher:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.5);
}

#vortex-launcher-icon {
    font-size: 30px;
    color: white;
    animation: pulse-icon 2s infinite;
}

#vortex-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: #ff4757; color: white;
    border-radius: 50%; width: 22px; height: 22px;
    font-size: 12px; font-weight: bold;
    display: none; /* JS kapcsolja be */
    justify-content: center; align-items: center;
    border: 2px solid white;
}

@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* =========================================
   2. LEBEGŐ ABLAK (KONTÉNER)
   ========================================= */
#vortex-widget-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: var(--widget-width);
    height: var(--widget-height);
    max-height: 80vh;
    background: #0f0c29;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 999998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    
    /* Animáció: Alapból rejtve */
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

/* AKTÍV ÁLLAPOT (JS adja hozzá) */
#vortex-widget-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Mobil nézet */
@media (max-width: 480px) {
    #vortex-widget-window {
        bottom: 0; right: 0;
        width: 100%; height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    #vortex-launcher { bottom: 15px; right: 15px; }
}

/* =========================================
   3. BELSŐ LAYOUT (VORTEX CARD OVERRIDE)
   ========================================= */
#vortex-widget-container {
    padding: 0; width: 100%; height: 100%;
}

#vortex-card { 
    width: 100% !important; 
    height: 100% !important; 
    max-width: none !important; 
    border-radius: 0 !important; 
    box-shadow: none !important; 
    background: transparent !important; /* A widget ablak adja a hátteret */
    border: none !important;
    display: flex; flex-direction: column;
}

/* FEJLÉC */
#vortex-header { 
    padding: 10px 15px; height: 60px; min-height: 60px;
    display: flex; justify-content: space-between; align-items: center; 
    color: white; position: relative; z-index: 50; 
    background: var(--vortex-header-bg); 
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.player-name { font-weight: 700; font-size: 14px; color: #fff; }
.player-stats { font-size: 12px; color: #ccc; }

/* =========================================
   4. AVATAROK ÉS KERETEK (MIGRÁLVA)
   ========================================= */
.player-avatar-frame {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    display: flex; justify-content: center; align-items: center;
    font-size: 20px; line-height: 1;
    position: relative; z-index: 10;
    overflow: visible !important;
}

.player-avatar-frame img {
    width: 100%; height: 100%; 
    object-fit: cover; border-radius: 50%; display: block;
}

/* Keret Animációk */
.frame-gold::after { 
    content: ""; position: absolute; inset: -4px; border-radius: 50%; 
    border: 2px dashed #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: spin-slow 8s linear infinite; pointer-events: none; z-index: 20; 
}
.frame-neon::after { 
    content: ""; position: absolute; inset: -4px; border-radius: 50%; 
    border: 2px solid #00ffcc; box-shadow: 0 0 10px #00ffcc; 
    animation: spin-neon 4s linear infinite; pointer-events: none; z-index: 20;
}
.frame-fire::after { 
    content: ""; position: absolute; inset: -3px; border-radius: 50%; 
    border: 2px solid #ff4d4d; box-shadow: 0 0 15px #ff4d4d; 
    animation: shake-tiny 0.2s infinite; pointer-events: none; z-index: 20;
}

@keyframes spin-slow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes spin-neon { 0% { transform: rotate(0deg); filter: hue-rotate(0deg); } 100% { transform: rotate(360deg); filter: hue-rotate(360deg); } }
@keyframes shake-tiny { 0% { transform: translate(0,0); } 25% { transform: translate(1px,1px); } 75% { transform: translate(-1px,-1px); } }