/* ===================================
   ADVANCED MODERN SOCIAL FEED
   Shared styles for feed, posts, reactions, and comments
   =================================== */

:root {
    /* Reaction Color System */
    --reaction-like-from: #6B8E23;
    --reaction-like-to: #5A7A1E;
    --reaction-love-from: #f33e58;
    --reaction-love-to: #d1102d;
    --reaction-celebrate-from: #5ead3a;
    --reaction-celebrate-to: #458a2c;
    --reaction-insightful-from: #f5c842;
    --reaction-insightful-to: #d9a91f;
    --reaction-support-from: #8b6a47;
    --reaction-support-to: #6d5438;

    /* Advanced Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: 10px;

    /* Timing Functions */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-back: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Feed Container with CSS Grid */
.modern-feed-container {
    background: var(--bg-secondary);
    min-height: calc(100vh - 200px);
    padding: clamp(1rem, 2vw, 1.5rem) 0;
    display: grid;
    place-items: start center;
}

/* Feed Layout */
.feed-layout {
    align-items: flex-start;
}

/* ===================================
   ADVANCED POST CARD
   =================================== */
.modern-post-card {
    background: var(--bg-card);
    border-radius: clamp(8px, 1.5vw, 12px);
    margin-block-end: clamp(0.75rem, 2vw, 1.25rem);
    box-shadow: var(--shadow-sm);
    overflow: visible;
    transition: all 0.4s var(--ease-out-expo);
    border: 1px solid var(--border-color);
    position: relative;
    container-type: inline-size;
    container-name: post-card;
}

.modern-post-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px) scale(1.005);
}

.modern-post-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(var(--brand-primary-rgb, 107, 142, 35), 0.03) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
    pointer-events: none;
    z-index: -1;
}

.modern-post-card:hover::before {
    opacity: 1;
}

/* Post Header */
.post-header {
    padding: clamp(14px, 2vw, 16px) clamp(16px, 3vw, 20px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.post-author-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(10px, 1.5vw, 12px);
    align-items: center;
}

/* Avatar with Ring Animation */
.author-avatar {
    position: relative;
    isolation: isolate;
}

.author-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: conic-gradient(
        from 180deg at 50% 50%,
        var(--brand-primary) 0deg,
        transparent 120deg,
        var(--brand-primary) 360deg
    );
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 3s linear infinite;
    animation-play-state: paused;
}

.author-avatar:hover::before {
    opacity: 1;
    animation-play-state: running;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.author-avatar img {
    width: clamp(42px, 6vw, 48px);
    height: clamp(42px, 6vw, 48px);
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-card);
    transition: transform 0.4s var(--ease-spring);
    position: relative;
    z-index: 1;
}

.author-avatar:hover img {
    transform: scale(1.1) rotate(3deg);
}

/* Author Info */
.author-info h3 {
    margin: 0;
    font-size: clamp(14px, 1.8vw, 15px);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.author-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    display: inline-block;
}

.author-info h3 a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: width 0.3s var(--ease-out-expo);
}

.author-info h3 a:hover::after {
    width: 100%;
}

.author-info h3 a:hover {
    color: var(--brand-primary);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.8vw, 6px);
    font-size: clamp(12px, 1.5vw, 13px);
    color: var(--text-secondary);
    margin-top: 2px;
}

.post-meta a {
    color: var(--text-secondary);
}

.post-meta a:hover {
    text-decoration: underline !important;
    color: var(--text-primary);
}

/* Event Details in Feed Cards */
.post-event-details {
    margin: 0 clamp(12px, 2vw, 20px);
    padding: clamp(10px, 1.5vw, 14px);
    border-left: 3px solid var(--olive-primary, #6B8E23);
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 0 8px 8px 0;
    margin-bottom: 8px;
}

.post-event-details .event-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
}

.post-event-details .event-type-badge.badge-online {
    background: #0dcaf0;
}

.post-event-details .event-type-badge.badge-offline {
    background: #198754;
}

.post-event-details .event-type-badge.badge-hybrid {
    background: #6f42c1;
}

.post-event-details .event-info-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: clamp(12px, 1.4vw, 13px);
    color: var(--text-primary, #333);
    margin-top: 8px;
    line-height: 1.4;
}

