/* 
 * Styles pour le shortcode [hektor-alerte] 
 * Fichier CSS dédié pour le système d'alertes HEKTOR
 * Version: 2.0
 */

/* === BASE === */
.hektor-alerte-shortcode {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    position: relative;
}

.hektor-alerte-content {
    text-align: center;

}

/* === TITRE ET DESCRIPTION === */
.hektor-alerte-titre {
    margin-left: -54%;
    font-size: 40px;
    font-style: italic;
    color: #000000;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.hektor-alerte-titre br {
    display: block;
    margin: 4px 0;
}

.hektor-alerte-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

/* === BOUTON PRINCIPAL === */
.hektor-alerte-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hektor-alerte-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.hektor-alerte-btn-seul {
    margin: 0;
}

/* === FORMULAIRE === */
.hektor-alerte-form {
    background: white;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hektor-alerte-form-content h4 {
    color: #212529;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.hektor-alerte-form-content p {
    color: #6c757d;
    margin: 0 0 16px 0;
    font-size: 14px;
}

.hektor-alerte-fields {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

/* === CHAMP EMAIL === */
.hektor-alerte-email {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    font-size: 14px;
    box-sizing: border-box;
}

.hektor-alerte-email:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.hektor-alerte-email.invalid {
    border-color: #dc3545;
    background-color: #ffeaea;
}

/* === CRITERES === */
.hektor-criteres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.hektor-critere-select,
.hektor-critere-input {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    font-size: 14px;
    background: white;
}

.hektor-criteres-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.hektor-critere-tag {
    display: none;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
}

.hektor-criteres-note {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    margin: 0;
}

/* === ACTIONS === */
.hektor-alerte-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    margin-top: 0;
}

.hektor-alerte-sauver {
    background: #000000;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.hektor-alerte-sauver:hover {
    border: 1px solid #e6e6e6;
    background: #FFFFFF;
    color: #000000;
}

.hektor-alerte-sauver:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.hektor-alerte-annuler {
    text-decoration: underline;
    background: #FFFFFF;
    color: #6c757d;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.hektor-alerte-annuler:hover {
    background: #FFFFFF;
}

/* === MESSAGES === */
.hektor-alerte-messages {
    margin-top: 15px;
}

.hektor-alerte-message {
    padding: 12px 20px;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.hektor-alerte-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.hektor-alerte-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === STYLE SIMPLE === */
.hektor-alerte-simple {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #007bff;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hektor-alerte-shortcode {
        padding: 15px;
    }

    .hektor-alerte-titre {
        font-size: 1.3em;
    }

    .hektor-alerte-description {
        font-size: 14px;
    }

    .hektor-criteres-grid {
        grid-template-columns: 1fr;
    }

    .hektor-alerte-actions {
        flex-direction: column;
    }
}

/* === ANIMATIONS === */
@keyframes hektor-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hektor-alerte-form {
    animation: hektor-fade-in 0.3s ease-out;
}

/* === FOCUS ET ACCESSIBILITE === */
.hektor-alerte-btn:focus,
.hektor-alerte-sauver:focus,
.hektor-alerte-annuler:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.hektor-alerte-email:focus {
    transform: none;
}

/* === THEMES PERSONNALISES === */
.hektor-alerte-shortcode.theme-dark {
    color: white;
}

.hektor-alerte-shortcode.theme-dark .hektor-alerte-titre {
    color: #ecf0f1;
}

.hektor-alerte-shortcode.theme-dark .hektor-alerte-description {
    color: #bdc3c7;
}

.hektor-alerte-shortcode.theme-compact {
    padding: 10px;
}

.hektor-alerte-shortcode.theme-compact .hektor-alerte-titre {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.hektor-alerte-shortcode.theme-compact .hektor-alerte-description {
    font-size: 14px;
    margin-bottom: 10px;
}


.hektor-alerte-titre:after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    top: 10px;
    left: 390px;
    opacity: 1;
}


.hektor-alerte-description {
    display: none;
}


button.hektor-alerte-btn {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    color: #000000 !important;
    font-weight: 300 !important;
}

hektor-alerte-email {
    border: 1px solid grey;
}

/* Styles pour les critères automatiques */
.hektor-alerte-criteres-auto {
    display: none;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.hektor-alerte-criteres-auto h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #495057;
}

.hektor-criteres-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.hektor-critere-tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    border: 1px solid #dee2e6;
}

.hektor-criteres-note {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
    font-style: italic;
}

/* Styles pour les critères manuels */
.hektor-alerte-criteres-manuels {
    margin: 15px 0;
}

.hektor-alerte-criteres-manuels h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #495057;
}

.hektor-criteres-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hektor-critere-select,
.hektor-critere-input {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.hektor-critere-panel {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hektor-critere-panel label {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.hektor-critere-panel input {
    display: inline-block;
    width: 48%;
    margin-right: 4%;
}

.hektor-critere-panel input:last-child {
    margin-right: 0;
}