/* --- STYLE LINK PREVIEW CARD (Horizontal Final) --- */

.qba-link-card-container.horizontal {
    max-width: 400px;
    margin: 3rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: #fff;
    padding: 10px;
    border-radius: 21px;
    border: 2px dotted #ddd;
    flex-direction: column;
}

/* --- GAUCHE : Carte --- */
.qba-link-preview {
    flex: 0 0 240px;
    display: block;
    background: #f5f5f7;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: default;
    text-decoration: none !important;
}

.qba-preview-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.qba-preview-content {
    padding: 12px;
}

.qba-preview-domain {
    font-size: 0.65rem;
    color: #86868b;
    font-weight: 600;
    margin-bottom: 4px;
}

.qba-preview-title {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qba-preview-desc {
    margin: 0;
    font-size: 0.8rem;
    color: #6e6e73;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- DROITE : CTA --- */
.qba-share-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.qba-cta-title {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.qba-cta-desc {
    margin: 0 0 16px 0;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Bouton (Ne grossit plus) */
/* Bouton Anthracite + Gros texte */
/* Bouton Bleu Vibrant + Shadow */
.qba-share-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 12px 24px;
    
    /* Bleu vibrant moderne (Royal Blue / iOS Blue) */
    background: #007AFF; 
    /* Dégradé subtil pour donner du volume */
    background: linear-gradient(180deg, #007AFF 0%, #0062cc 100%);
    
    color: white;
    border: none;
    border-radius: 12px; /* Arrondi un peu plus doux */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    gap: 10px;
    
    /* Ombre portée colorée (Glow effect) */
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.qba-share-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
    filter: brightness(1.05); /* Éclaircit légèrement */
}

.qba-share-card-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
}

.qba-share-card-btn svg {
    width: 18px;
    height: 18px;
    /* Petit effet de décalage au hover pour dynamiser */
    transition: transform 0.2s;
}

.qba-share-card-btn:hover svg {
    transform: translateX(3px); /* La flèche bouge vers la droite */
}

.qba-share-card-btn:hover svg {
    transform: rotate(-45deg); /* Petit effet "clic" */
}



/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .qba-link-card-container.horizontal {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 16px;
    }
    .qba-link-preview {
        flex: auto;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .qba-share-cta {
        text-align: center;
        align-items: center;
    }
}
