/* ============================================
   BKingStudio - New Community Feed Styles
   Mobile-First Card-Based UI
   Based on new design concepts
   ============================================ */

/* ===== CARD EXPANSION ANIMATIONS ===== */
.feed-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.feed-card.expanded {
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.feed-card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease-in-out,
                padding 0.3s ease-in-out;
    opacity: 0;
    padding: 0;
}

.feed-card.expanded .feed-card-details {
    max-height: 2000px;
    opacity: 1;
    padding: var(--spacing-md);
}

/* Smooth scroll to expanded card */
.feed-card.expanded {
    scroll-margin-top: 80px;
}

/* ===== MOBILE-FIRST CARD LAYOUT ===== */
.feed-card {
    background: #ffffff;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    position: relative;
}

.feed-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);hori
    border-bottom: 1px solid rgba(0,31,63,0.06);
}

.feed-card-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
}

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

.feed-card-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.feed-card-author-info h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #001f3f;
}

.feed-card-author-info small {
    font-size: 0.75rem;
    color: #6c757d;
    display: block;
}

.feed-card-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ===== IMAGE SECTION - CLICKABLE ===== */
.feed-card-image-container {
    position: relative;
    width: 100%;
    height: 235px;
    overflow: hidden;
    cursor: pointer;
    background: #f8f9fa;
}

.feed-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feed-card-image-container:hover .feed-card-image {
    transform: scale(1.05);
}

.feed-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    font-size: 3rem;
}

/* Image Overlay Chips */
.image-overlay-chips {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.image-overlay-chip {
    height: 28px;
    padding: 0 12px;
    background: rgba(255,255,255,0.95);
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #001f3f;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== ACTIVE MEMBERS STRIP ===== */
.active-members-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: var(--spacing-sm) var(--spacing-md);
    background: #f8f9fa;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.active-members-strip::-webkit-scrollbar {
    display: none;
}

.member-avatar-chip {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.member-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== CARD BODY ===== */
.feed-card-body {
    padding: var(--spacing-md);
}

.feed-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #001f3f;
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.4;
}

.feed-card-content {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.5;
}

.feed-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: var(--spacing-sm) 0;
    font-size: 0.8rem;
    color: #6c757d;
}

.feed-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== ACTION BUTTONS ===== */
.feed-card-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-top: 1px solid rgba(0,31,63,0.06);
    background: #fafafa;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    min-width: 44px;
}

.action-btn:hover {
    background: rgba(0,31,63,0.05);
    color: #001f3f;
}

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

.action-btn i {
    font-size: 1.1rem;
}

/* ===== STICKY BOTTOM ACTION BAR ===== */
.feed-card-sticky-actions {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-top: 1px solid rgba(0,31,63,0.06);
    background: #ffffff;
}

.feed-card-sticky-actions .btn {
    flex: 1;
    min-height: 48px;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
}

/* ===== VIEW ALL BUTTONS ===== */
.view-all-section {
    padding: var(--spacing-sm) var(--spacing-md);
    border-top: 1px solid rgba(0,31,63,0.06);
}

.view-all-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
}

/* ===== PROGRESSIVE ENHANCEMENT - TABLET ===== */
@media (min-width: 768px) {
    .feed-card-image-container {
        height: 280px;
    }
    
    .feed-card-avatar {
        width: 48px;
        height: 48px;
    }
    
    .feed-card-avatar-placeholder {
        width: 48px;
        height: 48px;
    }
}

/* ===== PROGRESSIVE ENHANCEMENT - DESKTOP ===== */
@media (min-width: 1024px) {
    .feed-card-image-container {
        height: 320px;
    }
}

