/* === FIXERLY - GLOBAL STYLES === */

/* --- FONTS & GLOBAL --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    overflow-x: hidden;
}

/* Selezione testo personalizzata */
::selection {
    background: #eab308;
    color: #0f172a;
}

/* Scrollbar personalizzata */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
    border: 2px solid #0f172a;
}
::-webkit-scrollbar-thumb:hover {
    background: #eab308;
}

/* --- SFONDO TECNICO ANIMATO --- */
@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.technical-mat-bg {
    background-color: #0f4c81;
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 50px 50px;
    position: relative;
    animation: gridMove 20s linear infinite;
}

.technical-mat-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 20%, #0f172a 100%);
    pointer-events: none;
}

/* Animazione galleggiamento icone sfondo */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
.floating-icon {
    animation: float 6s ease-in-out infinite;
}

/* --- VETRO AVANZATO (Con Shimmer Effect) --- */
.glass-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Il riflesso di luce al passaggio del mouse */
.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

.glass-container:hover::before {
    left: 150%;
    transition: 0.7s ease-in-out;
}

.glass-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}

/* --- INPUT --- */
.input-glass {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,0.05);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.input-glass::placeholder { color: rgba(255, 255, 255, 0.4); }

.input-glass:focus {
    background: rgba(0, 0, 0, 0.5);
    outline: none;
    border-color: rgba(234, 179, 8, 0.5);
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.1);
}

select.input-glass option { background-color: #1e293b; }

/* --- BOTTONE LIQUID GOLD (Animato) --- */
.btn-liquid {
    background: linear-gradient(135deg, #fcd34d 0%, #eab308 50%, #ca8a04 100%);
    background-size: 200% auto;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 20px rgba(234, 179, 8, 0.3);
    transition: all 0.4s ease;
}

.btn-liquid:hover {
    background-position: right center;
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 15px 30px rgba(234, 179, 8, 0.5), 0 0 15px rgba(253, 224, 71, 0.5);
}

.btn-liquid:active {
    transform: scale(0.98);
}

/* --- ENTRANCE ANIMATIONS --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Badge pulsante */
.pulse-badge {
    animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(234, 179, 8, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}