/**
 * Styles pour les Résultats de Recherche - Couleurs Claires
 * Synchronicity Mapper v3.1
 */

/* ═══════════════════════════════════════
   CONTENEUR PRINCIPAL
   ═══════════════════════════════════════ */

.sync-search-results {
    max-width: 900px;
    margin: 30px auto;
    padding: 0;
}

.sync-results-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    border: 1px solid #e0e6ed;
    border-bottom: none;
}

.sync-results-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

/* ═══════════════════════════════════════
   SECTIONS DE RÉSULTATS
   ═══════════════════════════════════════ */

.sync-result-section {
    background: white;
    padding: 25px 30px;
    border-left: 1px solid #e0e6ed;
    border-right: 1px solid #e0e6ed;
}

.sync-result-section:last-of-type {
    border-bottom: 1px solid #e0e6ed;
    border-radius: 0 0 12px 12px;
}

.sync-section-title {
    color: #34495e;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Correspondance Exacte */
.sync-exact-match {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f9ff 100%);
}

.sync-exact-match .sync-section-title {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* ═══════════════════════════════════════
   CARTES DE SYMBOLES
   ═══════════════════════════════════════ */

.sync-symbol-card {
    background: white;
    border: 2px solid #e8eef5;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sync-symbol-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.15);
    border-color: #3498db;
}

.sync-symbol-card:last-child {
    margin-bottom: 0;
}

/* En-tête de carte */
.sync-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left-width: 4px;
    border-left-style: solid;
}

.sync-symbol-name {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.sync-symbol-type {
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Aperçu de la carte */
.sync-card-preview {
    color: #5a6c7d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Pied de carte */
.sync-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.sync-archetype-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.sync-view-full {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sync-view-full:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* ═══════════════════════════════════════
   INTERPRÉTATION COMPLÈTE
   ═══════════════════════════════════════ */

.sync-full-interpretation {
    margin-top: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    border-radius: 8px;
    border: 2px solid #3498db;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sync-interpretation-content {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.sync-interpretation-content p {
    margin-bottom: 15px;
}

/* Mots-clés */
.sync-keywords {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
}

.sync-keywords strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 10px;
}

.sync-keyword-tag {
    display: inline-block;
    background: #e8f4fd;
    color: #3498db;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin: 3px;
}

/* Bouton fermer */
.sync-close-full {
    background: #ecf0f1;
    color: #7f8c8d;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.sync-close-full:hover {
    background: #bdc3c7;
    color: #2c3e50;
}

/* ═══════════════════════════════════════
   PIED DE RÉSULTATS
   ═══════════════════════════════════════ */

.sync-results-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    border: 1px solid #e0e6ed;
    border-top: none;
    border-radius: 0 0 12px 12px;
    text-align: center;
}

.sync-tip {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

.sync-tip em {
    font-style: normal;
}

/* ═══════════════════════════════════════
   AUCUN RÉSULTAT
   ═══════════════════════════════════════ */

.sync-no-results {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    border: 2px solid #e8eef5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.sync-no-results-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.sync-no-results h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 15px;
}

.sync-no-results > p {
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Suggestions */
.sync-suggestions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: left;
}

.sync-suggestions p {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
}

.sync-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sync-suggestions li {
    color: #5a6c7d;
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
}

.sync-suggestions li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* Boîte de suggestion */
.sync-suggest-box {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #3498db;
}

.sync-suggest-box h4 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 20px;
}

.sync-suggest-box p {
    color: #5a6c7d;
    margin-bottom: 20px;
}

.sync-suggest-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.sync-suggest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
    .sync-search-results {
        margin: 20px 10px;
    }
    
    .sync-results-header,
    .sync-result-section,
    .sync-results-footer {
        padding: 20px;
    }
    
    .sync-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sync-symbol-type {
        margin-top: 10px;
    }
    
    .sync-card-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .sync-view-full {
        width: 100%;
    }
    
    .sync-no-results {
        padding: 30px 20px;
    }
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */

.sync-symbol-card {
    animation: fadeInUp 0.4s ease;
}

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

/* État de chargement */
.sync-loading-results {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.sync-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #ecf0f1;
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
