/* ═══════════════════════════════════════════════════
   SENDROGNE FORUM – PREMIUM REDESIGN
   ═══════════════════════════════════════════════════ */

/* ─ Global Layout ─ */
.forum-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

@media (max-width: 900px) {
    .forum-container {
        padding: 0 8px 40px;
    }
}

@media (max-width: 600px) {
    .forum-container {
        padding: 0 0 32px;
    }
}

/* ─── CATEGORY CARD GRID ─── */
.forum-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.forum-cat-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.forum-cat-card:hover {
    border-color: var(--red);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.15),
        0 4px 16px -4px rgba(0, 119, 182, 0.1);
}

html.dark .forum-cat-card:hover {
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5),
        0 4px 16px -4px rgba(0, 119, 182, 0.2);
}

/* Card Image */
.fcc-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: var(--dark-3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcc-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.5s ease;
}

.forum-cat-card:hover .fcc-image img {
    transform: scale(1.08);
}

.fcc-image-placeholder,
.fcc-image-emoji,
.fcc-image-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-4) 100%);
}

.fcc-image-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--text-3);
    opacity: 0.25;
}

.fcc-image-emoji span {
    font-size: 3.5rem;
    line-height: 1;
}

.fcc-image-icon i {
    font-size: 3rem;
    color: var(--text-2);
}

/* Card Body */
.fcc-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fcc-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin: 0 0 6px;
    transition: color 0.3s;
}

.forum-cat-card:hover .fcc-name {
    color: var(--red);
}

.fcc-description {
    font-size: 0.78rem;
    color: var(--text-2);
    line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Stats */
.fcc-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.fcc-stat {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-2);
    padding: 3px 8px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 5px;
}

html.dark .fcc-stat {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Card Footer */
.fcc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.fcc-last-user {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.fcc-last-time {
    font-size: 0.75rem;
    color: var(--text-3);
    font-weight: 500;
}

/* Category Grid Responsive */
@media (max-width: 1100px) {
    .forum-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .forum-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .forum-cat-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── FORUM HERO HEADER ─── */
.forum-hero {
    padding: 20px 0 36px;
    margin-bottom: 8px;
    position: relative;
}

.forum-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.forum-hero-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.forum-hero-text {
    flex: 1;
    min-width: 280px;
}

.forum-hero-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.forum-hero-icon {
    width: 36px;
    height: 36px;
    color: var(--red);
    flex-shrink: 0;
}

.forum-hero-desc {
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.6;
    max-width: 520px;
}

/* ─ Stat Pills ─ */
.forum-hero-stats {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.forum-stat-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 119, 182, 0.08);
    border: 1px solid rgba(0, 119, 182, 0.15);
    border-radius: 100px;
    padding: 10px 20px 10px 14px;
    transition: all 0.3s ease;
}

html.dark .forum-stat-pill {
    background: rgba(0, 119, 182, 0.12);
    border-color: rgba(0, 119, 182, 0.2);
}

.forum-stat-pill svg {
    width: 18px;
    height: 18px;
    color: var(--red);
    opacity: 0.7;
    flex-shrink: 0;
}

.stat-pill-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.stat-pill-label {
    font-size: 0.78rem;
    color: var(--text-2);
    font-weight: 600;
    line-height: 1;
}

/* ─── CATEGORY LIST ─── */
.forum-categories-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.forum-cat-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.forum-cat-row:hover {
    background: var(--dark-3);
    border-color: var(--red);
    transform: translateX(4px);
    box-shadow: 0 8px 32px -8px rgba(0, 119, 182, 0.15),
        0 4px 16px -4px rgba(0, 0, 0, 0.1);
}

html.dark .forum-cat-row:hover {
    box-shadow: 0 8px 32px -8px rgba(0, 119, 182, 0.25),
        0 4px 16px -4px rgba(0, 0, 0, 0.4);
}

/* ─ Activity Bar ─ */
.cat-activity-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--dark-4);
    border-radius: 0 3px 3px 0;
    transition: all 0.3s ease;
}

