/* Stili per modalità dati ridotti e connessioni lente */

/* Nascondi elementi non essenziali */
.data-saver-mode img[data-non-essential],
.slow-connection img[data-non-essential] {
    display: none !important;
}

/* Riduci qualità immagini */
.data-saver-mode img,
.slow-connection img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Disabilita animazioni pesanti */
.data-saver-mode *,
.slow-connection * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Notifica modalità dati ridotti */
.data-saver-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #f39c12;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    max-width: 300px;
}

.data-saver-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.data-saver-content button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
    border-radius: 50%;
    transition: background 0.2s;
}

.data-saver-content button:hover {
    background: rgba(255,255,255,0.3);
}

/* Indicatore caricamento rete */
.network-loading-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3498db;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    font-size: 0.875rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@media (max-width: 768px) {
    .data-saver-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .network-loading-indicator {
        right: 10px;
        bottom: 10px;
    }
}


