/**
 * 🤖 MODE SUGGESTION MODAL STYLES
 * Styles pour la modal de suggestion intelligente de mode
 */

/* === VARIABLES CSS === */
:root {
    --mode-primary: #2c3e50;
    --mode-secondary: #3498db;
    --mode-success: #27ae60;
    --mode-warning: #f39c12;
    --mode-danger: #e74c3c;
    --mode-light-bg: #ecf0f1;
    --mode-dark-bg: #34495e;
    --mode-border: #e0e0e0;
}

/* === OVERLAY DE LA MODAL === */
.mode-suggestion-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.mode-suggestion-modal.show {
    display: flex;
}

/* === CONTENU DE LA MODAL === */
.mode-suggestion-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* === HEADER === */
.suggestion-header {
    background: #293F50;
    padding: 1.5rem 2rem;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.suggestion-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-header .close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.suggestion-header .close-btn:hover {
    background: #293F50;
    opacity: 1;
}

/* === BODY === */
.suggestion-body {
    background: white;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    max-height: calc(85vh - 180px);
}

.suggestion-body::-webkit-scrollbar {
    width: 8px;
}

.suggestion-body::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 4px;
}

.suggestion-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.suggestion-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* === MODE RECOMMANDÉ === */
.recommended-mode {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1));
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--mode-secondary);
    transition: all 0.3s ease;
}

.recommended-mode:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.mode-title-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.mode-title-line h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--mode-primary);
    font-weight: 600;
}

/* === BADGE DE CONFIANCE === */
.confidence-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.confidence-badge.confidence-high {
    background: var(--mode-success);
    color: white;
}

.confidence-badge.confidence-medium {
    background: var(--mode-warning);
    color: white;
}

.confidence-badge.confidence-low {
    background: var(--mode-danger);
    color: white;
}

/* === INFO MODE === */
.mode-info {
    display: flex;
    gap: 1rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.info-item i {
    opacity: 0.7;
    font-size: 0.95rem;
}

/* === SECTIONS COMMUNES === */
.suggestion-reasoning,
.suggested-features,
.alternative-modes {
    background: var(--mode-light-bg);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--mode-border);
    transition: all 0.3s ease;
}

.suggestion-reasoning:hover,
.suggested-features:hover,
.alternative-modes:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.suggestion-reasoning h4,
.suggested-features h4,
.alternative-modes h4 {
    margin: 0 0 0.75rem 0;
    color: var(--mode-primary);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === REASONING SPÉCIFIQUE === */
.suggestion-reasoning {
    border-left: 4px solid var(--mode-warning);
}

.suggestion-reasoning p {
    margin: 0;
    color: #2c3e50;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* === FEATURES LIST === */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--mode-primary);
    padding: 0.6rem 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.feature-item:hover {
    background: #f8f9fa;
    border-color: var(--mode-secondary);
    transform: translateX(4px);
}

.feature-item i {
    color: var(--mode-success);
    font-size: 0.95rem;
}

/* === ALTERNATIVES LIST === */
.alternatives-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alternative-mode-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    background: white;
    border: 1px solid var(--mode-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--mode-primary);
    font-size: 0.9rem;
}

.alternative-mode-btn:hover {
    background: #f8f9fa;
    border-color: var(--mode-secondary);
    transform: translateX(6px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

.alt-mode-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alt-mode-time {
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* === FOOTER === */
.suggestion-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--mode-border);
    background: #f8f9fa;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.suggestion-footer .btn {
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.suggestion-footer .btn-secondary {
    background: white;
    color: #7f8c8d;
    border: 1px solid var(--mode-border);
}

.suggestion-footer .btn-secondary:hover {
    background: var(--mode-light-bg);
    color: var(--mode-primary);
    border-color: var(--mode-primary);
}

.suggestion-footer .btn-primary {
    background: linear-gradient(135deg, var(--mode-secondary) 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.suggestion-footer .btn-primary:hover {
    background: linear-gradient(135deg, #5dade2 0%, var(--mode-secondary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .mode-suggestion-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 8px;
    }

    .suggestion-header {
        padding: 1.25rem 1.5rem;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .suggestion-header h2 {
        font-size: 1.1rem;
    }

    .suggestion-body {
        padding: 1.25rem 1.5rem;
    }

    .mode-title-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .mode-title-line h3 {
        font-size: 1.1rem;
    }

    .mode-info {
        flex-wrap: wrap;
    }

    .suggestion-footer {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 1.5rem;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    .suggestion-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* === TRANSITIONS FLUIDES === */
* {
    transition: all 0.2s ease;
}

/* === FOCUS STATES === */
.suggestion-footer .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
}

/* === AMÉLIORATION DE LA LISIBILITÉ === */
.suggestion-body p,
.suggestion-body li {
    line-height: 1.6;
}
