/* ========================================
   VEILLE RADAR - MODERN UI (2025)
   Cyber/Clean Energy Aesthetic
   ======================================== */

/* --- Animations --- */

/* Radar Scan Effect */
@keyframes radar-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(16, 185, 129, 0.1) 360deg);
    animation: radar-spin 4s linear infinite;
    pointer-events: none;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(2.5); opacity: 0; }
}

.radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    pointer-events: none;
}
.radar-ring:nth-child(1) { width: 300px; height: 300px; animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite; }
.radar-ring:nth-child(2) { width: 500px; height: 500px; animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite 1s; }
.radar-ring:nth-child(3) { width: 700px; height: 700px; animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite 2s; }

/* Floating Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* --- Glassmorphism & Cards --- */

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-hover-effect {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-effect:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- Utilities --- */

.text-gradient-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Radial Progress Component --- */
.radial-progress {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.75rem;
}

.radial-progress::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    border-radius: 50%;
    background: radial-gradient(closest-side, white 79%, transparent 80% 100%),
                conic-gradient(currentColor calc(var(--value) * 1%), #e2e8f0 0);
}

.dark .radial-progress::before {
    background: radial-gradient(closest-side, #1e293b 79%, transparent 80% 100%),
                conic-gradient(currentColor calc(var(--value) * 1%), #334155 0);
}

/* Grid Pattern Background */
.bg-grid-pattern {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* Premium Animations for Floating Stats */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.3;
        filter: blur(12px);
    }
    50% {
        opacity: 0.5;
        filter: blur(16px);
    }
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* Smooth entrance animation for stats */
@keyframes stats-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.floating-stat:nth-child(1) { animation: stats-fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s backwards; }
.floating-stat:nth-child(2) { animation: stats-fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards; }
.floating-stat:nth-child(3) { animation: stats-fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards; }
.floating-stat:nth-child(4) { animation: stats-fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s backwards; }