.post-event-details .event-info-row i {
    color: var(--text-secondary, #65676b);
    width: 16px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.post-event-details .event-info-row a {
    color: var(--olive-primary, #6B8E23);
    text-decoration: none;
}

.post-event-details .event-info-row a:hover {
    text-decoration: underline;
}

.post-meta .event-indicator {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--olive-primary, #6B8E23);
    color: #fff;
    vertical-align: middle;
}

/* Menu Button with Ripple Effect */
.post-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.3s var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.post-menu-btn::before {
    content: '';
    position: absolute;
    inset: 50%;
    border-radius: 50%;
    background: var(--bg-hover);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s var(--ease-out-expo);
}

.post-menu-btn:hover::before {
    inset: 0;
    transform: translate(0, 0) scale(1);
}

.post-menu-btn:hover {
    color: var(--text-primary);
}

.post-menu-btn i {
    position: relative;
    z-index: 1;
}

/* Post Options Wrapper */
.post-options-wrapper {
    position: relative;
}

/* Post Dropdown Menu */
.post-dropdown-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: var(--bg-card, #ffffff);
    color: var(--text-primary, #212529);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s var(--ease-spring);
    z-index: 10000;
    overflow: hidden;
    border: 1px solid var(--border-light, #e5e7eb);
}

[data-theme="dark"] .post-dropdown-menu {
    background: var(--bg-card, #1f2937);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Dark Mode Comment Reaction Picker */
[data-theme="dark"] .comment-reaction-picker {
    background: var(--bg-card, #1a1f1a);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color, #2a352a);
}

[data-theme="dark"] .comment-reaction-picker::after {
    border-top-color: var(--bg-card, #1a1f1a);
}

[data-theme="dark"] .comment-reaction-btn.selected {
    background: rgba(154, 193, 54, 0.15);
}

.post-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.post-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
    font-size: 14px;
}

.post-dropdown-menu .dropdown-item:hover {
    background: var(--bg-hover);
}

.post-dropdown-menu .dropdown-item.delete-item {
    color: var(--brand-danger, #e74c3c);
}

.post-dropdown-menu .dropdown-item.delete-item:hover {
    background: var(--danger-bg-subtle, rgba(231, 76, 60, 0.1));
}

.post-dropdown-menu .dropdown-item i {
    width: 20px;
    font-size: 16px;
    text-align: center;
}

.post-dropdown-menu .dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0;
}

/* Post Content */
.post-content {
    padding-inline: clamp(16px, 3vw, 20px);
    padding-block-end: clamp(14px, 2vw, 16px);
}

.post-text {
    font-size: clamp(14px, 1.8vw, 15px);
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Post Images */
.post-images {
    margin-top: 16px;
    position: relative;
    overflow: hidden;
}

.post-images img {
    width: 100%;
    display: block;
    cursor: pointer;
    transition: all 0.5s var(--ease-out-expo);
    filter: brightness(1);
}

.post-images img:hover {
    filter: brightness(0.95) contrast(1.05);
}

.post-images.single-image {
    aspect-ratio: 16 / 10;
    max-height: 650px;
}

.post-images.single-image img {
    height: 100%;
    object-fit: contain;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
}

.post-images.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    aspect-ratio: 16 / 9;
}

.post-images.grid-2 img {
    height: 100%;
    object-fit: cover;
}

.post-images.grid-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3px;
    aspect-ratio: 16 / 10;
}

.post-images.grid-3 img:first-child {
    grid-row: 1 / -1;
    height: 100%;
    object-fit: cover;
}

.post-images.grid-3 img:not(:first-child) {
    height: 100%;
    object-fit: cover;
}

.post-images.grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    aspect-ratio: 16 / 9;
}

.post-images.grid-4 .img-wrapper {
    position: relative;
    overflow: hidden;
}

.post-images.grid-4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-images-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.65) 100%
    );
    backdrop-filter: blur(8px) saturate(180%);
    display: grid;
    place-items: center;
    color: white;
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
}

.more-images-overlay:hover {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.75) 100%
    );
    backdrop-filter: blur(12px) saturate(200%);
}

/* ===================================
   ENGAGEMENT BAR
   =================================== */
.engagement-bar {
    padding: clamp(10px, 1.5vw, 12px) clamp(16px, 3vw, 20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.reactions-summary {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 8px);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 16px;
    transition: background 0.3s var(--ease-out-expo);
}

.reactions-summary:hover {
    background: var(--bg-hover);
    transform: scale(1.05);
}

.reactions-summary:active {
    transform: scale(0.98);
}

.reactions-summary:hover .reaction-icons-stack {
    transform: translateX(-2px);
}

.reaction-icons-stack {
    display: flex;
    align-items: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
}

/* Reaction Pills */
.reaction-icon-pill {
    width: clamp(22px, 3vw, 24px);
    height: clamp(22px, 3vw, 24px);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: clamp(12px, 1.6vw, 13px);
    margin-left: -6px;
    border: 2px solid var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.35s var(--ease-spring);
    position: relative;
}

.reaction-icon-pill:first-child {
    margin-left: 0;
}

.reaction-icon-pill:hover {
    transform: translateY(-6px) scale(1.5) rotate(10deg);
    z-index: 10;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.reaction-icon-pill.like {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, var(--reaction-like-from), var(--reaction-like-to));
}
.reaction-icon-pill.love {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, var(--reaction-love-from), var(--reaction-love-to));
}
.reaction-icon-pill.celebrate {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, var(--reaction-celebrate-from), var(--reaction-celebrate-to));
}
.reaction-icon-pill.insightful {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, var(--reaction-insightful-from), var(--reaction-insightful-to));
}
.reaction-icon-pill.support {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, var(--reaction-support-from), var(--reaction-support-to));
}

