/**
 * Styles CSS pour le widget Facebook d'Otoradio
 */

/* Conteneur principal du widget (Fond blanc, bordures et ombres) */
.otoradio-fb-widget {
    background: #ffffff;
    border-radius: 4px;
    font-family: Helvetica, Arial, sans-serif;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 340px;
    overflow: hidden;
    text-align: left;
}

/* En-tête du widget (Profil et bouton) */
.otoradio-fb-header {
    padding: 12px;
    border-bottom: 1px solid #dadde1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}

.otoradio-fb-profile {
    display: flex;
    align-items: center;
}

.otoradio-fb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.otoradio-fb-name {
    font-weight: bold;
    color: #4b4f56;
    font-size: 14px;
    text-decoration: none;
    display: block;
}

.otoradio-fb-subtitle {
    font-size: 11px;
    color: #90949c;
    display: block;
}

/* Bouton Suivre de type Facebook */
.otoradio-fb-follow-btn {
    background: #f5f6f7;
    border: 1px solid #ccd0d5;
    color: #4b4f56;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.otoradio-fb-follow-btn:hover {
    background: #ebedf0;
}

/* Corps défilant du flux (Barre de défilement verticale) */
.otoradio-fb-scroll-body {
    max-height: 500px;
    overflow-y: auto;
    padding: 12px;
    background: #ffffff;
}

/* Élément de publication individuel */
.otoradio-fb-post {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.otoradio-fb-date {
    font-size: 10px;
    color: #90949c;
    display: block;
    margin-bottom: 6px;
}

.otoradio-fb-text {
    color: #1d2129;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.otoradio-fb-img-container {
    margin-bottom: 8px;
}

.otoradio-fb-img {
    width: 100%;
    border-radius: 4px;
    max-height: 180px;
    object-fit: cover;
}

.otoradio-fb-link {
    color: #1877f2;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
}

.otoradio-fb-link:hover {
    text-decoration: underline;
}

.otoradio-fb-error {
    color: #666;
    text-align: center;
    font-size: 12px;
}