/* ==========================================================================
   REEFMANAGER - QUANTUM TRANSLATION BANNER (3D HYPER-GLASS & ORBITAL BEAM)
   ========================================================================== */

/* 1. Umlaufende 360°-Laserstrahl-Rotation um die gesamte Karte */
@keyframes banner-orbit-beam {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 2. Wabernde Gravitations-Aura (Tiefen-Atmung) */
@keyframes banner-quantum-breathe {
    0%, 100% {
        box-shadow: 
            0 0 25px rgba(0, 229, 255, 0.25),
            0 0 50px rgba(255, 255, 255, 0.12),
            0 25px 70px rgba(0, 0, 0, 0.95);
        border-color: rgba(0, 229, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 0 45px rgba(0, 229, 255, 0.55),
            0 0 90px rgba(0, 229, 255, 0.3),
            0 35px 95px rgba(0, 0, 0, 0.98);
        border-color: rgba(0, 229, 255, 0.85);
    }
}

/* 3. Schwebendes Icon-Pulsieren */
@keyframes icon-beacon-pulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.8));
    }
    50% {
        transform: translateY(-3px) scale(1.08);
        filter: drop-shadow(0 0 24px rgba(0, 229, 255, 1)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.6));
    }
}

/* ==========================================================================
   HAUPTKARTE (EXAKTE MITTE, 3D PERSPEKTIVE & ISOLATION)
   ========================================================================== */
.translation-hint-banner {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) rotateX(6deg) !important;
    width: 90vw !important;
    max-width: 780px !important;
    z-index: 100000 !important;
    
    padding: 2.6rem 2.8rem !important;
    border-radius: 28px !important;
    border: 2px solid rgba(0, 229, 255, 0.4) !important;
    background: transparent !important;
    
    isolation: isolate !important;
    overflow: hidden !important;
    
    opacity: 0 !important;
    visibility: hidden !important;
    transition: 
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s ease,
        visibility 0.4s ease !important;
    color: #ffffff !important;
    text-align: left !important;
}

/* Aktivierungszustand: Sanftes Einfliegen & Dauer-Schimmer */
.translation-hint-banner.active {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) rotateX(0deg) !important;
    animation: banner-quantum-breathe 4s ease-in-out infinite !important;
}

/* --- AUSSEN-ORBIT: DER ROTIERENDE QUANTUM-LASERSTRAHL --- */
.translation-hint-banner::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 350% !important;
    height: 450% !important;
    z-index: -2 !important;
    
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 200deg,
        rgba(255, 255, 255, 0.05) 240deg,
        rgba(0, 229, 255, 0.45) 290deg,
        rgba(0, 229, 255, 0.95) 345deg,
        #ffffff 360deg
    ) !important;
    
    animation: banner-orbit-beam 4.2s linear infinite !important;
    pointer-events: none !important;
}

/* --- INNENKÖRPER: 3D CYBER-GLAS MIT TIEFE & OBERER LICHTKANTE --- */
.translation-hint-banner::after {
    content: '' !important;
    position: absolute !important;
    inset: 2.5px !important;
    border-radius: 25px !important;
    z-index: -1 !important;
    
    background: radial-gradient(
        circle at 50% 0%,
        rgba(12, 24, 44, 0.95) 0%,
        rgba(4, 7, 16, 0.98) 100%
    ) !important;
    
    backdrop-filter: blur(26px) !important;
    -webkit-backdrop-filter: blur(26px) !important;
    
    box-shadow: 
        inset 0 1.5px 3px rgba(255, 255, 255, 0.85),
        inset 0 0 25px rgba(0, 229, 255, 0.2),
        inset 0 -3px 10px rgba(0, 0, 0, 0.85) !important;
        
    pointer-events: none !important;
}

/* ==========================================================================
   INHALT, TYPOGRAFIE & ANIMIERTE ELEMENTE
   ========================================================================== */
.translation-hint-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 1.8rem;
}

/* Schwebendes Quantum-Icon */
.translation-hint-icon {
    font-size: 3rem;
    color: #00ffff;
    flex-shrink: 0;
    margin-top: 4px;
    animation: icon-beacon-pulse 3.5s ease-in-out infinite;
}

.translation-hint-text {
    flex: 1;
}

/* Überschrift mit Neon-Schimmer */
.translation-hint-text h4 {
    margin: 0 0 12px 0;
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.7), 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Schreibmaschinen Cursor */
.typewriter-cursor {
    display: inline-block;
    color: #00ffff;
    font-weight: 300;
    margin-left: 4px;
    animation: blink-cursor 0.8s infinite;
    text-shadow: 0 0 12px #00ffff;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.translation-hint-text p {
    color: #e2e8f0;
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 14px;
}

/* Liste als schwebende Mini-Glaskacheln */
.translation-hint-text ul {
    margin-top: 10px;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.translation-hint-text ul li {
    position: relative;
    padding: 8px 14px 8px 34px;
    font-size: 0.94rem;
    color: #cbd5e1;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.translation-hint-text ul li:hover {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.4);
    transform: translateX(4px);
    color: #ffffff;
}

.translation-hint-text ul li::before {
    content: "➔";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ffff;
    font-size: 0.9rem;
    text-shadow: 0 0 8px #00ffff;
}

/* ==========================================================================
   HIGH-END 3D SCHLIESSEN-BUTTON
   ========================================================================== */
.translation-hint-close {
    position: absolute !important;
    top: 18px !important;
    right: 20px !important;
    z-index: 10 !important;
    
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    font-size: 1.3rem !important;
    cursor: pointer !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.translation-hint-close:hover {
    background: #00ffff !important;
    color: #050508 !important;
    border-color: #00ffff !important;
    transform: scale(1.15) rotate(90deg) !important;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.9), 0 0 45px rgba(0, 229, 255, 0.5) !important;
}

/* ==========================================================================
   RESPONSIVE ANPASSUNG (SMARTPHONES < 650px)
   ========================================================================== */
@media (max-width: 650px) {
    .translation-hint-banner {
        padding: 1.8rem 1.2rem !important;
        border-radius: 20px !important;
        width: 94vw !important;
    }
    .translation-hint-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.2rem;
    }
    .translation-hint-icon {
        font-size: 2.5rem;
    }
    .translation-hint-text h4 {
        justify-content: center;
        font-size: 1.3rem;
    }
    .translation-hint-text ul li {
        text-align: left;
        font-size: 0.88rem;
    }
    .translation-hint-close {
        top: 12px !important;
        right: 14px !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 1.1rem !important;
    }
}