.reaction-count-text {
    font-size: clamp(13px, 1.7vw, 14px);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-spring);
}

@keyframes pulseCount {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); color: var(--brand-primary); }
}

.reaction-count-text.updated {
    animation: pulseCount 0.4s ease-out;
}

.comments-count-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: clamp(13px, 1.7vw, 14px);
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
}

.comments-count-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-hover);
    border-radius: 6px;
    transform: scale(0);
    transition: transform 0.3s var(--ease-out-expo);
}

.comments-count-btn:hover::before {
    transform: scale(1);
}

.comments-count-btn:hover {
    color: var(--brand-primary);
}

.comments-count-btn span {
    position: relative;
    z-index: 1;
}

/* ===================================
   ACTION BUTTONS
   =================================== */
.post-actions {
    display: flex;
    align-items: stretch;
    border-top: 1px solid var(--border-light);
    padding: clamp(4px, 1vw, 6px) clamp(8px, 1.5vw, 12px);
    gap: 4px;
}

.action-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1vw, 8px);
    padding: clamp(8px, 1.5vw, 10px);
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: clamp(14px, 1.8vw, 15px);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.action-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-hover);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out-expo);
    border-radius: 8px;
}

.action-button:hover::before {
    transform: scaleX(1);
}

.action-button:hover {
    color: var(--text-primary);
}

.action-button.active {
    color: var(--brand-primary);
    font-weight: 700;
    background: rgba(var(--brand-primary-rgb, 107, 142, 35), 0.1);
}

.action-button.active i {
    transform: scale(1.1);
}

.action-button > * {
    position: relative;
    z-index: 1;
}

.action-button i {
    font-size: clamp(18px, 2.5vw, 20px);
}

/* Loading state for action buttons */
.action-button[wire\:loading] {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.action-button[wire\:loading]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid var(--brand-primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   REACTION PICKER
   =================================== */
.reaction-picker-container {
    position: relative;
}

.reaction-picker {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 50px;
    padding: clamp(6px, 1vw, 8px) clamp(12px, 2vw, 16px);
    display: none;
    gap: clamp(4px, 0.8vw, 6px);
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

/* Show reaction picker on hover (desktop) */
.reaction-picker-container:hover .reaction-picker {
    display: flex;
}

.reaction-picker::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1),
        transparent,
        rgba(255, 255, 255, 0.05)
    );
    border-radius: inherit;
    pointer-events: none;
}

.reaction-btn {
    width: clamp(42px, 6vw, 48px);
    height: clamp(42px, 6vw, 48px);
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: clamp(28px, 4vw, 32px);
    display: grid;
    place-items: center;
    transition: all 0.35s var(--ease-spring);
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.reaction-btn::before {
    content: attr(data-label);
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%) scale(0.8) translateY(-5px);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: clamp(10px, 1.4vw, 11px);
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.reaction-btn::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--bg-hover) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.reaction-btn:hover::after {
    opacity: 1;
}

.reaction-btn:hover {
    transform: scale(1.6) translateY(-10px) rotate(-5deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.reaction-btn:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(0);
}

.reaction-btn:active {
    transform: scale(1.4) translateY(-8px) rotate(-3deg);
}

.reaction-btn.selected {
    background: var(--bg-hover);
    transform: scale(1.1);
}

.reaction-btn.selected::after {
    opacity: 0.5;
}

.reaction-btn[wire\:loading] {
    opacity: 0.6;
    pointer-events: none;
}

/* ===================================
   SHARE MENU
   =================================== */
.share-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    min-width: 240px;
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s var(--ease-spring);
    z-index: 100;
    overflow: hidden;
}

