/* Malta Place - Styles */

/* Animazione pulse per la barra di progresso */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.pulse-animation {
    animation: pulse 1s ease-in-out;
}

/* Animazione per il contatore */
@keyframes countChange {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.count-change {
    animation: countChange 0.5s ease-in-out;
}

/* Stili per la barra di progresso */
.progress-bar {
    transition: width 0.5s ease-in-out;
}

/* Stili per il counter quando è tutto esaurito */
.sold-out {
    background-color: #f44336 !important;
    color: white !important;
    position: relative;
}

.sold-out::after {
    content: 'SOLD OUT';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Stili per il form disabilitato */
.form-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Stili per il messaggio di tutto esaurito */
.sold-out-message {
    background-color: #f44336;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: bold;
}

/* Stili per il counter in caricamento */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: inherit;
}

/* Stili per il counter compatto */
.compact-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Stili per la barra di progresso compatta */
.compact-progress {
    height: 0.5rem;
    border-radius: 9999px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.3);
}

.compact-progress-bar {
    height: 100%;
    border-radius: 9999px;
    background-color: white;
    transition: width 0.5s ease-in-out;
}

/* Stili per le icone social nel footer */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background-color: rgba(224, 0, 0, 0.1);
    color: #E00000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 0, 0, 0.2);
    border-color: rgba(224, 0, 0, 0.3);
}

.social-icon:active {
    transform: translateY(0);
}

/* Effetti specifici per Facebook */
.facebook-icon:hover {
    background-color: rgba(24, 119, 242, 0.1);
    color: #1877f2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
    border-color: rgba(24, 119, 242, 0.3);
}

/* Effetti specifici per Instagram */
.instagram-icon:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(188, 24, 136, 0.3);
    border-color: rgba(188, 24, 136, 0.3);
}

/* Animazione per le icone social */
@keyframes socialPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(224, 0, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(224, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(224, 0, 0, 0);
    }
}

.social-icon:focus {
    outline: none;
    animation: socialPulse 1.5s infinite;
}