.cat-activity-bar.active {
    background: var(--success);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

/* ─ Category Icon ─ */
.cat-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--cat-color) 12%, transparent),
            color-mix(in srgb, var(--cat-color) 5%, transparent));
    border: 1px solid color-mix(in srgb, var(--cat-color) 20%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

html.dark .cat-icon-wrap {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--cat-color) 18%, transparent),
            color-mix(in srgb, var(--cat-color) 8%, transparent));
    border-color: color-mix(in srgb, var(--cat-color) 25%, transparent);
}

.forum-cat-row:hover .cat-icon-wrap {
    transform: scale(1.08);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--cat-color) 25%, transparent);
}

.cat-icon-wrap img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.cat-icon-wrap svg {
    width: 24px;
    height: 24px;
    color: var(--cat-color);
}

.cat-icon-wrap i {
    font-size: 1.5rem;
    color: var(--cat-color);
}

.cat-icon-emoji {
    font-size: 1.6rem;
    line-height: 1;
}

/* ─ Category Content ─ */
.cat-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-content-top {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cat-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.forum-cat-row:hover .cat-title {
    color: var(--red);
}

.cat-description {
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─ Subcategories ─ */
.cat-subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cat-sub-chip {
    padding: 3px 10px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-2);
    transition: all 0.2s ease;
    cursor: pointer;
}

html.dark .cat-sub-chip {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.cat-sub-chip:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* ─ Latest Thread ─ */
.cat-latest {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.cat-latest-icon {
    width: 14px;
    height: 14px;
    color: var(--red);
    flex-shrink: 0;
    opacity: 0.6;
}

.cat-latest-text {
    font-size: 0.8rem;
    color: var(--text-2);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-latest-time {
    font-size: 0.75rem;
    color: var(--text-3);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─ Stats Column ─ */
.cat-stats-col {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
    padding: 0 16px;
}

.cat-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 52px;
}

.cat-stat-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.cat-stat-label {
    font-size: 0.68rem;
    color: var(--text-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
}

/* ─ Arrow ─ */
.cat-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--text-3);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-arrow svg {
    width: 20px;
    height: 20px;
}

.forum-cat-row:hover .cat-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--red);
}

/* ─── EMPTY STATE ─── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-2);
}

.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.95rem;
    color: var(--text-2);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .forum-cat-row {
        flex-wrap: wrap;
        gap: 14px;
        padding: 16px 18px;
    }

    .cat-stats-col {
        order: 4;
        width: 100%;
        justify-content: flex-start;
        padding: 12px 0 0;
        border-top: 1px solid var(--border);
        gap: 20px;
    }

    .cat-stat-box {
        align-items: flex-start;
        flex-direction: row;
        gap: 6px;
    }

    .cat-stat-label {
        text-transform: none;
        letter-spacing: 0;
    }

    .cat-arrow {
        display: none;
    }
}

@media (max-width: 600px) {
    .forum-hero-title {
        font-size: 1.8rem;
    }

    .forum-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .forum-hero-stats {
        width: 100%;
    }

    .forum-stat-pill {
        flex: 1;
        justify-content: center;
    }

    .cat-icon-wrap {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .cat-icon-wrap img {
        width: 26px;
        height: 26px;
    }

    .cat-title {
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════════════
   EXISTING STYLES BELOW – Thread, Post, Reply, etc.
   ═══════════════════════════════════════════════════ */

/* ─ Thread List (category) ─ */
.thread-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.thread-list-stat {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
}

.thread-list {
    display: flex;
    flex-direction: column;
}

.thread-row {
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 20px;
    position: relative;
}

.thread-row:hover {
    background: #f8fafc;
}

.thread-row:last-child {
    border-bottom: none;
}

.thread-row-pinned {
    background: #f0f9ff;
}

.thread-row-pinned:hover {
    background: #e0f2fe;
}

.thread-row-left {
    flex-shrink: 0;
}

.thread-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.thread-row:hover .thread-avatar {
    background: #0077b6;
    color: #fff;
}

.thread-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.thread-row-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.thread-row:hover .thread-row-title {
    color: #0077b6;
}

.icon-pinned {
    width: 18px;
    height: 18px;
    color: #e31e24;
    flex-shrink: 0;
}

.icon-locked {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    flex-shrink: 0;
}

.thread-row-meta {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thread-author {
    color: #334155;
    font-weight: 600;
}

.thread-dot {
    opacity: 0.5;
    font-size: 0.7rem;
}

.thread-row-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    min-width: 130px;
}

.thread-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.thread-stat-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.thread-row-last-active {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    min-width: 140px;
    gap: 2px;
}

.last-active-time {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.last-active-ago {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

@media (max-width: 768px) {
    .thread-row {
        flex-wrap: wrap;
        padding: 16px 12px;
        gap: 12px;
    }

    .thread-row-stats {
        width: 100%;
        order: 3;
        justify-content: flex-start;
        padding-top: 10px;
        margin-top: 4px;
        border-top: 1px dashed #e2e8f0;
    }

    .thread-row-last-active {
        display: none;
    }
}

/* ─ Thread Top Header ─ */
@media (max-width: 600px) {
    .thread-top-header {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* ─ Post View (thread) – WHITE THEME ─ */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

/* Contenu interne du post (header + content) */
.post-card > .post-header,
.post-card > .post-content,
.post-card > .post-reactions-wrapper {
    padding-left: 24px;
    padding-right: 24px;
}

.post-card > .post-header {
    padding-top: 20px;
    padding-bottom: 0;
}

.post-card > .post-content {
    padding: 16px 24px;
}

.post-card > .post-reactions-wrapper {
    padding-bottom: 16px;
}

.post-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
}

/* Post épinglé */
.post-card--pinned {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245,158,11,0.18), 0 2px 12px rgba(245,158,11,0.10);
}

.pinned-banner {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 60%, #fef9ee 100%);
    border-bottom: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    color: #b45309;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.post-avatar-lg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #0077b6;
    border: 2px solid #e0f2fe;
}

.post-author-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.post-author-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-author-meta {
    font-size: 0.78rem;
    color: #94a3b8;
}

.post-role-badge {
    font-size: 0.65rem;
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.1), rgba(0, 119, 182, 0.05));
    color: #0077b6;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.post-card:hover .post-actions {
    opacity: 1;
}

.post-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.post-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

.post-btn-danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #ef4444;
}

.post-content {
    font-size: 1rem;
    color: #334155;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 16px 0;
}

.post-content a {
    color: #0077b6;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 119, 182, 0.25);
    transition: border-color 0.2s;
}

.post-content a:hover {
    border-bottom-color: #0077b6;
}

/* ─ Reply Section – MODERN DESIGN ─ */
.reply-section {
    width: 100%;
    margin: 0 0 24px 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* ─ Modern Reply Wrapper (inline form) ─ */
.modern-reply-wrapper {
    box-sizing: border-box;
    width: 100%;
}

.modern-reply-wrapper textarea {
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .modern-reply-wrapper > div:last-child {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .modern-reply-wrapper > div:last-child > div:last-child {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

.reply-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.reply-section-header svg {
    width: 20px;
    height: 20px;
    color: #0077b6;
    flex-shrink: 0;
}

.reply-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.reply-editor-wrap {
    padding: 24px 28px;
}

.reply-textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    color: #1e293b;
    font-size: 0.95rem;
    font-family: var(--font);
    line-height: 1.6;
    min-height: 140px;
    resize: vertical;
    transition: all 0.3s ease;
}

.reply-textarea:focus {
    outline: none;
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.12);
    background: #ffffff;
}

.reply-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px 20px;
}

.reply-actions .reply-hint {
    font-size: 0.8rem;
    color: #94a3b8;
}

.reply-actions .btn-modern {
    background: linear-gradient(135deg, #0077b6, #023e8a);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.25);
}

.reply-actions .btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.35);
    filter: brightness(1.05);
}

.reply-actions .btn-modern:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.2);
}

