/* ============================================================
   Cartes de publication du fil (partial vet-publication-feed-items)
   Styles mutualisés entre pro-news et publication-show.
   Source d'origine : <style> inline de pages/pro-news.blade.php
   ============================================================ */

.feed-card {
    border-radius: 0.5rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #e4e6eb;
}

.feed-card__header {
    padding: 0.75rem 1rem;
}

.feed-card__body {
    padding: 0 1rem 1rem 1rem;
}

.feed-card__author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--bs-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--bs-primary);
    overflow: hidden;
}

.feed-card__author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-card__header a:hover {
    text-decoration: underline !important;
}

.feed-card__image,
.feed-card__video {
    border-radius: 0;
    overflow: hidden;
    max-height: 550px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.feed-card__image:hover {
    opacity: 0.95;
}

.feed-card__image img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    display: block;
}

.feed-card__video {
    cursor: pointer;
}

.feed-card__video:hover {
    opacity: 0.95;
}

.feed-card__video .video-player-container,
.feed-card__video iframe,
.feed-card__video .ratio {
    width: 100%;
    height: 100%;
    min-height: 360px;
    pointer-events: none;
}

.feed-card__video .ratio-16x9 {
    aspect-ratio: 16/9;
}

.feed-card__video .ratio-1x1 {
    aspect-ratio: 1/1;
}

/* Overlay play sur vidéos dans le fil */
.feed-card__video .video-play-overlay,
.feed-card__video .instagram-play-overlay {
    pointer-events: auto;
}

.feed-card__content-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--bs-gray-800);
    margin-bottom: 0;
}

.feed-card__content-toggle {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    padding-left: 0;
    margin-left: 0.5rem;
    vertical-align: baseline;
}

/* Stats section (likes count, comments count) */
.feed-card__stats {
    font-size: 0.9rem;
    border-bottom: 1px solid #e9ecef;
}

.feed-card__like-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1877f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.feed-card__like-icon i {
    color: white;
}

.feed-card__engagement-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.feed-card__comments-stat {
    cursor: pointer;
}

.feed-card__comments-stat:hover {
    text-decoration: underline;
}

/* Actions buttons */
.feed-card__actions {
    margin-top: 0;
}

.feed-card__actions .btn-link {
    color: #65676b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

.feed-card__actions .btn-link:hover {
    background-color: #f0f2f5;
    color: #65676b;
}

.feed-card__actions .btn-link i {
    font-size: 1.125rem;
}

.feed-card__like.is-liked {
    color: #1877f2;
}

.feed-card__like.is-liked i {
    color: #1877f2;
}

.feed-card__like.is-liked:hover {
    background-color: #e7f3ff;
    color: #1877f2;
}

/* Share dropdown */
.feed-card__share.dropdown-toggle::after {
    display: none;
}

.feed-card__actions .dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e4e6eb;
    padding: 0.5rem 0;
}

.feed-card__actions .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    color: #050505;
    transition: background-color 0.2s ease;
}

.feed-card__actions .dropdown-item:hover {
    background-color: #f0f2f5;
}

.feed-card__actions .dropdown-item i {
    font-size: 1.125rem;
    width: 20px;
}

.feed-card__comments-preview {
    background: var(--bs-light);
    border-radius: 1rem;
    padding: 1rem;
}

@media (max-width: 767.98px) {
    .feed-card__author-avatar {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 1rem;
    }
}
