/**
 * Estilos para el efecto OSINT
 */

/* Terminal de OSINT */
.osint-terminal {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%) scale(0.9);
    width: 400px;
    max-width: 90%;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ff00;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    z-index: 200;
    opacity: 0;
    transition: all 0.3s ease;
}

.osint-terminal.active {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.terminal-header {
    background: #00ff00;
    color: #000;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-close {
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.terminal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.terminal-body {
    padding: 1rem;
    height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Líneas de terminal */
.terminal-line {
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: terminalFadeIn 0.3s ease forwards;
}

.terminal-line.terminal-success {
    color: #00ff00;
}

.terminal-line.terminal-error {
    color: #ff0000;
}

.terminal-line.terminal-warning {
    color: #ffaa00;
}

.terminal-line.terminal-info {
    color: #00ffff;
}

@keyframes terminalFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Logo transformado */
.logo-minimal i.osint-scanning {
    animation: radarRotate360 4s linear infinite;
    color: #00ff00 !important;
    filter: drop-shadow(0 0 20px #00ff00);
    transform-origin: center center;
    animation-delay: 0s;
}

/* Efecto de radar de pantalla completa */
.osint-radar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.osint-radar-overlay.radar-active {
    opacity: 1;
}

.osint-radar-overlay.radar-stopped {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.osint-radar-sweep {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 340deg,
        rgba(0, 255, 0, 0.15) 340deg,
        rgba(0, 255, 0, 0.05) 360deg
    );
    animation: radarRotate360 4s linear infinite;
    animation-delay: 0s;
    transform-origin: center center;
}

/* Línea de radar eliminada para evitar duplicación */
.osint-radar-line-removed {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 50%;
    background: linear-gradient(to top, 
        rgba(0, 255, 0, 0.8),
        rgba(0, 255, 0, 0.4),
        transparent
    );
    transform-origin: center top;
    animation: radarRotate360 4s linear infinite;
    transform: translateX(-50%) rotate(-90deg);
}

.osint-radar-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.osint-radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(0, 255, 0, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.osint-radar-ring:nth-child(1) {
    width: 20vh;
    height: 20vh;
}

.osint-radar-ring:nth-child(2) {
    width: 40vh;
    height: 40vh;
}

.osint-radar-ring:nth-child(3) {
    width: 60vh;
    height: 60vh;
}

.osint-radar-ring:nth-child(4) {
    width: 80vh;
    height: 80vh;
}

.osint-radar-ring:nth-child(5) {
    width: 100vh;
    height: 100vh;
}

.osint-radar-ring:nth-child(6) {
    width: 120vh;
    height: 120vh;
}

.osint-radar-ring:nth-child(7) {
    width: 140vh;
    height: 140vh;
}

.osint-radar-ring:nth-child(8) {
    width: 160vh;
    height: 160vh;
}

@keyframes radarRotate360 {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Efecto de escaneo en el contenido */
.osint-scan-effect {
    display: none;
}

/* Marcador de ubicación en el mapa */
.osint-location-marker {
    position: relative;
}

.osint-pulse-marker {
    position: relative;
    width: 50px;
    height: 50px;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid #00ff00;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: osintPulse 2s ease-out infinite;
}

.pulse-ring:nth-child(2) {
    animation-delay: 0.5s;
}

.pulse-ring:nth-child(3) {
    animation-delay: 1s;
}

.pulse-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #00ff00;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px #00ff00;
}

@keyframes osintPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Popup personalizado */
.osint-popup {
    font-family: 'Arial', sans-serif;
}

.osint-popup h4 {
    margin: 0 0 0.5rem 0;
    color: #00ff00;
}

.osint-popup p {
    margin: 0.25rem 0;
}

/* Scrollbar personalizado para la terminal */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(0, 255, 0, 0.1);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* Ajustes para móvil */
@media (max-width: 768px) {
    .osint-terminal {
        width: 95%;
        max-width: none;
        right: 50%;
        transform: translateX(50%) translateY(-50%) scale(0.9);
    }
    
    .osint-terminal.active {
        transform: translateX(50%) translateY(-50%) scale(1);
    }
    
    .terminal-body {
        height: 300px;
        font-size: 0.8rem;
    }
    
    .terminal-header {
        font-size: 0.9rem;
    }
}