.share-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.share-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    text-align: left;
    position: relative;
}

.share-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-hover), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-option:hover::before {
    opacity: 1;
}

.share-option > * {
    position: relative;
    z-index: 1;
}

.share-option i {
    width: 22px;
    text-align: center;
    font-size: 18px;
    transition: transform 0.3s var(--ease-spring);
}

.share-option:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* ===================================
   EMPTY STATE
   =================================== */
.empty-feed {
    text-align: center;
    padding: clamp(3rem, 6vw, 4rem) 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.empty-feed i {
    font-size: clamp(3rem, 6vw, 4rem);
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-feed h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-feed p {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--text-muted);
}

/* ===================================
   SCROLL ANIMATIONS
   =================================== */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-post-card {
    animation: slideUpFade 0.6s var(--ease-out-expo) backwards;
}

.modern-post-card:nth-child(1) { animation-delay: 0.05s; }
.modern-post-card:nth-child(2) { animation-delay: 0.1s; }
.modern-post-card:nth-child(3) { animation-delay: 0.15s; }
.modern-post-card:nth-child(4) { animation-delay: 0.2s; }
.modern-post-card:nth-child(5) { animation-delay: 0.25s; }

/* ===================================
   FACEBOOK-STYLE COMMENT COMPOSER
   =================================== */
.fb-comment-composer {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    background: var(--bg-card);
    align-items: flex-start;
    transition: all 0.3s ease;
    border-top: 1px solid var(--border-light, rgba(0, 0, 0, 0.06));
}

.fb-composer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-light, rgba(0, 0, 0, 0.06));
}

.fb-composer-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--brand-primary, #6B8E23);
}

.fb-composer-avatar:active {
    transform: scale(0.98);
}

