/* Facebook-Style Feed Layout */
:root {
    --fb-blue: #1877f2;
    --fb-green: #42b72a;
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --text-primary: #050505;
    --text-secondary: #65676b;
    --border-color: #e4e6eb;
    --hover-overlay: rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--bg-primary);
}

/* Feed Container */
.feed-container {
    background-color: var(--bg-primary);
    min-height: 100vh;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.feed-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 680px) 280px;
    gap: 1rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Sidebar Styles */
.left-sidebar,
.right-sidebar {
    position: sticky;
    top: 72px;
    height: fit-content;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
}

.sidebar-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sidebar-card h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stats */
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.stat-label {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Main Feed */
.main-feed {
    width: 100%;
    max-width: 680px;
}

/* Create Post Box - Facebook Style */
.create-post-box {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.post-input-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-textarea {
    flex: 1;
    border: none;
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    resize: none;
    font-family: inherit;
    transition: background-color 0.2s;
}

.post-textarea:focus {
    outline: none;
    background: #e7f3ff;
}

.post-textarea::placeholder {
    color: var(--text-secondary);
}

/* Image Preview */
.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.image-preview-item {
    position: relative;
    padding-bottom: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.image-preview-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    z-index: 1;
}

.remove-image:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Post Options */
.post-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

.post-action-btn:hover {
    background-color: var(--hover-overlay);
    color: var(--text-primary);
}

.post-action-btn i {
    font-size: 1.25rem;
}

.post-submit-btn {
    background: var(--fb-blue);
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.post-submit-btn:hover {
    background: #166fe5;
}

.post-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Feed Posts */
.feed-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feed-post {
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Post Header */
.post-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 0.75rem;
}

.post-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-header-info {
    flex: 1;
    min-width: 0;
}

.post-author-name {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9375rem;
}

.post-author-name:hover {
    text-decoration: underline;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.post-group-link {
    color: var(--text-secondary);
    text-decoration: none;
}

.post-group-link:hover {
    text-decoration: underline;
}

/* Post Content */
.post-content {
    padding: 0 1rem 1rem 1rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Post Images */
.post-images {
    margin-top: 1rem;
    width: 100%;
}

.post-images-grid {
    display: grid;
    gap: 2px;
    width: 100%;
}

.post-images-grid.grid-1 {
    grid-template-columns: 1fr;
    max-height: 500px;
}

.post-images-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.post-images-grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
}

.post-images-grid.grid-3 .post-image:first-child {
    grid-column: 1 / -1;
}

.post-images-grid.grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    background: var(--bg-primary);
    min-height: 200px;
    max-height: 500px;
}

.post-images-grid.grid-2 .post-image,
.post-images-grid.grid-4 .post-image {
    max-height: 300px;
}

/* Post Interactions */
.post-interactions {
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}

.interaction-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.likes-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.likes-count:hover {
    text-decoration: underline;
}

.likes-count i {
    color: #f02849;
}

.likes-count-text {
    font-weight: 400;
}

.comments-count-text {
    cursor: pointer;
}

.comments-count-text:hover {
    text-decoration: underline;
}

/* Post Actions Bar */
.post-actions-bar {
    display: flex;
    padding: 0.25rem 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.post-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: none;
    border: none;
    border-radius: 4px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.post-action:hover {
    background-color: var(--hover-overlay);
}

.post-action.liked {
    color: var(--fb-blue);
}

.post-action.liked i {
    color: var(--fb-blue);
}

/* Comments Section */
.post-comments-section {
    padding: 1rem;
    display: none;
}

.post-comments-section.show {
    display: block;
}

.comment-input-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-input-container {
    flex: 1;
}

.comment-textarea {
    width: 100%;
    border: none;
    background: var(--bg-primary);
    border-radius: 18px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    resize: none;
    font-family: inherit;
    max-height: 120px;
}

.comment-textarea:focus {
    outline: none;
    background: #e7f3ff;
}

.comment-actions {
    display: none;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: flex-end;
}

.comment-textarea:focus + .comment-actions,
.comment-actions:hover {
    display: flex;
}

.comment-cancel-btn,
.comment-submit-btn {
    padding: 0.25rem 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.comment-cancel-btn {
    background: none;
    color: var(--text-secondary);
}

.comment-cancel-btn:hover {
    background: var(--hover-overlay);
}

.comment-submit-btn {
    background: var(--fb-blue);
    color: white;
}

.comment-submit-btn:hover {
    background: #166fe5;
}

.comments-list {
    margin-top: 1rem;
}

/* Friend Requests */
.friend-request-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.friend-request-item:last-child {
    border-bottom: none;
}

.friend-request-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.friend-request-info {
    flex: 1;
}

.friend-request-name {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9375rem;
}

.friend-request-name:hover {
    text-decoration: underline;
}

.friend-request-time {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.friend-request-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.friend-request-actions .btn {
    padding: 0.375rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 6px;
}

/* Suggested People */
.suggested-person-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.suggested-person-item:last-child {
    border-bottom: none;
}

.suggested-person-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.suggested-person-info {
    flex: 1;
}

.suggested-person-name {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9375rem;
}

.suggested-person-name:hover {
    text-decoration: underline;
}

.suggested-person-location {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.suggested-person-actions {
    margin-top: 0.5rem;
}

.add-friend-btn {
    padding: 0.375rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 6px;
}

/* Loading State */
.post-skeleton {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

.skeleton-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
}

.skeleton-line.short {
    width: 60%;
}

.loading-placeholder {
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Responsive Design */
@media (max-width: 1280px) {
    .feed-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }
    
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 992px) {
    .feed-layout {
        grid-template-columns: 1fr;
    }
    
    .left-sidebar,
    .right-sidebar {
        display: none;
    }
    
    .main-feed {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .feed-container {
        padding-top: 0.5rem;
        padding-bottom: 1rem;
    }
    
    .feed-layout {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .create-post-box,
    .feed-post {
        border-radius: 0;
    }
    
    .post-input-wrapper {
        gap: 0.5rem;
    }
    
    .post-avatar,
    .comment-avatar {
        width: 36px;
        height: 36px;
    }
    
    .post-textarea {
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem;
    }
}

@media (max-width: 576px) {
    .post-action span {
        display: none;
    }
    
    .post-action {
        padding: 0.375rem 0.5rem;
    }
    
    .friend-request-avatar,
    .suggested-person-avatar {
        width: 48px;
        height: 48px;
    }
    
    .interaction-stats {
        font-size: 0.8125rem;
    }
}

/* Custom Scrollbar */
.left-sidebar::-webkit-scrollbar,
.right-sidebar::-webkit-scrollbar {
    width: 8px;
}

.left-sidebar::-webkit-scrollbar-track,
.right-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.left-sidebar::-webkit-scrollbar-thumb,
.right-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.left-sidebar::-webkit-scrollbar-thumb:hover,
.right-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Empty State */
.empty-feed {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-feed i {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-feed h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-feed p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Video Post Styles (from previous response) */
.video-post-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.video-post-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.video-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-post-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s;
}

.video-post-thumbnail:hover .video-post-play {
    background: rgba(24, 119, 242, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-post-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-post-info {
    padding: 0.75rem;
    background: white;
}

.video-post-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-post-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.video-post-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Classified Preview */
.classified-preview {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.classified-preview:hover {
    background: var(--hover-overlay);
}

.classified-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.classified-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.classified-info {
    flex: 1;
    min-width: 0;
}

.classified-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.classified-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fb-blue);
    margin-bottom: 0.5rem;
}

.classified-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Blog Preview */
.blog-preview {
    margin-bottom: 0.75rem;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-primary);
    transition: all 0.2s;
}

.blog-preview:hover {
    background: var(--hover-overlay);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-info {
    padding: 1rem;
}

.blog-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.video-preview{
max-width:100%;
}
/* Share Modal Styles */
.share-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-option-btn:hover {
    border-color: var(--fb-blue);
    background: #f0f2ff;
    transform: translateY(-2px);
}

.share-option-btn i {
    font-size: 2rem;
    color: var(--fb-blue);
    margin-bottom: 0.5rem;
}

.share-option-btn span {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.share-option-btn small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Quoted Post Styles */
.quoted-post {margin:10px;
    margin-top: 1rem;
	
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    background: var(--bg-primary);
}

.quoted-post-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.quoted-post-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.quoted-post-content {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.quoted-post-images {
    margin-top: 0.75rem;
}

.quoted-post-images .post-images-grid {
    border-radius: 8px;
    overflow: hidden;
}

.original-post-preview {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Share button states */
.post-action.shared {
    color: var(--fb-green);
}

.post-action.shared i {
    color: var(--fb-green);
}

/* Comment Section */
.post-comments-section {
    display: none;
    padding: 1rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.post-comments-section.show {
    display: block;
}

.comment-input-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-input-container {
    flex: 1;
}

.comment-textarea {
    width: 100%;
    border: none;
    background: white;
    border-radius: 18px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    resize: none;
    font-family: inherit;
    max-height: 120px;
    border: 1px solid var(--border-color);
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--fb-blue);
}

.comment-actions {
    display: none;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: flex-end;
}

.comment-textarea:focus + .comment-actions,
.comment-actions:hover {
    display: flex;
}

.comment-cancel-btn,
.comment-submit-btn {
    padding: 0.25rem 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.comment-cancel-btn {
    background: none;
    color: var(--text-secondary);
}

.comment-cancel-btn:hover {
    background: var(--hover-overlay);
}

.comment-submit-btn {
    background: var(--fb-blue);
    color: white;
}

.comment-submit-btn:hover {
    background: #166fe5;
}

.comments-list {
    margin-top: 1rem;
}

.comment-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.comment-author:hover {
    text-decoration: underline;
}

.comment-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.comment-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
}

/* Notification Toast */
.notification-toast {
    animation: slideInRight 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .share-options {
        grid-template-columns: 1fr;
    }
    
    .share-option-btn {
        padding: 1rem;
    }
    
    .share-option-btn i {
        font-size: 1.5rem;
    }
    
    .quoted-post {
        padding: 0.75rem;
    }
    
    .notification-toast {
        left: 10px;
        right: 10px;
        top: 70px !important;
    }
}

/* Video Preview - Fixed Width */
.video-preview {
    
    padding-left: 0.75rem;
   
  
    
    text-align: left;
    max-width: 100%; /* Add this */
    overflow: hidden; /* Add this */
}

.video-preview-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all 0.2s ease;
    max-width: 100%; /* Add this */
}

.video-preview-thumbnail {
    width: 120px; /* Changed from 80px for better visibility */
    min-width: 120px; /* Add this */
    height: 90px; /* Changed from 60px */
   
    object-fit: cover;
    flex-shrink: 0;
    position: relative;
}

/* Video Post Container - Fixed Width */
.video-post-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    max-width: 100%; /* Add this */
}

.video-post-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    cursor: pointer;
    display: block;
    max-width: 100%; /* Add this */
}

/* Video in feed posts */
.video-preview,
.video-post-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure images don't overflow */
.video-preview-thumbnail,
.video-post-thumbnail img,
.video-thumbnail {
    max-width: 100%;
    height: auto;
    object-fit: cover;
	border-radius:8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .video-preview-thumbnail {
        width: 100px;
        min-width: 100px;
        height: 75px;
    }
    
    .video-preview-link {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .video-preview {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .video-preview-thumbnail {
        width: 80px;
        min-width: 80px;
        height: 60px;
    }
    
    .video-preview-title {
        font-size: 0.75rem;
    }
    
    .video-preview-channel,
    .video-preview-meta {
        font-size: 0.65rem;
    }
}


/* Comment Styles */
.comment-item {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-bubble {
    background: var(--bg-primary);
    border-radius: 18px;
    padding: 0.5rem 0.75rem;
    display: inline-block;
    max-width: 100%;
}

.comment-header {
    margin-bottom: 0.25rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
}

.comment-author:hover {
    text-decoration: underline;
}

.comment-text {
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.comment-actions-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.25rem;
    padding-left: 0.75rem;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.comment-like-btn,
.comment-reply-btn,
.view-replies-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.comment-like-btn:hover,
.comment-reply-btn:hover,
.view-replies-btn:hover {
    color: var(--text-primary);
}

.comment-like-btn.liked {
    color: #e91e63;
}

.comment-like-btn.liked i {
    color: #e91e63;
}

.comment-like-count {
    font-size: 0.75rem;
}

/* Replies */
.replies-container {
    margin-top: 0.5rem;
    padding-left: 2rem;
    display: none;
}

.comment-reply {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-reply:last-child {
    border-bottom: none;
}

.comment-reply .comment-avatar {
    width: 28px;
    height: 28px;
}

.reply-form-container {
    margin-top: 0.5rem;
    padding-left: 2rem;
}

.reply-form-container .comment-avatar {
    width: 28px;
    height: 28px;
}

/* View replies button */
.view-replies-btn {
    font-weight: 600;
}

.view-replies-btn i {
    font-size: 0.7rem;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .comment-avatar {
        width: 28px;
        height: 28px;
    }
    
    .comment-bubble {
        padding: 0.375rem 0.625rem;
    }
    
    .comment-text {
        font-size: 0.875rem;
    }
    
    .comment-actions-inline {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .replies-container {
        padding-left: 1rem;
    }
    
    .reply-form-container {
        padding-left: 1rem;
    }
}

/* Video Post Styles - Enhanced */
.video-preview-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.video-preview-link:hover {
    opacity: 0.95;
}

.video-post-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-primary);
    margin: 0 1rem 0.75rem 1rem;
}

.video-post-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}

.video-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-post-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 24px;
    transition: all 0.3s;
    padding-left: 4px;
}

.video-preview-link:hover .video-post-play {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.video-post-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.video-post-info {
    padding: 1rem;
    background: white;
}

.video-post-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.3;
}

.video-post-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.video-post-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.video-post-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.video-post-stat i {
    font-size: 0.875rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .video-post-container {
        margin: 0 0.5rem 0.5rem 0.5rem;
        border-radius: 8px;
    }
    
    .video-post-info {
        padding: 0.75rem;
    }
    
    .video-post-title {
        font-size: 0.9rem;
    }
    
    .video-post-description {
        font-size: 0.8rem;
    }
    
    .video-post-play {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* Edit Comment Form */
.edit-comment-form {
    margin-top: 0.5rem;
}

.edit-comment-form textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 60px;
}

.edit-comment-form textarea:focus {
    outline: none;
    border-color: var(--fb-blue);
}

.edit-comment-form .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}

/* Reply Form Styling */
.reply-form-container {
    margin-top: 0.75rem;
    margin-left: 2.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.reply-form-container .comment-input-wrapper {
    margin-bottom: 0;
}

.reply-form-container .comment-avatar {
    width: 28px;
    height: 28px;
}

.reply-form-container .comment-textarea {
    font-size: 0.875rem;
    padding: 0.375rem 0.625rem;
}

.reply-form-container .comment-actions {
    display: flex !important;
    margin-top: 0.5rem;
}

/* Replies Container */
.replies-container {
    margin-top: 0.5rem;
    margin-left: 2.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--border-color);
}

.comment-reply {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.comment-reply:first-child {
    padding-top: 0.75rem;
}

.comment-reply .comment-avatar {
    width: 28px;
    height: 28px;
}

.comment-reply .comment-bubble {
    font-size: 0.9rem;
}

.comment-reply .comment-actions-inline {
    font-size: 0.75rem;
}

/* Comment Action Buttons */
.comment-edit-btn,
.comment-delete-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.comment-edit-btn:hover {
    color: var(--fb-blue);
}

.comment-delete-btn:hover {
    color: #dc3545;
}

.comment-edit-btn i,
.comment-delete-btn i {
    font-size: 0.7rem;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .reply-form-container {
        margin-left: 1.5rem;
    }
    
    .replies-container {
        margin-left: 1.5rem;
    }
    
    .comment-actions-inline {
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }
    
    .comment-edit-btn,
    .comment-delete-btn {
        font-size: 0.7rem;
    }
}
