/**
 * social.css - Styles pour les fonctionnalités sociales
 * 
 * Ce fichier contient tous les styles nécessaires pour les composants sociaux
 * partagés entre les pages de profil et les pages de publication.
 */

/* ===== NOTIFICATIONS ===== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    max-width: 350px;
}

.notification {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin-bottom: 10px;
    border-left: 4px solid #ccc;
}

.notification.active {
    transform: translateX(0);
    opacity: 1;
}

.notification.closing {
    transform: translateX(100%);
    opacity: 0;
}

.notification.success {
    border-left-color: #4caf50;
}

.notification.error {
    border-left-color: #f44336;
}

.notification.info {
    border-left-color: #2196f3;
}

.notification i {
    margin-right: 12px;
    font-size: 18px;
}

.notification.success i {
    color: #4caf50;
}

.notification.error i {
    color: #f44336;
}

.notification.info i {
    color: #2196f3;
}

.notification-close {
    margin-left: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 0;
    font-size: 14px;
}

.notification-close:hover {
    color: #333;
}

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal {
    background-color: white;
    border-radius: 12px;
    max-width: 90%;
    width: 500px;
    max-height: 90vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.active {
    transform: scale(1);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.modal-content {
    padding: 25px;
    overflow-y: auto;
    max-height: 80vh;
}

/* ===== MEDIA VIEWER ===== */
.photo-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-viewer-modal.active {
    opacity: 1;
}

.photo-viewer-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-btn:hover {
    opacity: 1;
}

.media-container {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-media {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
}

.media-error {
    color: white;
    background-color: rgba(244, 67, 54, 0.7);
    padding: 10px 15px;
    border-radius: 8px;
}

.navigation-controls {
    position: absolute;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.photo-counter {
    color: white;
    font-size: 16px;
    margin: 0 10px;
}

.media-actions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.media-actions button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}

.media-actions button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
}

.media-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.media-actions button i {
    font-size: 16px;
}

/* ===== SHARING MODAL ===== */
.sharing-modal-content h3,
.repost-modal-content h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.share-preview {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.share-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.share-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.share-content {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    word-break: break-word;
}

.share-thumbnail {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    max-height: 200px;
}

.share-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sharing-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.share-option-btn {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background-color: #f0f2f5;
    cursor: pointer;
    transition: background-color 0.2s;
}

.share-option-btn:hover {
    background-color: #e4e6e9;
}

.share-option-btn i {
    margin-right: 10px;
    font-size: 18px;
}

.share-option-btn.facebook-share {
    color: #3b5998;
}

.share-option-btn.twitter-share {
    color: #1da1f2;
}

.share-option-btn.whatsapp-share {
    color: #25d366;
}

.share-option-btn.copy-link-btn {
    color: #333;
}

/* ===== REPOST MODAL ===== */
.repost-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#repost-content {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

.shared-post-preview {
    background-color: #f8f9fa;
    border: 1px solid #e4e6e9;
    border-radius: 8px;
    padding: 15px;
}

.repost-privacy {
    display: flex;
    align-items: center;
    gap: 10px;
}

#repost-privacy-select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.repost-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.repost-actions button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.cancel-repost-btn {
    background: none;
    border: 1px solid #ddd;
}

.confirm-repost-btn {
    background-color: #4b6aed;
    color: white;
    border: none;
}

.confirm-repost-btn:hover {
    background-color: #3a5bde;
}

/* ===== POST CARDS - FACEBOOK STYLE ===== */
.post-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    overflow: visible;
    transition: opacity 0.3s ease;
}

.post-card.deleting {
    opacity: 0.5;
    pointer-events: none;
}

.post-card.deleted {
    display: none;
}

/* Post Header */
.post-header {
    display: flex;
    padding: 12px 16px;
    align-items: flex-start;
    position: relative;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    flex-shrink: 0;
}

.post-info {
    margin-left: 12px;
    flex-grow: 1;
    min-width: 0;
}

.author-name {
    font-weight: 600;
    font-size: 15px;
    color: #050505;
    text-decoration: none;
    display: block;
    line-height: 1.3;
}

.author-name:hover {
    text-decoration: underline;
}

.author-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.post-time {
    font-size: 13px;
    color: #65676b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-time:hover {
    text-decoration: underline;
    cursor: pointer;
}

.privacy-icon {
    font-size: 12px;
    color: #65676b;
}

