/**
 * PreOrder Module - CSS Styles
 */

/* Badge preorder sulla pagina prodotto */
.preorder-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preorder-badge i {
    margin-right: 8px;
}

/* Data fine preorder */
.preorder-date-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 15px;
    color: #1565c0;
    font-size: 14px;
}

.preorder-date-info i {
    color: #2196f3;
    font-size: 20px;
}

.preorder-date-info strong {
    color: #0d47a1;
}

/* Alert messaggi */
.preorder-alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.preorder-alert i {
    font-size: 20px;
    flex-shrink: 0;
}

.preorder-alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.preorder-alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.preorder-alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Notice nel carrello */
.preorder-cart-notice {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.preorder-cart-notice h4 {
    color: #856404;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.preorder-cart-notice p {
    color: #856404;
    margin: 0;
    font-size: 14px;
}

.preorder-cart-notice i {
    font-size: 24px;
    color: #f7931e;
    margin-bottom: 10px;
}

/* Popup/Modal alert */
.preorder-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.preorder-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.preorder-modal {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.preorder-modal-overlay.active .preorder-modal {
    transform: scale(1);
}

.preorder-modal-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.preorder-modal-icon i {
    font-size: 32px;
    color: #fff;
}

.preorder-modal h3 {
    color: #333;
    font-size: 20px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.preorder-modal p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.preorder-modal-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preorder-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

/* Pulsante disabilitato */
.add-to-cart-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Animazione shake per errore */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Indicatore preorder nella lista prodotti */
.product-preorder-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 10;
}