.fb-input-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fb-comment-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.fb-input-container {
    position: relative;
    background: var(--bg-secondary, #F0F2F5);
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    transition: background 0.2s ease;
    flex: 1;
    border: none;
    gap: 8px;
}

.fb-input-container:hover {
    background: var(--bg-hover, #E4E6EB);
}

.fb-input-container:focus-within {
    background: var(--bg-hover, #E4E6EB);
}

.fb-comment-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    resize: none;
    font-size: 15px;
    line-height: 20px;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 20px;
    max-height: 120px;
    overflow-y: auto;
    scrollbar-width: thin;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

.fb-comment-input::placeholder {
    color: var(--text-muted, #65676b);
    transition: opacity 0.2s ease;
}

.fb-comment-input:focus::placeholder {
    opacity: 0.6;
}

.fb-inline-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.fb-icon-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary, #65676B);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s ease;
    padding: 0;
    flex-shrink: 0;
    position: relative;
}

.fb-icon-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--brand-primary, #6B8E23);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.fb-icon-btn:hover {
    background: rgba(107, 142, 35, 0.08);
    color: var(--brand-primary, #6B8E23);
    transform: scale(1.15);
}

.fb-icon-btn:hover::before {
    opacity: 0.05;
    transform: scale(1);
}

.fb-icon-btn:active {
    transform: scale(0.92);
    background: rgba(107, 142, 35, 0.12);
}

/* Facebook-Style Emoji Picker */
.fb-emoji-picker {
    position: fixed;
    width: 300px;
    max-height: 400px;
    background: var(--bg-card, white);
    border-radius: 12px;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    display: none;
    transform: translateY(0) scale(1);
    z-index: 99999;
    overflow: hidden;
}

.fb-emoji-picker.show {
    display: block;
}

.fb-emoji-picker::before {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--bg-card, white);
    transform: rotate(45deg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.fb-emoji-picker.open-down::before {
    bottom: auto;
    top: -6px;
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

.fb-emoji-header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light, #e4e6eb);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(180deg, var(--bg-card), var(--bg-secondary, #f8f9fa));
    display: flex;
    align-items: center;
    gap: 6px;
}

.fb-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 3px;
    padding: 10px;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    background: var(--bg-card, white);
}

.fb-emoji-grid button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}

.fb-emoji-grid button::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--brand-primary, #6B8E23);
    border-radius: 6px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.2s ease;
    z-index: -1;
}

.fb-emoji-grid button:hover {
    background: rgba(107, 142, 35, 0.08);
    transform: scale(1.25);
    z-index: 10;
}

.fb-emoji-grid button:hover::before {
    opacity: 0.05;
    transform: scale(1);
}

.fb-emoji-grid button:active {
    transform: scale(1.15);
    background: rgba(107, 142, 35, 0.15);
}

/* Submit Button */
.fb-submit-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--brand-primary, #6B8E23);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.fb-submit-btn:hover {
    background: linear-gradient(135deg, var(--olive-dark, #5A7A1E) 0%, var(--olive-primary, #6B8E23) 100%);
    transform: scale(1.15) rotate(-8deg);
    box-shadow:
        0 6px 16px rgba(107, 142, 35, 0.45),
        0 3px 8px rgba(0, 0, 0, 0.18);
}

.fb-submit-btn:hover i {
    transform: translateX(2px) scale(1.15) rotate(5deg);
}

.fb-submit-btn:active {
    transform: scale(1.05) rotate(0deg);
}

.fb-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: scale(1);
}

.fb-submit-btn i {
    transform: translateX(1px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.fb-submit-btn[style*="display: flex"] {
    animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cancel Button */
.fb-cancel-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-hover, #E4E6EB);
    color: var(--text-primary, #050505);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.fb-cancel-btn:hover {
    background: var(--bg-tertiary, #D8DADF);
}

/* Error Message */
.fb-error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--danger-bg-subtle, #fee);
    border-left: 3px solid var(--brand-danger, #dc2626);
    border-radius: 4px;
    font-size: 13px;
    color: var(--brand-danger, #dc2626);
}

/* ===================================
   COMMENT SECTION WRAPPER
   =================================== */
.comment-section-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border-light);
}

.advanced-comments-section {
    background: var(--bg-primary);
    width: 100%;
    overflow: visible;
    opacity: 1;
}

.advanced-comments-section.always-open {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===================================
   LOGIN PROMPT
   =================================== */
.login-prompt-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(14px, 2vw, 16px);
    align-items: center;
    padding: clamp(18px, 2.5vw, 20px) clamp(20px, 3vw, 24px);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border-bottom: 1px solid var(--border-light);
}

.prompt-icon-wrapper {
    width: clamp(44px, 6vw, 48px);
    height: clamp(44px, 6vw, 48px);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb, 107, 142, 35), 0.1), rgba(var(--brand-primary-rgb, 107, 142, 35), 0.05));
    display: grid;
    place-items: center;
    color: var(--brand-primary);
    font-size: clamp(18px, 2.5vw, 20px);
}

.prompt-content h4 {
    margin: 0 0 clamp(4px, 0.6vw, 6px);
    font-size: clamp(15px, 2vw, 16px);
    font-weight: 600;
    color: var(--text-primary);
}

.prompt-content p {
    margin: 0;
    font-size: clamp(13px, 1.7vw, 14px);
    color: var(--text-secondary);
}

.prompt-content a {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.prompt-content a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: width 0.3s var(--ease-out-expo);
}

.prompt-content a:hover::after {
    width: 100%;
}

/* ===================================
   COMMENTS HEADER
   =================================== */
.comments-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(12px, 2vw, 14px) clamp(18px, 3vw, 20px);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.header-left {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 10px);
    font-size: clamp(14px, 1.8vw, 15px);
    font-weight: 600;
    color: var(--text-primary);
}

.header-left i {
    color: var(--text-secondary);
    font-size: clamp(16px, 2.2vw, 18px);
}