.edited-indicator {
    font-size: 12px;
    color: #65676b;
    font-style: italic;
}

/* Post Options Dropdown */
.post-options-dropdown {
    position: relative;
    margin-left: auto;
}

.post-options-btn {
    background: none;
    border: none;
    color: #65676b;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.post-options-btn:hover {
    background-color: #f0f2f5;
}

.dropdown-content {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    z-index: 1000;
    display: none;
    padding: 8px 0;
    margin-top: 4px;
}

.dropdown-content.active {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    color: #050505;
    transition: background-color 0.1s;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 15px;
    gap: 12px;
}

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

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: #050505;
    font-size: 16px;
}

.dropdown-item.danger {
    color: #e41e3f;
}

.dropdown-item.danger i {
    color: #e41e3f;
}

/* Post Content */
.post-content {
    padding: 0 16px 12px;
}

.post-content p {
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
    color: #050505;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content p:empty {
    display: none;
}

/* Author Name Row with Share Indicator */
.author-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.share-indicator {
    font-size: 14px;
    color: #65676b;
    font-weight: 400;
}

.share-indicator i {
    margin-right: 4px;
    font-size: 12px;
}

/* Post Location */
.post-location {
    display: inline-flex;
    align-items: center;
    color: #65676b;
    font-size: 13px;
    margin-top: 8px;
    padding: 6px 12px;
    background-color: #f0f2f5;
    border-radius: 16px;
    gap: 6px;
}

.post-location i {
    color: #e41e3f;
}

.post-media {
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
}

.media-grid {
    display: grid;
    grid-gap: 2px;
    border-radius: 8px;
    overflow: hidden;
}

.single-media {
    grid-template-columns: 1fr;
}

.dual-media {
    grid-template-columns: repeat(2, 1fr);
}

