/* Blogs Social Media UI Styles */

.blogs-social-container {
    background-color: #f0f2f5;
    min-height: 100vh;
}

/* Sidebar Components */
.sticky-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 5px;
    overscroll-behavior: contain;
}

.sticky-sidebar::-webkit-scrollbar {
    width: 4px;
}

.sticky-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.social-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #dddfe2;
    overflow: hidden;
    margin-bottom: 16px;
}

.social-card-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f5;
}

.social-card-body {
    padding: 16px;
}

/* Post Styling */
.blog-post {
    border-radius: 12px !important;
    border: 1px solid #dddfe2 !important;
    transition: box-shadow 0.2s ease;
}

.blog-post:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.post-advocate-img {
    border: 2px solid #f0f2f5;
    padding: 2px;
}

.post-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
    background: transparent;
    border: none;
    color: #65676b;
    font-weight: 600;
    font-size: 0.9rem;
}

.post-action-btn:hover {
    background: #f2f2f2;
}

.post-action-btn.liked {
    color: var(--danger-color);
}

/* Ads Sidebars */
.ad-carousel {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
}

.ad-carousel::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome/Safari */
}

.ad-item {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #fff;
    border: 1px solid #eef0f2;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ad-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.ad-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ad-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.ad-content {
    padding: 12px;
}

.ad-advocate-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f8f9fa;
}

.ad-advocate-meta img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.ad-advocate-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563;
}

.ad-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #111827;
    margin-bottom: 4px;
}

.ad-desc {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}

.ad-cta {
    display: block;
    margin-top: 10px;
    padding: 6px;
    background: #f8fafc;
    color: var(--primary-color);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.2s;
}

.ad-item:hover .ad-cta {
    background: var(--primary-color);
    color: white;
}

/* Floating Action Button (FAB) */
.fab-post {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1000;
    border: none;
}

.fab-post:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .sticky-sidebar {
        position: static;
        margin-top: 20px;
    }
}