/* Site Alert Component Styles */

.site-alert-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 99999 !important;
    display: none;
    justify-content: center;
    align-items: center;
    animation: alertFadeIn 0.3s ease-out;
}

.site-alert-overlay.show {
    display: flex !important;
}

.site-alert-container {
    max-width: 450px;
    width: 90%;
    margin: 0 auto;
    transform: scale(0.8);
    animation: alertSlideIn 0.3s ease-out forwards;
}

.site-alert-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-alert-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.site-alert-icon {
    text-align: center;
    padding: 2rem 2rem 1rem;
    position: relative;
}

.site-alert-icon i {
    font-size: 3.5rem;
    color: #667eea;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Icon variations for different alert types */
.site-alert-success .site-alert-icon i {
    color: #28a745;
    text-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.site-alert-warning .site-alert-icon i {
    color: #ffc107;
    text-shadow: 0 2px 10px rgba(255, 193, 7, 0.3);
}

.site-alert-error .site-alert-icon i {
    color: #dc3545;
    text-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.site-alert-body {
    padding: 0 2rem 1.5rem;
    text-align: center;
}

.site-alert-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.site-alert-message {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.5;
    max-height: 200px;
    overflow-y: auto;
}

.site-alert-footer {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
    background: rgba(248, 249, 250, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.site-alert-footer .btn-site {
    min-width: 120px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.site-alert-footer .btn-site:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Animations */
@keyframes alertFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes alertSlideIn {
    from {
        transform: scale(0.8) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes alertSlideOut {
    from {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    to {
        transform: scale(0.8) translateY(-50px);
        opacity: 0;
    }
}

/* Mobile responsive */
@media (max-width: 576px) {
    .site-alert-container {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .site-alert-icon {
        padding: 1.5rem 1.5rem 0.5rem;
    }
    
    .site-alert-icon i {
        font-size: 2.5rem;
    }
    
    .site-alert-body {
        padding: 0 1.5rem 1rem;
    }
    
    .site-alert-title {
        font-size: 1.25rem;
    }
    
    .site-alert-message {
        font-size: 0.9rem;
    }
    
    .site-alert-footer {
        padding: 1rem 1.5rem 1.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .site-alert-content {
        background: linear-gradient(145deg, #2c3e50 0%, #34495e 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .site-alert-title {
        color: #ecf0f1;
    }
    
    .site-alert-message {
        color: #bdc3c7;
    }
    
    .site-alert-footer {
        background: rgba(52, 73, 94, 0.5);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}