/* Import Montserrat Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&display=swap');

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050505; 
}
::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ffd60a; 
}

/* Zebra Texture Overlay */
.zebra-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background: repeating-linear-gradient(
        45deg,
        #ffffff,
        #ffffff 2px,
        transparent 2px,
        transparent 10px
    );
}

/* Glassmorphism Utilities */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-header {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Text Selection */
::selection {
    background: #ffd60a;
    color: #000;
}

/* Animations */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.live-indicator {
    animation: pulse-red 2s infinite;
}

/* Hover Effects for Images */
.legend-img {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}
.legend-card:hover .legend-img {
    filter: grayscale(0%);
}

/* Ticker Animation (RALLENTATO A 80s) */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}
.ticker {
    display: inline-block;
    animation: ticker 80s linear infinite; 
}
@keyframes ticker {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Navigation Dropdown Logic (CSS Fallback) */
.nav-item:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
