/**
 * Styles des Bannières d'Alerte - Hyperion-Libs-SP
 *
 * Système de bannières configurables pour messages importants
 */

/* Container des bannières */
.hyperion-alert-banners-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

/* Bannière de base */
.hyperion-alert-banner {
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid;
    text-align: center;
    max-width: fit-content;
    animation: hyperion-slideIn 0.4s ease;
}

/* Animation d'entrée */
@keyframes hyperion-slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icône de la bannière */
.hyperion-alert-banner-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* Message de la bannière */
.hyperion-alert-banner-message {
    flex: 1;
}

/* Bannière Info (développement, informations générales) */
.hyperion-alert-banner.hyperion-alert-info {
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.5);
    color: #eab308;
}

/* Bannière Warning (maintenance, avertissement) */
.hyperion-alert-banner.hyperion-alert-warning {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

/* Bannière Success (confirmation, réussite) */
.hyperion-alert-banner.hyperion-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

/* Bannière Error (erreur critique) */
.hyperion-alert-banner.hyperion-alert-error {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.5);
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .hyperion-alert-banner {
        margin: 10px auto;
        padding: 10px 15px;
        font-size: 12px;
        max-width: calc(100% - 30px);
        width: auto;
    }

    .hyperion-alert-banner-icon {
        font-size: 16px;
    }

    .hyperion-alert-banners-container {
        gap: 8px;
    }
}

/* Animation au hover */
.hyperion-alert-banner:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Variante compacte */
.hyperion-alert-banner.hyperion-alert-compact {
    padding: 8px 16px;
    font-size: 12px;
}

.hyperion-alert-banner.hyperion-alert-compact .hyperion-alert-banner-icon {
    font-size: 14px;
}

/* Variante pleine largeur */
.hyperion-alert-banner.hyperion-alert-full-width {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
}
