/* Community Page Styles */

/* Post Cards */
.post-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.post-card:hover .card-body {
    background-color: #f8f9fa;
}

/* Pinned Posts */
.pinned-post {
    border-left: 4px solid #007bff;
    background-color: #f8f9fa;
}

.pinned-badge {
    background-color: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-right: 5px;
}

/* Recipe Display */
.community-feed-card .card-body {
    padding: 1.25rem;
}

.community-post-eyebrow {
    color: #dc3545;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.community-post-title {
    color: #1f2933;
    font-size: 1.25rem;
    font-weight: 750;
    line-height: 1.25;
    margin-bottom: 0.85rem;
}

.community-post-sold-out .community-post-title {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(220, 53, 69, 0.78);
}

.community-post-sold-out .community-post-media {
    filter: grayscale(0.8);
    opacity: 0.62;
}

.community-sold-out-badge,
.community-limited-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 750;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
}

.community-sold-out-badge {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

.community-limited-badge {
    background: rgba(255, 193, 7, 0.16);
    color: #856404;
}

.community-author-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 700;
    gap: 0.2rem;
    margin-left: 0.35rem;
    padding: 0.12rem 0.45rem;
    vertical-align: middle;
}

.community-author-badge.verified {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.community-author-badge.staff {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

.community-challenge-card {
    align-items: center;
    background: linear-gradient(135deg, #fff4f4 0%, #ffffff 100%);
    border: 1px solid rgba(220, 53, 69, 0.14);
    border-radius: 16px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.community-challenge-kicker {
    color: #dc3545;
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.community-post-media-wrap {
    background: #111827;
    border-radius: 20px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    display: flex;
    justify-content: center;
    margin-top: 0.85rem;
    overflow: hidden;
}

.community-post-media {
    display: block;
    height: auto;
    max-height: 460px;
    width: 100%;
    object-fit: contain;
}

.recipe-post-card .community-post-media-wrap {
    border-radius: 20px;
}

.product-post-card {
    border-left: 4px solid #dc3545;
}

.product-post-card .community-post-media-wrap {
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(220, 53, 69, 0.16);
}

.recipe-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.community-recipe-card {
    background: linear-gradient(135deg, #fff8f1 0%, #ffffff 100%);
    border: 1px solid rgba(220, 53, 69, 0.12);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    padding: 1rem;
}

.community-recipe-description {
    color: #5f6368;
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}

.community-recipe-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.community-recipe-meta-pill {
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
}

.community-recipe-meta-pill strong {
    color: #2f3437;
    display: block;
    font-size: 0.72rem;
    line-height: 1;
    text-transform: uppercase;
}

.community-recipe-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.85rem;
}

.community-recipe-panel {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 0.9rem;
}

.community-recipe-panel h6 {
    border: 0;
    color: #dc3545;
    font-weight: 750;
    margin-bottom: 0.65rem;
    padding: 0;
}

.community-recipe-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.community-recipe-list li {
    align-items: flex-start;
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

.community-recipe-steps {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.community-recipe-steps li {
    margin-bottom: 0.5rem;
}

.community-recipe-more {
    color: #6c757d;
    font-size: 0.86rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

.community-recipe-print-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
}

.recipe-header {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.recipe-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.recipe-info .badge {
    font-size: 0.8rem;
}

/* Poll Display */
.poll-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.poll-option {
    margin-bottom: 10px;
}

.poll-option button {
    transition: background-color 0.2s ease;
}

.poll-option button:hover {
    background-color: #e9ecef;
}

/* Survey Display */
.survey-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

/* Post Type Selection */
.post-type-selection {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.post-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.post-type-option {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-type-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.post-type-option.active {
    border-color: #007bff;
    background-color: #007bff;
    color: white;
}

.post-type-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.post-type-info h6 {
    margin: 0;
    font-weight: 600;
}

.post-type-info small {
    color: #6c757d;
}

.post-type-option.active .post-type-info small {
    color: rgba(255, 255, 255, 0.8);
}

/* Recipe Form Fields */
.recipe-fields {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    display: none;
}

.recipe-fields.show {
    display: block;
}

/* Pagination */
.pagination-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Comments Section */
.community-post-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.community-post-actions .post-action-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    line-height: 1;
    white-space: nowrap;
}

.community-post-actions .post-action-count {
    min-width: 1.5rem;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    font-weight: 600;
    line-height: 1.1;
}

.community-tools {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.community-intro-card {
    align-items: center;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.12), rgba(25, 135, 84, 0.1));
    border: 1px solid rgba(220, 53, 69, 0.22);
    border-radius: 18px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.community-intro-kicker {
    color: #dc3545;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.community-intro-card h5 {
    color: #f8f9fa;
}

.community-intro-card .btn {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .community-intro-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

.community-feature-strip {
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: space-between;
    margin: 1rem 0;
    padding-top: 0.85rem;
}

.community-reaction-group,
.community-feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.community-chip {
    align-items: center;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    color: #495057;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 650;
    gap: 0.3rem;
    min-height: 36px;
    padding: 0.35rem 0.7rem;
}

.community-chip:hover,
.community-chip.active {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.community-recipe-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.45rem 0;
}

.community-recipe-badges span {
    align-items: center;
    background: rgba(25, 135, 84, 0.12);
    border: 1px solid rgba(25, 135, 84, 0.2);
    border-radius: 999px;
    color: #198754;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.22rem 0.52rem;
}

.recipe-tag-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.recipe-tag-options label {
    align-items: center;
    background: #2b2f33;
    border: 1px solid #495057;
    border-radius: 999px;
    color: #f8f9fa;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 700;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
}

.recipe-tag-options input {
    accent-color: #dc3545;
}

.community-recipe-shop-hint {
    color: #adb5bd;
    font-size: 0.86rem;
    font-weight: 650;
    margin-bottom: 0.5rem;
}

.community-chip.sold-out {
    background: #f1f3f5;
    border-color: #ced4da;
    color: #6c757d;
}

.community-chip.sold-out:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.product-post-cart-chip,
.product-post-checkout-chip {
    border-color: rgba(220, 53, 69, 0.45);
}

.product-post-checkout-chip {
    background: #dc3545;
    color: #fff;
}

.community-shop-list {
    border-radius: 14px;
    overflow: hidden;
}

.community-shop-item {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.community-shop-item.sold-out strong {
    color: #6c757d;
    text-decoration: line-through;
}

.community-shop-price {
    color: #198754;
    font-weight: 750;
}

.community-shop-actions {
    flex: 0 0 auto;
}

.community-archive-item {
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 0.85rem;
    padding: 0.8rem 0;
}

.community-archive-item:last-child {
    border-bottom: 0;
}

.community-archive-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.community-archive-actions .btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 38px;
    min-width: 88px;
}

.community-archive-item img,
.community-archive-placeholder {
    background: #f8f9fa;
    border-radius: 12px;
    flex: 0 0 72px;
    height: 72px;
    object-fit: cover;
    width: 72px;
}

.community-archive-placeholder {
    align-items: center;
    color: #dc3545;
    display: flex;
    font-size: 1.4rem;
    justify-content: center;
}

.community-empty-state {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.2rem 0.5rem;
    text-align: center;
}

.community-empty-state i {
    color: #dc3545;
    font-size: 2rem;
}

.community-empty-state p {
    color: #6c757d;
    margin: 0;
}

.meal-hub-section + .meal-hub-section {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 1rem;
    padding-top: 1rem;
}

.meal-hub-section-title {
    align-items: center;
    display: flex;
    font-size: 0.9rem;
    font-weight: 800;
    gap: 0.5rem;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.meal-hub-title-btn {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.42);
    border-radius: 999px;
    color: #dc3545;
    font-weight: 700;
    min-height: 32px;
    padding: 0.25rem 0.65rem;
    text-decoration: none;
}

.meal-hub-title-btn:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.meal-hub-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    margin-bottom: 0.65rem;
    padding: 0.7rem;
}

.meal-hub-row {
    align-items: flex-start;
    display: flex;
    gap: 0.65rem;
}

.meal-hub-icon {
    align-items: center;
    background: rgba(220, 53, 69, 0.16);
    border-radius: 12px;
    color: #dc3545;
    display: flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.meal-hub-copy {
    min-width: 0;
}

.meal-hub-copy strong,
.meal-hub-mini-recipe span {
    display: block;
    font-size: 0.9rem;
    line-height: 1.25;
}

.meal-hub-copy small,
.meal-hub-note {
    color: #adb5bd;
    display: block;
    font-size: 0.78rem;
}

.meal-hub-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.meal-hub-actions .btn {
    align-items: center;
    display: inline-flex;
    flex: 1 1 0;
    justify-content: center;
    min-height: 34px;
    padding: 0.32rem 0.55rem;
}

.meal-hub-mini-recipe {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    justify-content: space-between;
    padding: 0.35rem 0;
}

.meal-hub-mini-recipe .btn {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0.25rem 0.65rem;
}

.meal-hub-mini-recipe + .meal-hub-mini-recipe {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.meal-hub-empty {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    display: block;
    padding: 0.75rem;
}

.meal-hub-empty span {
    color: #adb5bd;
    display: block;
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

.meal-planner-week {
    display: grid;
    gap: 0.85rem;
}

.meal-planner-day {
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 0.85rem;
}

.meal-planner-day h6 {
    color: #dc3545;
    font-weight: 800;
    margin-bottom: 0.65rem;
}

.meal-planner-day.is-empty p {
    color: #6c757d;
    margin: 0;
}

.meal-planner-item {
    align-items: center;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.meal-planner-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.meal-planner-item img,
.meal-planner-item .community-archive-placeholder {
    flex: 0 0 58px;
    height: 58px;
    width: 58px;
}

.meal-planner-item strong,
.meal-planner-item small,
.meal-planner-availability {
    display: block;
}

.meal-planner-item small,
.meal-planner-availability {
    color: #6c757d;
    font-size: 0.82rem;
}

.meal-planner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.meal-planner-actions .btn {
    min-height: 34px;
    padding: 0.3rem 0.65rem;
}

.comments-section {
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
    margin-top: 15px;
}

.comment-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.comment-thread {
    margin-left: calc(var(--reply-depth, 0) * 1rem);
}

.comment-reply-item {
    border-left: 2px solid rgba(220, 53, 69, 0.16);
    padding-left: 0.85rem;
}

.comment-avatar {
    height: 32px;
    object-fit: cover;
    width: 32px;
}

.comment-actions {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.comment-replies {
    margin-top: 0.35rem;
}

.comment-reply-form textarea {
    resize: vertical;
}

.comment-author {
    font-weight: 600;
    color: #007bff;
}

.comment-date {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recipe-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
    }

    .community-recipe-grid {
        grid-template-columns: 1fr;
    }

    .community-post-media {
        max-height: 300px;
    }
}

/* Modal Enhancements */
.modal-lg {
    max-width: 800px;
}

#createPostModal .create-post-modal-dialog {
    max-width: 640px;
    width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
}

#communitySimpleModal .modal-dialog,
#giftPointsModal .modal-dialog,
#productPickerModal .modal-dialog {
    max-width: 560px !important;
    width: calc(100% - 2rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#communitySimpleModal .modal-dialog,
#giftPointsModal .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

#communitySimpleModal .modal-content,
#giftPointsModal .modal-content,
#productPickerModal .modal-content {
    width: 100%;
}

/* Survey response modal: not full width, centered */
.survey-response-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}
.survey-response-modal .modal-content {
    max-width: 540px;
    width: 100%;
    margin: 1.75rem auto;
    position: relative;
    flex-shrink: 0;
}

.recipe-meta {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.recipe-meta h6 {
    color: #495057;
    margin-bottom: 5px;
}

.recipe-meta p {
    margin-bottom: 15px;
    font-weight: 500;
}

/* Progress bars for polls */
.progress {
    height: 8px;
}

.progress-bar {
    background-color: #007bff;
}

/* Dark Theme Styles for Community Posts */
.dark-theme .post-card {
    background: #23272b !important;
    color: #f1f1f1 !important;
    border-color: #444 !important;
}

.dark-theme .post-card:hover {
    background: #2c3136 !important;
    border-color: #DC143C !important;
    box-shadow: 0 4px 8px rgba(220, 20, 60, 0.3) !important;
}

.dark-theme .post-card:hover .card-body {
    background-color: #2c3136 !important;
}

.dark-theme .post-card .card-body {
    background: #23272b !important;
    color: #f1f1f1 !important;
}

.dark-theme .community-post-sold-out .community-post-title {
    text-decoration-color: rgba(255, 107, 107, 0.85);
}

.dark-theme .community-post-title {
    color: #f8f9fa !important;
}

.dark-theme .community-post-eyebrow {
    color: #ff6b7a !important;
}

.dark-theme .post-card .text-muted {
    color: #b0b0b0 !important;
}

.dark-theme .pinned-post {
    border-left-color: #ffc107 !important;
    background: linear-gradient(135deg, #2c3136 0%, #23272b 100%) !important;
}

.dark-theme .pinned-badge {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.dark-theme .recipe-container {
    background-color: #2c3136 !important;
    border-left-color: #dc3545 !important;
}

.dark-theme .community-recipe-card,
.dark-theme .community-recipe-panel,
.dark-theme .community-recipe-meta-pill {
    background: #2c3136 !important;
    border-color: #444 !important;
}

.dark-theme .community-recipe-description,
.dark-theme .community-recipe-more {
    color: #b0b0b0 !important;
}

.dark-theme .community-recipe-meta-pill strong {
    color: #f8f9fa !important;
}

.dark-theme .community-feature-strip {
    border-top-color: #444 !important;
}

.dark-theme .community-chip,
.dark-theme .community-archive-item img,
.dark-theme .community-archive-placeholder {
    background: #23272b !important;
    border-color: #444 !important;
    color: #f1f1f1 !important;
}

.dark-theme .community-chip:hover,
.dark-theme .community-chip.active {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

.dark-theme .community-chip.sold-out {
    background: #343a40 !important;
    border-color: #495057 !important;
    color: #adb5bd !important;
}

.dark-theme .community-shop-item {
    background: #23272b !important;
    border-color: #444 !important;
    color: #f1f1f1 !important;
}

.dark-theme .community-shop-item.sold-out strong {
    color: #adb5bd !important;
}

.dark-theme .community-challenge-card {
    background: linear-gradient(135deg, #2c3136 0%, #23272b 100%) !important;
    border-color: rgba(220, 53, 69, 0.45) !important;
    color: #f1f1f1 !important;
}

.dark-theme .community-challenge-card h5 {
    color: #f8f9fa !important;
}

.dark-theme .community-challenge-card .text-muted {
    color: #b0b0b0 !important;
}

.dark-theme .community-challenge-kicker {
    color: #ff6b7a !important;
}

.dark-theme .community-intro-card {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.16), rgba(25, 135, 84, 0.12)) !important;
    border-color: rgba(220, 53, 69, 0.45) !important;
    color: #f1f1f1 !important;
}

.dark-theme .community-intro-card .text-muted {
    color: #b0b0b0 !important;
}

.dark-theme .community-recipe-badges span {
    background: rgba(25, 135, 84, 0.18) !important;
    border-color: rgba(25, 135, 84, 0.35) !important;
    color: #75d39a !important;
}

.dark-theme .meal-planner-day,
.dark-theme .meal-planner-item {
    border-color: #444 !important;
}

.dark-theme .meal-planner-day,
.dark-theme .community-empty-state {
    background: #23272b !important;
    color: #f1f1f1 !important;
}

.dark-theme .meal-planner-day.is-empty p,
.dark-theme .meal-planner-item small,
.dark-theme .meal-planner-availability,
.dark-theme .community-empty-state p {
    color: #adb5bd !important;
}

.dark-theme .recipe-header {
    background: #23272b !important;
    border-bottom-color: #444 !important;
}

.dark-theme .recipe-container h6 {
    color: #dc3545 !important;
    border-bottom-color: #dc3545 !important;
}

.dark-theme .poll-container {
    background-color: #2c3136 !important;
}

.dark-theme .poll-option button {
    background-color: #23272b !important;
    color: #f1f1f1 !important;
    border-color: #444 !important;
}

.dark-theme .poll-option button:hover {
    background-color: #2c3136 !important;
    border-color: #DC143C !important;
}

.dark-theme .survey-container {
    background-color: #2c3136 !important;
}

.dark-theme .comment-item {
    background-color: #2c3136 !important;
    border-color: #444 !important;
}

.dark-theme .comment-reply-item {
    border-left-color: rgba(220, 53, 69, 0.45) !important;
}

.dark-theme .comment-author {
    color: #DC143C !important;
}

.dark-theme .comment-date {
    color: #b0b0b0 !important;
}

.dark-theme .pagination-info {
    background-color: #2c3136 !important;
    color: #f1f1f1 !important;
}

.dark-theme .search-filter-container {
    background: #23272b !important;
    color: #f1f1f1 !important;
    border-color: #444 !important;
}

.dark-theme .search-box .form-control {
    background-color: #2c3136 !important;
    color: #f1f1f1 !important;
    border-color: #444 !important;
}

.dark-theme .filter-btn {
    background: #2c3136 !important;
    color: #f1f1f1 !important;
    border-color: #dc3545 !important;
}

.dark-theme .filter-btn:hover,
.dark-theme .filter-btn.active {
    background: #dc3545 !important;
    color: white !important;
}

/* Fix card styling - ensure both cards have consistent margins */
#reviewsCard,
#specialsCard {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#specialsCard {
    margin-top: 0 !important;
}

/* Ensure consistent card header styling */
#communityReviewsHeader,
#communitySpecialsHeader {
    margin: 0 !important;
    padding: 0.75rem 1rem !important;
}