/* ─ Reactions (White Theme) ─ */
.post-reactions-wrapper {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-reactions-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.reaction-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.85rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.reaction-badge:hover,
.reaction-badge.active {
    background: rgba(0, 119, 182, 0.08);
    border-color: rgba(0, 119, 182, 0.25);
    color: #0077b6;
}

.reaction-users {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reaction-badge.active .reaction-users {
    color: #0077b6;
}

/* ── Réactions style Facebook ── */
.reaction-picker-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Bouton « 😊 + Réagir » */
.reaction-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #65676b;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.reaction-add-btn:hover {
    background: #f0f2f5;
    color: #1877f2;
}

.reaction-add-btn svg {
    transition: transform 0.2s;
}

.reaction-add-btn:hover svg {
    transform: scale(1.15);
}

/* Bulle flottante des emojis */
.reaction-picker {
    position: absolute;
    bottom: calc(100% + 10px);
    left: -6px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18), 0 1px 4px rgba(0,0,0,0.10);
    border: 1px solid rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.85);
    transform-origin: bottom left;
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.175,0.885,0.32,1.275), visibility 0.18s;
    z-index: 200;
    white-space: nowrap;
}

/* Petite flèche */
.reaction-picker::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 18px;
    width: 12px;
    height: 6px;
    background: #ffffff;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.08));
}