.comment-count-text {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.count-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 20px;
    font-size: clamp(12px, 1.6vw, 13px);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.sort-btn:hover {
    background: var(--bg-hover);
    border-color: var(--brand-primary);
    color: var(--text-primary);
}

/* ===================================
   COMMENTS LIST
   =================================== */
.advanced-comments-list {
    max-height: clamp(450px, 60vh, 600px);
    overflow-y: auto;
    padding: clamp(12px, 2vw, 14px) 0;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.advanced-comments-list::-webkit-scrollbar {
    width: 6px;
}

.advanced-comments-list::-webkit-scrollbar-track {
    background: transparent;
}

.advanced-comments-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.advanced-comments-list::-webkit-scrollbar-thumb:hover {
    background: var(--border-dark);
}

/* ===================================
   COMMENT ITEM - Facebook Style
   =================================== */
.advanced-comment-item {
    display: flex;
    gap: 8px;
    padding: 0 16px 12px 16px;
}

.comment-avatar-section {
    flex-shrink: 0;
}

.comment-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.comment-main-content {
    flex: 1;
    min-width: 0;
}

.comment-bubble-wrapper {
    display: inline-block;
    max-width: 100%;
}

.comment-bubble-modern {
    padding: 8px 12px;
    background: var(--bg-secondary, #F0F2F5);
    border-radius: 18px;
    display: inline-block;
    max-width: 100%;
}

.bubble-header {
    margin-bottom: 2px;
}

.commenter-name-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #050505);
    text-decoration: none;
}

.commenter-name-link:hover {
    text-decoration: underline;
}

.comment-body-text {
    font-size: 15px;
    line-height: 1.3333;
    color: var(--text-primary, #050505);
    margin: 0;
    word-wrap: break-word;
}

/* Comment Actions */
.comment-actions-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    padding-left: 12px;
    flex-wrap: wrap;
    row-gap: 6px;
}

.comment-time-ago {
    font-size: 12px;
    color: var(--text-secondary, #65676B);
    font-weight: 400;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.comment-time-ago::after {
    content: '•';
    color: var(--text-muted, #65676b);
    margin-left: 8px;
    opacity: 0.5;
    font-size: 10px;
}

.action-link {
    border: none;
    background: transparent;
    color: var(--text-secondary, #65676B);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.action-link:hover {
    text-decoration: underline;
}

.action-link.active {
    color: var(--brand-primary, #6B8E23);
}

.action-link.delete-action {
    color: var(--text-secondary, #65676B);
}

.action-link.delete-action:hover {
    color: var(--danger, #B91C1C);
}

.like-count,
.reply-count {
    font-size: 0.9em;
    opacity: 0.8;
    margin-left: 2px;
}

/* Comment Reaction Picker */
.comment-reaction-container {
    position: relative;
    display: flex;
    align-items: center;
}

.comment-reaction-picker {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: white;
    border-radius: 50px;
    padding: 8px 12px;
    display: flex;
    gap: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: scaleIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.comment-reaction-picker::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
}

.comment-reaction-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-reaction-btn:hover {
    transform: scale(1.3);
}

.comment-reaction-btn.selected {
    background: rgba(107, 142, 35, 0.1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-8px) scale(1);
    }
}

/* ===================================
   EMPTY COMMENTS STATE
   =================================== */
.empty-comments-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 8vw, 60px) clamp(20px, 3vw, 24px);
    text-align: center;
}

.empty-icon-wrapper {
    width: clamp(72px, 10vw, 80px);
    height: clamp(72px, 10vw, 80px);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb, 107, 142, 35), 0.1), rgba(var(--brand-primary-rgb, 107, 142, 35), 0.05));
    display: grid;
    place-items: center;
    margin-bottom: clamp(16px, 2.5vw, 20px);
    animation: float 3s ease-in-out infinite;
}

.empty-icon-wrapper i {
    font-size: clamp(32px, 5vw, 40px);
    color: var(--text-muted);
    opacity: 0.3;
}

.empty-comments-card h4 {
    font-size: clamp(16px, 2.2vw, 18px);
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 clamp(6px, 1vw, 8px);
}

.empty-comments-card p {
    font-size: clamp(14px, 1.8vw, 15px);
    color: var(--text-muted);
    margin: 0;
}

/* ===================================
   REACTION COUNT BADGE
   =================================== */
.reaction-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(27, 116, 228, 0.1);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-primary, #6B8E23);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none !important;
    outline: none !important;
    line-height: 1;
}

.reaction-icon {
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.reaction-count-number {
    margin-left: 2px;
    line-height: 1;
}

.reaction-count-badge:hover {
    background: var(--brand-primary, #6B8E23);
    color: white;
    transform: scale(1.05);
}

/* ===================================
   REACTORS MODAL
   =================================== */
.reactors-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50000;
    animation: fadeIn 0.2s ease;
}

.reactors-modal {
    width: 90%;
    max-width: 548px;
    max-height: 90vh;
    background: var(--bg-card, #fff);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 0;
    border-bottom: none;
}

.modal-header-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #050505);
    margin: 0;
    line-height: 24px;
}

.close-modal-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary, #e4e6eb);
    color: var(--text-secondary, #65676b);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s;
    font-size: 20px;
}

.close-modal-btn:hover {
    background: var(--bg-hover, #d8dadf);
}

.reaction-filters {
    display: flex;
    gap: 0;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-color, #e4e6eb);
    overflow-x: auto;
    scrollbar-width: none;
}

.reaction-filters::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary, #65676b);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    border-bottom: 3px solid transparent;
}

.filter-tab:hover {
    background: var(--bg-hover, rgba(0, 0, 0, 0.04));
}

.filter-tab.active {
    background: transparent;
    color: var(--brand-primary, #6B8E23);
    border-bottom-color: var(--brand-primary, #6B8E23);
}

.filter-tab.active .tab-count {
    color: var(--brand-primary, #6B8E23);
}

.filter-emoji {
    font-size: 18px;
    line-height: 1;
}

.tab-count {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary, #65676b);
}

.reactors-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.reactor-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    transition: background 0.1s;
}

.reactor-item:hover {
    background: var(--bg-hover, rgba(0, 0, 0, 0.03));
}

.reactor-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

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

.reactor-details {
    flex: 1;
    min-width: 0;
}

.reactor-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #050505);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 20px;
}

.reactor-name:hover {
    text-decoration: underline;
}

.reactor-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.reactor-emoji {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.reactor-follow-btn {
    padding: 0 12px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: var(--bg-secondary, #e4e6eb);
    color: var(--text-primary, #050505);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.1s;
    white-space: nowrap;
}

.reactor-follow-btn:hover {
    background: var(--bg-hover, #d8dadf);
}

.reactor-follow-btn.following {
    background: var(--brand-primary, #6B8E23);
    color: white;
}

.reactor-follow-btn.following:hover {
    background: var(--olive-dark, #5A7A1E);
}

.empty-reactors-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary, #65676b);
}

.empty-reactors-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-reactors-state p {
    font-size: 15px;
    margin: 0;
}

/* ===================================
   COMMENT IMAGE DISPLAY
   =================================== */
.comment-image-display {
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 300px;
}

.comment-uploaded-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.comment-uploaded-image:hover {
    transform: scale(1.02);
}

.comment-image-preview {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: var(--bg-secondary, #f0f2f5);
    border-radius: 8px;
}

.comment-image-preview .preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--border-color, #ddd);
}

.comment-image-preview .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-image-preview .remove-preview {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.comment-image-preview .remove-preview:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: scale(1.1);
}

/* Upload Progress Indicator */
.upload-progress-indicator {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(107, 142, 35, 0.1) 0%, rgba(107, 142, 35, 0.05) 100%);
    border-radius: 8px;
    margin-top: 8px;
    border-left: 3px solid var(--brand-primary, #6B8E23);
}

.upload-progress-indicator.is-visible {
    display: flex;
}

.upload-spinner {
    color: var(--brand-primary, #6B8E23);
    font-size: 16px;
}

.upload-text {
    color: var(--brand-primary, #6B8E23);
    font-size: 13px;
    font-weight: 500;
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .modern-post-card {
        border-radius: 0;
        margin-bottom: 0.75rem;
        border-left: none;
        border-right: none;
    }

    .reaction-icon-pill:hover {
        transform: translateY(-4px) scale(1.3) rotate(5deg);
    }

    .reaction-btn:hover {
        transform: scale(1.4) translateY(-8px) rotate(-3deg);
    }

    .fb-comment-composer {
        gap: 10px;
        padding: 14px 12px;
    }

    .fb-composer-avatar {
        width: 32px;
        height: 32px;
    }

    .fb-input-container {
        border-radius: 20px;
        padding: 8px 12px;
    }

    .fb-submit-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .fb-icon-btn {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }

    .action-link {
        padding: 5px 10px;
        font-size: 12px;
        gap: 4px;
    }

    .comment-actions-bar {
        gap: 8px;
    }

    .advanced-comment-item {
        grid-template-columns: auto 1fr;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .reactors-modal {
        width: 95%;
        max-height: 95vh;
        border-radius: 8px;
    }

    .modal-header-section {
        padding: 12px 12px 0;
    }

    .modal-header-section h2 {
        font-size: 18px;
    }

    .close-modal-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .filter-tab {
        padding: 10px 12px;
        font-size: 14px;
    }

    .reactor-item {
        padding: 8px 12px;
    }

    .reactor-avatar {
        width: 36px;
        height: 36px;
    }

    .reactor-name {
        font-size: 14px;
    }

    .reactor-follow-btn {
        padding: 0 10px;
        height: 28px;
        font-size: 13px;
    }
}

/* Container Queries */
@container post-card (max-width: 400px) {
    .action-button span {
        display: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .reaction-icon-pill {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }

    .modern-post-card:hover {
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    }

    .fb-composer-avatar {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .action-link::before {
        background: rgba(255, 255, 255, 0.08);
    }

    .action-link:hover {
        color: var(--olive-light, #9AC136);
    }

    .reaction-count-badge {
        background: rgba(154, 193, 54, 0.15);
        color: var(--olive-light, #9AC136);
    }

    .reaction-count-badge:hover {
        background: var(--olive-light, #9AC136);
        color: #000;
    }
}

/* ===================================
   LIGHT THEME EXPLICIT OVERRIDES
   =================================== */
[data-theme="light"] .post-dropdown-menu {
    background: var(--bg-card, #ffffff);
    border-color: var(--border-light, #e5e7eb);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .comment-reaction-picker {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color, #e0e8d5);
}

[data-theme="light"] .comment-reaction-picker::after {
    border-top-color: #ffffff;
}

[data-theme="light"] .comment-reaction-btn.selected {
    background: rgba(107, 142, 35, 0.1);
}

[data-theme="light"] .fb-composer-avatar {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .reaction-count-badge {
    background: rgba(107, 142, 35, 0.1);
    color: var(--brand-primary, #6B8E23);
}

[data-theme="light"] .reaction-count-badge:hover {
    background: var(--brand-primary, #6B8E23);
    color: white;
}

/* ===================================
   MOBILE RESPONSIVE - ICONS & LAYOUT
   =================================== */

/* Tablet: disable hover lift on touch devices */
@media (max-width: 768px) {
    .modern-post-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .modern-post-card:hover::before {
        opacity: 0;
    }

    /* Disable hover transforms that don't work on touch */
    .author-avatar:hover::before {
        opacity: 0;
        animation-play-state: paused;
    }

    .author-avatar:hover img {
        transform: none;
    }
}

/* Phone screens */
@media (max-width: 576px) {
    /* Compact post action buttons with WCAG 44px tap targets */
    .post-actions {
        padding: 4px 6px;
        gap: 2px;
    }

    .action-button {
        padding: 10px 6px;
        min-height: 44px;
        border-radius: 6px;
        gap: 4px;
    }

    .action-button i {
        font-size: 18px;
    }

    /* Constrain reaction picker within viewport */
    .reaction-picker {
        left: 0;
        transform: none;
        max-width: calc(100vw - 24px);
    }

    .reaction-btn {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    /* Prevent share menu from overflowing viewport */
    .share-menu {
        min-width: auto;
        width: min(240px, calc(100vw - 32px));
    }

    /* Responsive emoji picker */
    .fb-emoji-picker {
        width: min(300px, calc(100vw - 24px));
    }

    /* Tighter engagement bar */
    .engagement-bar {
        padding: 8px 12px;
    }

    /* Compact post header */
    .post-header {
        padding: 12px;
        gap: 0.5rem;
    }

    .author-avatar img {
        width: 40px;
        height: 40px;
    }

    /* Post content padding */
    .post-content {
        padding-inline: 12px;
    }

    /* Compact post dropdown menu */
    .post-dropdown-menu {
        min-width: min(220px, calc(100vw - 32px));
    }
}

/* Extra-small phones (320px - 375px) */
@media (max-width: 375px) {
    .post-actions {
        padding: 3px 4px;
        gap: 1px;
    }

    .action-button {
        padding: 10px 4px;
        min-height: 44px;
    }

    .action-button i {
        font-size: 16px;
    }

    /* Smaller reaction buttons to fit narrow screens */
    .reaction-btn {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .reaction-picker {
        padding: 6px 8px;
        gap: 2px;
        border-radius: 28px;
    }

    /* Compact engagement indicators */
    .engagement-bar {
        padding: 6px 10px;
    }

    .reaction-icon-pill {
        width: 20px;
        height: 20px;
        font-size: 11px;
        margin-left: -5px;
    }

    .reaction-count-text,
    .comments-count-btn {
        font-size: 12px;
    }

    /* Compact share options */
    .share-option {
        padding: 12px 14px;
        font-size: 14px;
        gap: 10px;
    }

    .share-option i {
        font-size: 16px;
    }

    /* Even tighter post header */
    .post-header {
        padding: 10px;
    }

    .author-avatar img {
        width: 36px;
        height: 36px;
    }

    .post-content {
        padding-inline: 10px;
    }

    /* Compact post dropdown */
    .post-dropdown-menu .dropdown-item {
        padding: 10px 14px;
        gap: 10px;
        font-size: 13px;
    }
}
