/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar - minimal dark */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #00249c;
}

::-webkit-scrollbar-thumb {
    background: #00249c;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e10600;
}

/* Selection color */
::selection {
    background: #e10600;
    color: white;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 1px solid #e10600;
    outline-offset: 2px;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #e10600 0%, #00249c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient border utility */
.gradient-border {
    position: relative;
    background: black;
    border-radius: 9999px;
}

.gradient-border::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    padding: 1px;
    background: linear-gradient(135deg, #e10600, #00249c);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Premium glow effects - Updated to use blue glow as requested */
.glow-red {
    box-shadow: 0 0 40px rgba(0, 36, 156, 0.15);
}

.glow-blue {
    box-shadow: 0 0 40px rgba(0, 36, 156, 0.25);
}

/* Mesh gradient background - Light version */
.mesh-gradient {
    background: 
        radial-gradient(at 40% 20%, rgba(225, 6, 0, 0.05) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(0, 36, 156, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(0, 36, 156, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(225, 6, 0, 0.03) 0px, transparent 50%);
}

/* Mobile menu transition */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Blue glow effect for text - Intensified for "Redazione AI" */
.glow-blue-text {
    text-shadow: 0 0 80px rgba(0, 36, 156, 1), 0 0 160px rgba(0, 36, 156, 0.9), 0 0 240px rgba(0, 36, 156, 0.7), 0 0 320px rgba(0, 36, 156, 0.5);
}

/* On-air blinking animation for live indicator */
@keyframes on-air-blink {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 8px rgba(225, 6, 0, 0.8), 0 0 16px rgba(225, 6, 0, 0.4);
    }
    50% { 
        opacity: 0.4; 
        box-shadow: 0 0 4px rgba(225, 6, 0, 0.4), 0 0 8px rgba(225, 6, 0, 0.2);
    }
}

.animate-on-air {
    animation: on-air-blink 1.2s ease-in-out infinite;
}