.reaction-picker.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Une seule rangée d'emojis */
.reaction-row {
    display: contents;
}

.reaction-btn {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    padding: 2px 3px;
    cursor: pointer;
    border-radius: 50%;
    line-height: 1;
    transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.reaction-btn:hover {
    transform: scale(1.45) translateY(-4px);
    z-index: 1;
}

/* ─ More Options Dropdown ─ */
.post-more-wrapper {
    position: relative;
}

.post-more-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px) scale(0.96);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 200;
}

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

.post-more-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 14px;
    background: transparent;
    border: none;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.post-more-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.post-more-item svg {
    color: #94a3b8;
    flex-shrink: 0;
    transition: color 0.15s;
}

.post-more-item:hover svg {
    color: #0077b6;
}

/* ─ Inline Edit ─ */
.edit-post-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edit-post-textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.6;
    resize: vertical;
    background: #f8fafc;
    transition: border-color 0.3s;
}

.edit-post-textarea:focus {
    outline: none;
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
    background: #ffffff;
}

.edit-post-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ─ Blockquotes / Citations (White Theme) ─ */
.post-content blockquote {
    background: #f8fafc;
    border-left: 3px solid #0077b6;
    margin: 0 0 1em 0;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}

/* ─ Modern Buttons ─ */
.btn-modern {
    background: #2196F3;
    color: var(--white-real);
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-modern:hover {
    background: #1E88E5;
    box-shadow: 0 8px 16px -4px rgba(33, 150, 243, 0.4);
    transform: translateY(-1px);
}

.btn-modern-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-modern-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ─ Responsive (thread/post) ─ */
@media (max-width: 768px) {
    .thread-grid {
        grid-template-columns: 1fr;
    }

    .post-card {
        padding: 0;
        border-radius: 8px;
    }

    .post-card > .post-header,
    .post-card > .post-content,
    .post-card > .post-reactions-wrapper {
        padding-left: 14px;
        padding-right: 14px;
    }

    .post-card > .post-content {
        padding: 12px 14px;
    }

    .post-card > .post-reactions-wrapper {
        padding-bottom: 12px;
    }

    .post-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .post-actions {
        opacity: 1;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .post-card {
        padding: 0;
        border-radius: 6px;
        margin-bottom: 10px;
    }

    .post-card > .post-header,
    .post-card > .post-content,
    .post-card > .post-reactions-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }

    .post-card > .post-content {
        padding: 10px;
    }

    .post-more-menu {
        right: auto;
        left: 0;
    }

    .post-list {
        gap: 10px;
    }
}