/* ============================================
   HUBLIQ COMMUNITY FEED - Dark Theme Mobile Design
   Exact Match to Design Image
   ============================================ */

/* ===== DARK THEME BASE ===== */
html,
body.community-feed,
body[class*="community"],
.feed-container-dark,
.feed-container,
.container-fluid,
.page-scaling-wrapper {
    background: #ffffff !important;
    color: #000000 !important;
}

body.community-feed,
body[class*="community"],
.feed-container-dark,
.feed-container {
    min-height: 100vh !important;
    position: relative !important;
}

/* ===== COMMUNITY HEADER - Use Home Header Styles ===== */
/* Community page now uses home-header-dark class from home.css */

.community-header-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 1rem !important;
}

.community-logo-section {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.community-logo-square {
    width: 40px !important;
    height: 40px !important;
    background: #60a5fa !important; /* Light blue to match design */
    border: 2px solid #60a5fa !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    flex-shrink: 0 !important;
}

.community-header-title {
    color: #000000 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.community-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

.community-notification-bell {
    position: relative !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #000000 !important;
    font-size: 1.25rem !important;
    cursor: pointer !important;
}

.community-notification-dot {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 8px !important;
    height: 8px !important;
    background: #ef4444 !important;
    border-radius: 50% !important;
    border: 2px solid #0a0a0a !important;
}

.community-profile-picture {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    cursor: pointer !important;
}

/* ===== CONTENT FILTERS ===== */
.community-content-filters {
    display: flex !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 0.5rem !important;
}

.community-content-filters::-webkit-scrollbar {
    display: none !important;
}

.community-filter-button {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.625rem 1rem !important;
    border-radius: 10px !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

.community-filter-button.active {
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%) !important; /* Blue to teal gradient */
    color: #000000 !important;
}

.community-filter-button i {
    font-size: 1rem !important;
}

/* ===== FEED CONTAINER - Dark Theme ===== */
.feed-container-dark,
.feed-container {
    background: #ffffff !important;
    padding: 0 !important;
    padding-top: 0 !important; /* No top padding - remove gap */
    padding-bottom: calc(80px + 1rem) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: visible !important; /* Allow horizontal scroll for child elements */
    overflow-y: visible !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ===== FEED GRID - Horizontal Scroll (One Column Mobile Friendly) ===== */
.feed-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 1rem !important;
    padding: 0 1rem !important;
    padding-top: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.feed-grid::-webkit-scrollbar {
    height: 4px !important;
}

.feed-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
}

.feed-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
}

.feed-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* ===== FEED CARDS - Dark Theme - Fixed Size for Horizontal Scroll ===== */
.feed-card {
    width: calc(100vw - 2rem) !important; /* Full width minus padding */
    max-width: 380px !important; /* Consistent max width for all cards */
    min-width: calc(100vw - 2rem) !important; /* Minimum width on mobile */
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 0 !important;
    margin-bottom: 0 !important; /* No bottom margin in horizontal scroll */
    margin-right: 1rem !important; /* Gap between cards */
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    overflow: visible !important; /* Allow content to be visible */
    height: auto !important; /* Let content determine height */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.feed-card-header {
    padding: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.feed-card-author {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.feed-card-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(96, 165, 250, 0.3) !important;
}

.feed-card-avatar-placeholder {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

.feed-card-author-info h6 {
    color: #000000 !important;
    margin: 0 !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
}

.feed-card-author-info small {
    color: rgba(0, 0, 0, 0.7) !important; /* Dark gray text */
    font-size: 0.8125rem !important;
}

.feed-card-badge {
    padding: 0.375rem 0.75rem !important;
    border-radius: 12px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    background: rgba(96, 165, 250, 0.2) !important;
    color: #60a5fa !important;
}

@media (max-width: 480px) {
    .feed-card-badge {
        padding: 0.25rem 0.5rem !important;
        border-radius: 8px !important;
        font-size: 0.65rem !important;
    }
    
    .feed-card-badge .badge {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.6rem !important;
        margin-left: 0.25rem !important;
    }
}

/* ===== IMAGE OVERLAY CHIPS ===== */
.image-overlay-chips {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    z-index: 2 !important;
}

.image-overlay-chip {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #0a0a0a !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.status-chip-open {
    background: rgba(108, 117, 125, 0.9) !important;
    color: #000000 !important;
}

.status-chip-filled {
    background: rgba(40, 167, 69, 0.9) !important;
    color: #000000 !important;
}

.status-chip-closed {
    background: rgba(220, 53, 69, 0.9) !important;
    color: #000000 !important;
}

/* ===== HASHTAGS ===== */
.feed-card-hashtags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

.hashtag-tag {
    background: #60a5fa !important; /* Light blue-green to match design */
    color: #000000 !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 12px !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* ===== CARD BODY ===== */
.feed-card-body {
    padding: 1rem !important; /* Restore normal padding */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.feed-card-title {
    color: #000000 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.feed-card-content {
    color: #000000 !important; /* Black text */
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
}

/* Make important parts in content bold */
.feed-card-content strong,
.feed-card-content b,
.feed-card-content .font-weight-bold {
    font-weight: 700 !important;
    color: #000000 !important;
}

/* ===== CARD META - Dark Theme ===== */
.feed-card-meta {
    color: #000000 !important; /* Black text */
    font-size: 0.875rem !important;
    display: flex !important;
    flex-direction: row !important; /* Horizontal layout */
    flex-wrap: wrap !important; /* Allow wrapping */
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
    align-items: center !important;
}

.feed-card-meta span {
    color: #000000 !important; /* Black text */
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.feed-card-meta i {
    color: #000000 !important; /* Black icons */
}

/* Make important parts bold */
.feed-card-meta strong,
.feed-card-meta b,
.feed-card-meta .font-weight-bold {
    font-weight: 700 !important;
    color: #000000 !important;
}

.feed-card-meta .text-success {
    color: #10b981 !important;
}

.feed-card-meta .text-danger {
    color: #ef4444 !important;
}

.feed-card-meta .text-info {
    color: #60a5fa !important;
}

.feed-card-meta .text-warning {
    color: #fbbf24 !important;
}

.feed-card-meta .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.feed-card-meta .fw-bold {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== ACTION BUTTONS ===== */
.feed-card-action-buttons {
    display: flex !important;
    gap: 0.75rem !important;
    padding: 0 1rem 1rem 1rem !important;
}

.feed-action-btn {
    flex: 1 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.feed-action-btn.btn-primary {
    background: #60a5fa !important; /* Light blue */
    color: #000000 !important;
}

.feed-action-btn.btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #000000 !important;
}

/* ===== INTERACTIONS ===== */
.feed-card-interactions {
    padding: 0.75rem 1rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.feed-card-actions-row {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

.feed-comments-info {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.875rem !important;
}

.feed-comments-info i {
    color: rgba(255, 255, 255, 0.8) !important;
}

.feed-posted-info {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.8125rem !important;
}

/* ===== IMAGE CONTAINER - Fixed Size for All Posts (Smaller) ===== */
.feed-card-image-container,
.image-carousel-container {
    width: 100% !important;
    height: 280px !important; /* Reduced from 350px - smaller posts */
    min-height: 280px !important;
    max-height: 280px !important;
    position: relative !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Like and Comment Buttons - Bottom Left Corner */
.feed-card-image-actions {
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

/* Close/Filled Buttons - Top Left Corner (Owner Only) */
.feed-card-image-actions-top-left {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

/* Equipment Buttons - Top Left Corner */
.feed-card-image-actions-top-left-equipment {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

/* View All/Apply Buttons - Bottom Right Corner */
.feed-card-image-actions-top-right {
    position: absolute !important;
    bottom: 8px !important;
    right: 8px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

/* Like and Comment Buttons - Uniform Size Across All Post Types */
.feed-card-image-actions .btn,
.feed-card-image-actions button.btn,
.feed-card-image-actions .action-btn,
.feed-card-image-actions button.action-btn,
.feed-card-image-actions-top-left .btn,
.feed-card-image-actions-top-left button.btn,
.feed-card-image-actions-top-left-equipment .btn,
.feed-card-image-actions-top-left-equipment button.btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1.5px solid rgba(0, 0, 0, 0.2) !important;
    color: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    flex-shrink: 0 !important;
}

/* Remove box-shadow from ALL buttons over image section */
.feed-card-image-actions .btn,
.feed-card-image-actions button.btn,
.feed-card-image-actions .action-btn,
.feed-card-image-actions button.action-btn,
.feed-card-image-actions-top-left .btn,
.feed-card-image-actions-top-left button.btn,
.feed-card-image-actions-top-right-equipment .btn,
.feed-card-image-actions-top-right-equipment button.btn,
.feed-card-image-actions-top-right .btn-sm,
.feed-card-image-actions-top-right button.btn-sm,
.feed-card-image-actions-top-right a.btn-sm {
    box-shadow: none !important; /* No shadow on any buttons over image */
}

/* Standardize icon sizes and colors - All icons should be uniform - Black before hover */
.feed-card-image-actions .btn i,
.feed-card-image-actions button.btn i,
.feed-card-image-actions .action-btn i,
.feed-card-image-actions button.action-btn i,
.feed-card-image-actions-top-left .btn i,
.feed-card-image-actions-top-left button.btn i,
.feed-card-image-actions-top-left-equipment .btn i,
.feed-card-image-actions-top-left-equipment button.btn i {
    font-size: 1.1rem !important;
    color: #000000 !important; /* Black icons before hover */
    line-height: 1 !important;
}

/* Hover state - keep existing hover design */
.feed-card-image-actions .btn:hover i,
.feed-card-image-actions button.btn:hover i,
.feed-card-image-actions .action-btn:hover i,
.feed-card-image-actions button.action-btn:hover i,
.feed-card-image-actions-top-left .btn:hover i,
.feed-card-image-actions-top-left button.btn:hover i,
.feed-card-image-actions-top-right-equipment .btn:hover i,
.feed-card-image-actions-top-right-equipment button.btn:hover i {
    color: #ffffff !important; /* White on hover */
}

/* Standardize icon colors in View All buttons */
.feed-card-image-actions-top-right .btn-sm i,
.feed-card-image-actions-top-right button.btn-sm i,
.feed-card-image-actions-top-right a.btn-sm i {
    font-size: 0.75rem !important;
    color: #000000 !important;
    line-height: 1 !important;
}

/* Exclude btn-sm from the circular button styles above */
.feed-card-image-actions-top-right .btn:not(.btn-sm) {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
}

/* View All/Apply Buttons - Uniform Size for All Types */
.feed-card-image-actions-top-right .btn-sm,
.feed-card-image-actions-top-right button.btn-sm,
.feed-card-image-actions-top-right a.btn-sm {
    padding: 0.35rem 0.6rem !important;
    border-radius: 18px !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
    width: auto !important;
    min-width: 90px !important; /* Fixed min-width for uniform size */
    max-width: 120px !important; /* Max width to prevent overflow */
    height: 36px !important; /* Uniform height */
    min-height: 36px !important;
    max-height: 36px !important;
    box-shadow: none !important; /* No shadow on View All buttons */
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important; /* Space between icon and text */
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

/* Standardize icon sizes in View All buttons */
.feed-card-image-actions-top-right .btn-sm i,
.feed-card-image-actions-top-right button.btn-sm i,
.feed-card-image-actions-top-right a.btn-sm i {
    font-size: 0.75rem !important;
    color: #ffffff !important;
    line-height: 1 !important;
}

@media (max-width: 480px) {
    /* Like/Comment Buttons - Uniform Size on Mobile */
    .feed-card-image-actions .btn,
    .feed-card-image-actions button.btn,
    .feed-card-image-actions .action-btn,
    .feed-card-image-actions button.action-btn,
    .feed-card-image-actions-top-left .btn,
    .feed-card-image-actions-top-left button.btn,
    .feed-card-image-actions-top-left-equipment .btn,
    .feed-card-image-actions-top-left-equipment button.btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        font-size: 1rem !important;
    }
    
    /* Standardize icon sizes on mobile - Black before hover */
    .feed-card-image-actions .btn i,
    .feed-card-image-actions button.btn i,
    .feed-card-image-actions .action-btn i,
    .feed-card-image-actions button.action-btn i,
    .feed-card-image-actions-top-left .btn i,
    .feed-card-image-actions-top-left button.btn i,
    .feed-card-image-actions-top-left-equipment .btn i,
    .feed-card-image-actions-top-left-equipment button.btn i {
        font-size: 1rem !important;
        color: #000000 !important; /* Black icons before hover */
    }
    
    /* Hover state on mobile - keep existing hover design */
    .feed-card-image-actions .btn:hover i,
    .feed-card-image-actions button.btn:hover i,
    .feed-card-image-actions .action-btn:hover i,
    .feed-card-image-actions button.action-btn:hover i,
    .feed-card-image-actions-top-left .btn:hover i,
    .feed-card-image-actions-top-left button.btn:hover i,
    .feed-card-image-actions-top-right-equipment .btn:hover i,
    .feed-card-image-actions-top-right-equipment button.btn:hover i {
        color: #ffffff !important; /* White on hover */
    }
    
    /* Remove box-shadow from ALL buttons on mobile */
    .feed-card-image-actions .btn,
    .feed-card-image-actions button.btn,
    .feed-card-image-actions .action-btn,
    .feed-card-image-actions button.action-btn,
    .feed-card-image-actions-top-left .btn,
    .feed-card-image-actions-top-left button.btn,
    .feed-card-image-actions-top-right-equipment .btn,
    .feed-card-image-actions-top-right-equipment button.btn,
    .feed-card-image-actions-top-right .btn-sm,
    .feed-card-image-actions-top-right button.btn-sm,
    .feed-card-image-actions-top-right a.btn-sm {
        box-shadow: none !important;
    }
    
    /* View All Buttons - Uniform Size on Mobile */
    .feed-card-image-actions-top-right .btn-sm,
    .feed-card-image-actions-top-right button.btn-sm,
    .feed-card-image-actions-top-right a.btn-sm {
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        min-width: 80px !important; /* Fixed min-width on mobile */
        max-width: 110px !important; /* Max width on mobile */
        padding: 0.3rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
}

.feed-card-image-actions .btn:hover,
.feed-card-image-actions .btn:active {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.05) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.feed-card-image-actions .btn.liked,
.feed-card-image-actions .action-btn.liked {
    background: rgba(239, 68, 68, 0.9) !important;
    color: #000000 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.feed-card-image-actions .btn.liked:hover,
.feed-card-image-actions .btn.liked:active,
.feed-card-image-actions .action-btn.liked:hover,
.feed-card-image-actions .action-btn.liked:active {
    background: rgba(220, 38, 38, 0.95) !important;
}

.feed-card-image-actions .btn.commented,
.feed-card-image-actions .action-btn.commented {
    background: rgba(96, 165, 250, 0.9) !important;
    color: #000000 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.feed-card-image-actions .btn.commented:hover,
.feed-card-image-actions .btn.commented:active,
.feed-card-image-actions .action-btn.commented:hover,
.feed-card-image-actions .action-btn.commented:active {
    background: rgba(59, 130, 246, 0.95) !important;
}

.feed-card-image-actions .btn i {
    pointer-events: none !important;
}

/* Button hover states */
.feed-card-image-actions .btn:hover,
.feed-card-image-actions .btn:active,
.feed-card-image-actions .action-btn:hover,
.feed-card-image-actions .action-btn:active,
.feed-card-image-actions-top-left .btn:hover,
.feed-card-image-actions-top-left .btn:active,
.feed-card-image-actions-top-right .btn:hover,
.feed-card-image-actions-top-right .btn:active {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.05) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.feed-card-image-actions-top-right .btn-sm:hover,
.feed-card-image-actions-top-right .btn-sm:active {
    background: rgba(0, 0, 0, 0.95) !important;
    transform: scale(1.05) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.feed-card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.feed-card-image-placeholder {
    width: 100% !important;
    height: 100% !important;
    min-height: 280px !important;
    max-height: 280px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    font-size: 2.5rem !important;
    position: relative !important;
}

.feed-card-image-placeholder i {
    font-size: 3rem !important;
    opacity: 0.5 !important;
}

/* ===== BUTTON STYLES - Dark Theme ===== */
.btn-primary {
    background-color: #60a5fa !important;
    color: #000000 !important;
    border: 1px solid #60a5fa !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #3b82f6 !important;
    color: #000000 !important;
    border-color: #3b82f6 !important;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #000000 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.btn-success {
    background-color: #10b981 !important;
    color: #000000 !important;
    border: 1px solid #10b981 !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #059669 !important;
    color: #000000 !important;
    border-color: #059669 !important;
}

/* ===== BOTTOM NAVIGATION - Blue Icons (Always Visible) ===== */
body.community-feed .mobile-bottom-nav,
body[class*="community"] .mobile-bottom-nav,
.mobile-bottom-nav {
    background: #fffef0 !important; /* Magnolia/off-white background - consistent with base */
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.community-feed .mobile-bottom-nav .mobile-nav-item,
body[class*="community"] .mobile-bottom-nav .mobile-nav-item,
.mobile-bottom-nav .mobile-nav-item {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.community-feed .mobile-bottom-nav .mobile-nav-item.active,
body[class*="community"] .mobile-bottom-nav .mobile-nav-item.active,
.mobile-bottom-nav .mobile-nav-item.active {
    color: #60a5fa !important;
}

/* Blue icons always visible - even when not active */
body.community-feed .mobile-bottom-nav .mobile-nav-icon-wrapper i,
body[class*="community"] .mobile-bottom-nav .mobile-nav-icon-wrapper i,
.mobile-bottom-nav .mobile-nav-icon-wrapper i {
    color: #60a5fa !important; /* Blue icons always visible */
}

/* Active state - white icon on blue background */
body.community-feed .mobile-bottom-nav .mobile-nav-item.active .mobile-nav-icon-wrapper i,
body[class*="community"] .mobile-bottom-nav .mobile-nav-item.active .mobile-nav-icon-wrapper i,
.mobile-bottom-nav .mobile-nav-item.active .mobile-nav-icon-wrapper i {
    color: #000000 !important;
}

body.community-feed .mobile-bottom-nav .mobile-nav-icon-wrapper.active,
body[class*="community"] .mobile-bottom-nav .mobile-nav-icon-wrapper.active,
.mobile-bottom-nav .mobile-nav-icon-wrapper.active {
    background: #60a5fa !important;
}

/* ===== FLOATING ACTION BUTTON (FAB) ===== */
.community-fab {
    position: fixed !important;
    bottom: 90px !important; /* Above bottom nav */
    right: 1rem !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%) !important; /* Light blue to teal gradient */
    border: none !important;
    color: #000000 !important;
    font-size: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4) !important;
    z-index: 999 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.community-fab:active {
    transform: scale(0.95) !important;
}

.community-fab:hover {
    box-shadow: 0 6px 16px rgba(96, 165, 250, 0.5) !important;
}

/* ===== RESPONSIVE - Mobile First, Horizontal Scroll ===== */
@media (max-width: 768px) {
    .feed-grid {
        padding: 0 1rem !important;
        padding-top: 1rem !important;
        gap: 1rem !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    .feed-card {
        width: calc(100vw - 2rem) !important;
        min-width: calc(100vw - 2rem) !important;
        max-width: 380px !important; /* Consistent max width */
    }
    
    .feed-card-image-container,
    .image-carousel-container {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
    }
    
    .feed-card-image-placeholder {
        min-height: 280px !important;
        max-height: 280px !important;
    }
    
    .feed-container-dark,
    .feed-container {
        padding: 0 !important;
        padding-bottom: calc(80px + 1rem) !important;
        overflow-x: visible !important;
    }
}

@media (max-width: 480px) {
    .feed-grid {
        padding: 0 0.75rem !important;
        padding-top: 0.75rem !important;
        gap: 0.75rem !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    .feed-card {
        width: calc(100vw - 1.5rem) !important;
        min-width: calc(100vw - 1.5rem) !important;
        max-width: 380px !important; /* Consistent max width */
        border-radius: 12px !important;
    }
    
    .feed-card-image-container,
    .image-carousel-container {
        height: 240px !important;
        min-height: 240px !important;
        max-height: 240px !important;
    }
    
    .feed-card-image-placeholder {
        min-height: 240px !important;
        max-height: 240px !important;
    }
    
    .feed-card-image-actions .btn,
    .feed-card-image-actions-top-left .btn,
    .feed-card-image-actions-top-right .btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        font-size: 1rem !important;
    }
    
    .feed-card-image-actions-top-right .btn-sm {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .feed-card-image-actions {
        bottom: 8px !important;
        left: 8px !important;
        gap: 6px !important;
    }
    
    .feed-card-image-actions .btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }
    
    .feed-card-image-actions-right {
        bottom: 8px !important;
        right: 8px !important;
        gap: 6px !important;
    }
    
    .feed-card-image-actions-right .btn,
    .feed-card-image-actions-right .btn-sm {
        padding: 0.375rem 0.625rem !important;
        font-size: 0.75rem !important;
    }
    
    .feed-container-dark,
    .feed-container {
        padding: 0 !important;
        padding-bottom: calc(80px + 0.75rem) !important;
        overflow-x: visible !important;
    }
}

@media (min-width: 769px) {
    .feed-card {
        max-width: 450px !important;
    }
}