.triple-media {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.triple-media .media-item:first-child {
    grid-row: span 2;
}

.grid-media {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.media-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
}

.media-item img, 
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 48px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play-overlay.small {
    font-size: 24px;
    width: 40px;
    height: 40px;
}

.extra-media {
    position: relative;
}

.extra-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.extra-media-overlay span {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* Post Stats - Facebook Style */
.post-card .post-stats {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 16px !important;
    color: #65676b !important;
    font-size: 15px !important;
    border-bottom: 1px solid #e4e6eb !important;
    border-top: none !important;
    background: none !important;
}

.post-card .post-stats-left {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.post-card .post-stats-right {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.post-card .likes-stat {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer;
}

.post-card .likes-stat:hover {
    text-decoration: underline;
}

.post-card .reaction-icons {
    display: flex !important;
    margin-right: 4px !important;
}

.post-card .reaction-icon {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    margin-left: -4px;
    border: 2px solid #fff !important;
}

.post-card .reaction-icon:first-child {
    margin-left: 0;
}

.post-card .reaction-icon.like {
    background: linear-gradient(180deg, #18afff 0%, #0062e0 100%) !important;
    color: white !important;
}

.post-card .reaction-icon.love {
    background: linear-gradient(180deg, #ff6b81 0%, #f00 100%) !important;
    color: white !important;
}

.post-card .comments-stat,
.post-card .shares-stat {
    cursor: pointer;
    color: #65676b !important;
}

.post-card .comments-stat:hover,
.post-card .shares-stat:hover {
    text-decoration: underline;
}

/* Post Action Buttons - Facebook Style */
.post-card .post-actions-buttons {
    display: flex !important;
    padding: 4px 16px 4px !important;
    border-top: 1px solid #e4e6eb !important;
    margin: 0 16px !important;
    background: none !important;
}

.post-card .action-btn {
    flex: 1 !important;
    background: none !important;
    border: none !important;
    padding: 12px 4px !important;
    cursor: pointer;
    color: #65676b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 4px !important;
    transition: background-color 0.15s;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.post-card .action-btn:hover {
    background-color: #f0f2f5 !important;
}

.post-card .action-btn i {
    font-size: 18px !important;
}

/* Like Button States */
.post-card .action-btn.like-btn.liked,
.post-card .action-btn.like-btn.reacted {
    color: #1877f2 !important;
}

.action-btn.like-btn.liked i,
.action-btn.like-btn.reacted i {
    animation: likeAnimation 0.3s ease;
}

.action-btn.like-btn[data-reaction="love"] {
    color: #f33e58;
}

.action-btn.like-btn[data-reaction="haha"] {
    color: #f7b125;
}

.action-btn.like-btn[data-reaction="wow"] {
    color: #f7b125;
}

.action-btn.like-btn[data-reaction="sad"] {
    color: #f7b125;
}

.action-btn.like-btn[data-reaction="angry"] {
    color: #e9710f;
}

@keyframes likeAnimation {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Hide duplicate likes count in action button */
.action-btn .likes-count {
    display: none;
}

/* ===== SHARED POSTS - FACEBOOK STYLE ===== */
.shared-post-container {
    background-color: #ffffff;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    margin: 12px 16px 0;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.15s;
}

.shared-post-container:hover {
    background-color: #f7f8fa;
}

.shared-post-header {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 8px;
}

.shared-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.shared-author-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 8px;
}

.shared-author-info {
    display: flex;
    flex-direction: column;
}

.shared-author-name {
    font-weight: 600;
    font-size: 13px;
    color: #050505;
    line-height: 1.2;
}

.shared-author-name:hover {
    text-decoration: underline;
}

.shared-post-time {
    font-size: 12px;
    color: #65676b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.shared-post-content {
    padding: 0 12px 12px;
}

.shared-post-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #050505;
}

.shared-post-content p:last-child {
    margin-bottom: 0;
}

.shared-post-media {
    margin: 10px 0;
    border-radius: 6px;
    overflow: hidden;
    max-height: 300px;
}

.shared-post-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.shared-post-action-btn {
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
    background-color: #eee;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.shared-post-action-btn:hover {
    background-color: #e4e6e9;
}

/* ===== COMMENTS ===== */
.comments-section {
    padding: 10px 15px 15px;
    border-top: 1px solid #eee;
}

.comments-container {
    margin-bottom: 15px;
}

.no-comments {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    color: #888;
    text-align: center;
}

.no-comments i {
    font-size: 24px;
    margin-bottom: 10px;
}

.comment-form {
    display: flex;
    gap: 10px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-input-container {
    flex-grow: 1;
    position: relative;
}

.comment-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 18px;
    resize: none;
    font-family: inherit;
    min-height: 40px;
    max-height: 150px;
}

.comment-media-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.comment-preview-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.comment-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-preview-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.comment-actions {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 5px;
}

.comment-media-btn, 
.send-comment-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
}

.send-comment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comment-item {
    display: flex;
    margin-bottom: 12px;
    gap: 10px;
}

.comment-content {
    flex-grow: 1;
    background-color: #f0f2f5;
    padding: 8px 12px;
    border-radius: 12px;
    position: relative;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

.comment-author {
    font-weight: 600;
    text-decoration: none;
    color: #333;
    margin-right: 8px;
}

.comment-time {
    font-size: 12px;
    color: #888;
}

.comment-text {
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

.comment-media {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.comment-media-item {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.comment-media-item img,
.comment-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-actions {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.comment-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 12px;
    padding: 2px 5px;
}

.comment-action-btn:hover {
    color: #333;
}

/* ===== FOLLOW BUTTONS ===== */
.follow-btn {
    background-color: #4b6aed;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
}

.follow-btn:hover {
    background-color: #3a5bde;
}

.follow-btn.following {
    background-color: #e8f0fe;
    color: #4b6aed;
    border: 1px solid #4b6aed;
}

.follow-btn.following:hover {
    background-color: #ffebee;
    color: #e53935;
    border-color: #e53935;
}

.follow-btn.following.unfollow-hover {
    background-color: #ffebee;
    color: #e53935;
    border-color: #e53935;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .sharing-options {
        grid-template-columns: 1fr;
    }
    
    .media-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-btn {
        font-size: 16px;
        padding: 8px 12px;
    }
    
    .fullscreen-media {
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .post-header {
        padding: 10px 12px;
    }
    
    .author-avatar {
        width: 36px;
        height: 36px;
    }
    
    .post-info {
        margin-left: 10px;
    }
    
    .author-name {
        font-size: 14px;
    }
    
    .post-time {
        font-size: 12px;
    }
    
    .post-content {
        padding: 0 12px 10px;
    }
    
    .post-content p {
        font-size: 14px;
    }
    
    .action-btn {
        font-size: 13px;
        padding: 10px 4px;
    }
    
    .action-btn span {
        display: none;
    }
    
    .action-btn i {
        font-size: 20px;
    }
    
    .post-actions-buttons {
        margin: 0 12px;
        padding: 4px 0;
    }
    
    .post-stats {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .comments-section {
        padding: 8px 12px 12px;
    }
    
    .shared-post-container {
        margin: 10px 12px 0;
    }
    
    .shared-author-name {
        font-size: 12px;
    }
    
    .shared-post-content p {
        font-size: 13px;
    }
    
    .modal {
        width: 95%;
    }
    
    .modal-content {
        padding: 20px 15px;
    }
    
    .dropdown-content {
        min-width: 180px;
    }
    
    .dropdown-item {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ===== RÉACTIONS STYLE FACEBOOK ===== */
.reaction-button-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.reaction-selector {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: white;
    border-radius: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    padding: 5px 8px;
    display: flex;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.9);
    transition: all 0.2s ease;
    z-index: 100;
}

.reaction-selector.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px) scale(1);
}

.reaction-option {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: transform 0.15s ease;
    font-size: 24px;
    line-height: 1;
}

.reaction-option:hover {
    transform: scale(1.3);
    background-color: rgba(0, 0, 0, 0.05);
}

.reaction-emoji {
    display: inline-block;
}

.like-btn.reacted {
    font-weight: 600;
}

.likes-count-badge {
    margin-left: 5px;
    font-size: 13px;
    color: #65676b;
}

.reactions-summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.reaction-emojis {
    display: flex;
    font-size: 16px;
}

.reaction-count {
    font-size: 14px;
    color: #65676b;
}

/* ===== COMMENTAIRES IMBRIQUÉS ===== */
.comment-item.reply {
    margin-left: 45px;
    padding-left: 15px;
    border-left: 2px solid #e4e6eb;
}

.comment-item.reply .comment-avatar {
    width: 28px;
    height: 28px;
}

.comment-reply-btn {
    background: none;
    border: none;
    color: #65676b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.comment-reply-btn:hover {
    text-decoration: underline;
}

.comment-like-btn {
    background: none;
    border: none;
    color: #65676b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.comment-like-btn:hover {
    text-decoration: underline;
}

.comment-like-btn.liked {
    color: #1877f2;
}

.comment-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 4px;
    font-size: 12px;
}

.comment-likes-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #65676b;
    font-size: 12px;
}

.replies-toggle {
    background: none;
    border: none;
    color: #65676b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.replies-toggle:hover {
    text-decoration: underline;
}

.replies-container {
    margin-top: 8px;
}

.reply-form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    margin-left: 45px;
    padding-left: 15px;
}

.reply-form .comment-avatar {
    width: 28px;
    height: 28px;
}

.reply-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e4e6eb;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
}

.reply-form input:focus {
    border-color: #1877f2;
}

/* ===== POST CARD AMÉLIORÉ ===== */
.post-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.post-header {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.post-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: #050505;
    text-decoration: none;
    font-size: 15px;
}

.author-name:hover {
    text-decoration: underline;
}

.post-time {
    font-size: 13px;
    color: #65676b;
}

.edited-indicator {
    font-style: italic;
    color: #8a8d91;
    margin-left: 5px;
}

.post-content {
    padding: 0 16px 12px;
}

.post-content p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.5;
    color: #050505;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    padding: 0 16px 8px;
    border-bottom: 1px solid #e4e6eb;
    font-size: 15px;
    color: #65676b;
}

.post-stats > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-actions-buttons {
    display: flex;
    justify-content: space-around;
    padding: 4px 16px;
    border-bottom: 1px solid #e4e6eb;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #65676b;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: #f0f2f5;
}

.action-btn.liked {
    color: #f33e58;
}

.action-btn i {
    font-size: 18px;
}

/* ===== SHARED POST ===== */
.shared-post-container {
    margin: 12px 0;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    overflow: hidden;
}

.shared-post-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f7f8fa;
}

.shared-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
}

.shared-author-name {
    font-weight: 600;
    font-size: 14px;
    color: #050505;
}

.shared-post-time {
    font-size: 12px;
    color: #65676b;
    margin-left: auto;
}

.shared-post-content {
    padding: 12px;
}

.shared-post-content p {
    margin: 0 0 10px;
    font-size: 14px;
}

.shared-post-actions {
    padding: 10px 12px;
    border-top: 1px solid #e4e6eb;
    background: #f7f8fa;
}

.shared-post-action-btn {
    font-size: 13px;
    color: #1877f2;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.shared-post-action-btn:hover {
    text-decoration: underline;
}
