/**
 * Narrative Display - Styles pour l'affichage des récits
 * 
 * Styles spécialisés pour l'affichage et la prévisualisation 
 * des histoires familiales générées.
 */

/* ========================================
   CONTENEUR DE RÉCIT
   ======================================== */

.hf-story-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
}

.hf-story-preview {
    background: #fafbfc;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    max-height: 500px;
    overflow-y: auto;
}

/* ========================================
   TYPOGRAPHIE DU RÉCIT
   ======================================== */

.hf-story-title {
    font-size: 2.2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    border-bottom: 3px solid #a76107;
    padding-bottom: 15px;
}

.hf-story-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    font-style: italic;
}

.hf-story-content h2 {
    font-size: 1.6rem;
    color: #a76107;
    margin: 40px 0 20px 0;
    font-weight: 600;
    border-left: 4px solid #a76107;
    padding-left: 15px;
}

.hf-story-content h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.hf-story-content p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
    text-indent: 30px;
}

.hf-story-content p:first-of-type {
    font-size: 1.2rem;
    font-weight: 500;
    text-indent: 0;
    margin-bottom: 25px;
}

/* ========================================
   ÉLÉMENTS SPÉCIAUX
   ======================================== */

.hf-generation-marker {
    background: linear-gradient(135deg, #a76107, #f4a261);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin: 30px 0 15px 0;
}

.hf-date-highlight {
    background: #fff3cd;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #856404;
}

.hf-place-highlight {
    background: #d1ecf1;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #0c5460;
}

.hf-person-highlight {
    background: #f8d7da;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #721c24;
}

/* ========================================
   CONTRÔLES D'EXPORT
   ======================================== */

.hf-export-controls {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
    border: 1px solid #e1e8ed;
}

.hf-export-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.hf-export-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hf-export-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    justify-content: center;
}

.hf-export-btn-primary {
    background: #a76107;
    color: white;
}

.hf-export-btn-primary:hover {
    background: #8b5006;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(167, 97, 7, 0.3);
}

.hf-export-btn-secondary {
    background: #e1e8ed;
    color: #666;
}

.hf-export-btn-secondary:hover {
    background: #d1d8dd;
}

/* ========================================
   MÉTADONNÉES DU DOCUMENT
   ======================================== */

.hf-document-meta {
    background: #f1f3f4;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #666;
}

.hf-meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.hf-meta-label {
    font-weight: 600;
    color: #333;
}

/* ========================================
   RESPONSIVITÉ
   ======================================== */

@media (max-width: 768px) {
    .hf-story-container {
        padding: 20px;
    }
    
    .hf-story-title {
        font-size: 1.8rem;
    }
    
    .hf-story-content p {
        font-size: 1rem;
        text-indent: 20px;
    }
    
    .hf-export-options {
        flex-direction: column;
        align-items: center;
    }
    
    .hf-export-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* ========================================
   SCROLLBAR PERSONNALISÉE
   ======================================== */

.hf-story-preview::-webkit-scrollbar {
    width: 8px;
}

.hf-story-preview::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.hf-story-preview::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.hf-story-preview::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}