/**
 * Monleo Community Hub - Tiên Hiệp Luận Đạo & Cảm Xúc CSS
 * Style: Huyền Mặc Tiên Hiệp (Dark Monochrome Ink-Wash & Gold Accents)
 */

/* ==========================================================================
   1. KHUNG ĐĂNG BÀI (SUBMISSION BOX)
   ========================================================================== */
.monleo-submission-box {
    position: relative;
    background: linear-gradient(180deg, rgba(14, 16, 22, 0.96) 0%, rgba(10, 11, 14, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    padding: 24px 28px;
    margin: 24px 0 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(0, 0, 0, 0.5);
    color: #F8FAFC;
    overflow: hidden;
}

/* Góc Khung Tranh Cổ (Corner Ornaments) */
.monleo-box-ornament {
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    border-color: #D4AF37;
    border-style: solid;
}
.monleo-box-ornament.corner-tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.monleo-box-ornament.corner-tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.monleo-box-ornament.corner-bl { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
.monleo-box-ornament.corner-br { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }

.monleo-box-header {
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.25);
}

.monleo-ink-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 9999px;
    color: #FDE68A;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.monleo-box-title {
    color: #F8FAFC;
    font-size: 22px;
    font-weight: 800;
    margin: 4px 0 8px;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.monleo-box-desc {
    color: #94A3B8;
    font-size: 13.5px;
    margin: 0 auto;
    max-width: 640px;
    line-height: 1.6;
}

/* Author Pill */
.monleo-author-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.15);
    border-radius: 9999px;
    padding: 4px 14px 4px 6px;
    margin-bottom: 18px;
}

.monleo-author-pill .monleo-avatar img {
    border-radius: 50%;
    border: 1px solid #D4AF37;
    display: block;
}

.monleo-author-meta {
    display: flex;
    flex-direction: column;
}

.monleo-author-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #FDE68A;
}

.monleo-author-role {
    font-size: 10.5px;
    color: #94A3B8;
}

/* Login Prompt Card */
.monleo-login-required-card {
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 24px;
    margin: 10px 0;
}

.monleo-prompt-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.monleo-prompt-text h4 {
    color: #FDE68A;
    font-size: 16px;
    margin: 0 0 6px;
}

.monleo-prompt-text p {
    color: #94A3B8;
    font-size: 13px;
    margin: 0 0 16px;
}

/* Form Groups & Inputs */
.monleo-form-group {
    margin-bottom: 18px;
}

.monleo-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #E2E8F0;
    margin-bottom: 6px;
}

.monleo-label .required {
    color: #EF4444;
}

.monleo-input,
.monleo-select,
.monleo-textarea {
    width: 100% !important;
    background: #0E1016 !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 6px !important;
    color: #F8FAFC !important;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.25s ease !important;
}

.monleo-input:focus,
.monleo-select:focus,
.monleo-textarea:focus {
    outline: none !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3), inset 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

/* Dropzone */
.monleo-dropzone {
    display: block;
    border: 2px dashed rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    padding: 22px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.monleo-dropzone:hover,
.monleo-dropzone.dragover {
    border-color: #FDE68A;
    background: rgba(212, 175, 55, 0.06);
}

.monleo-file-input-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.monleo-btn-browse {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #FDE68A;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 6px;
    margin: 8px 0 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.monleo-dropzone:hover .monleo-btn-browse {
    background: rgba(212, 175, 55, 0.35);
    border-color: #D4AF37;
    color: #FFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.monleo-dropzone-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.monleo-upload-icon {
    font-size: 28px;
    margin-bottom: 2px;
}

.monleo-upload-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #F3E5AB;
}

.monleo-upload-hint {
    font-size: 11.5px;
    color: #64748B;
}

/* Preview Grid */
.monleo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.monleo-preview-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: #000;
    height: 85px;
}

.monleo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.monleo-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(220, 38, 38, 0.85);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

.monleo-preview-remove:hover {
    transform: scale(1.15);
    background: #dc2626;
}

/* Buttons */
.monleo-btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%);
    color: #0A0B0E !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
    transition: all 0.25s ease;
}

.monleo-btn-gold:hover {
    background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 100%);
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.5);
    transform: translateY(-1px);
}

.monleo-form-actions {
    margin-top: 20px;
    text-align: right;
}

/* Alert Box */
.monleo-form-alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 14px;
    line-height: 1.5;
}

.monleo-form-alert.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.monleo-form-alert.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* ==========================================================================
   2. HỆ THỐNG CẢM XÚC (REACTIONS BAR)
   ========================================================================== */
.monleo-reactions-wrapper {
    background: rgba(14, 16, 22, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 24px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.monleo-reactions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(226, 232, 240, 0.1);
    padding-bottom: 8px;
}

.reactions-title-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #FDE68A;
    text-transform: uppercase;
}

.reactions-count-total {
    font-size: 12px;
    color: #94A3B8;
}

.reactions-count-total strong {
    color: #F8FAFC;
}

.monleo-reactions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.monleo-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.12);
    border-radius: 9999px;
    padding: 6px 14px;
    color: #CBD5E1;
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.monleo-reaction-btn .reaction-icon {
    font-size: 15px;
    transition: transform 0.2s;
}

.monleo-reaction-btn .reaction-count {
    font-weight: 700;
    font-size: 11.5px;
    color: #94A3B8;
}

.monleo-reaction-btn:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.4);
    color: #FDE68A;
    transform: translateY(-2px);
}

.monleo-reaction-btn:hover .reaction-icon {
    transform: scale(1.25);
}

/* Active Reaction State */
.monleo-reaction-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(18, 20, 28, 0.95));
    border-color: #D4AF37;
    color: #FDE68A;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.monleo-reaction-btn.active .reaction-count {
    color: #FDE68A;
}

/* Pulse animation on click */
.monleo-reaction-btn.anim-pop {
    animation: monleoPop 0.35s ease;
}

@keyframes monleoPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.22); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   3. BÀI VIẾT FEED & GRID (COMMUNITY FEED)
   ========================================================================== */
.monleo-community-feed-wrapper {
    margin: 28px 0 40px;
}

.monleo-feed-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: rgba(14, 16, 22, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.feed-main-title {
    color: #F8FAFC;
    font-size: 22px;
    font-weight: 800;
    margin: 4px 0 6px;
}

.feed-sub-title {
    color: #94A3B8;
    font-size: 13px;
    margin: 0;
}

/* Drawer for Submission */
.monleo-submission-drawer {
    animation: monleoSlideDown 0.3s ease;
}

@keyframes monleoSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Feed Grid */
.monleo-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.monleo-feed-card {
    background: rgba(14, 16, 22, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.12);
    border-radius: 8px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.monleo-feed-card:hover {
    border-color: rgba(212, 175, 55, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 16px rgba(212, 175, 55, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar img {
    border-radius: 50%;
    border: 1px solid #D4AF37;
    display: block;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info .author-name {
    font-size: 13px;
    font-weight: 700;
    color: #F8FAFC;
}

.author-info .post-time {
    font-size: 11px;
    color: #64748B;
}

.card-category-pill {
    font-size: 11px;
    padding: 3px 10px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    color: #F3E5AB !important;
    text-decoration: none !important;
    font-weight: 600;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 4px 0 8px;
    line-height: 1.4;
}

.card-title a {
    color: #F8FAFC !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.card-title a:hover {
    color: #D4AF37 !important;
}

.card-excerpt {
    color: #94A3B8;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.card-media {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 14px;
    max-height: 180px;
    border: 1px solid rgba(226, 232, 240, 0.1);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.card-media:hover img {
    transform: scale(1.04);
}

.card-footer {
    border-top: 1px solid rgba(226, 232, 240, 0.08);
    padding-top: 12px;
    margin-top: auto;
}

.card-footer .monleo-reactions-wrapper {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 0 8px;
    box-shadow: none;
}

.card-footer .monleo-reactions-header {
    display: none;
}

.card-comments-link {
    display: inline-block;
    font-size: 12px;
    color: #94A3B8 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.card-comments-link:hover {
    color: #D4AF37 !important;
}

/* Image Gallery Inside Single Post */
.monleo-post-image-gallery {
    margin: 28px 0;
    padding: 18px 20px;
    background: rgba(14, 16, 22, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
}

.gallery-title {
    font-size: 13px;
    font-weight: 700;
    color: #FDE68A;
    margin-bottom: 12px;
}

.gallery-grid {
    display: grid;
    gap: 12px;
}
.gallery-grid.count-1 { grid-template-columns: 1fr; }
.gallery-grid.count-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.count-3 { grid-template-columns: repeat(3, 1fr); }

.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 180px;
    border: 1px solid rgba(226, 232, 240, 0.15);
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-zoom-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .monleo-submission-box {
        padding: 18px 16px;
    }
    .gallery-grid.count-3,
    .gallery-grid.count-2 {
        grid-template-columns: 1fr;
    }
    .monleo-reactions-buttons {
        gap: 6px;
    }
    .monleo-reaction-btn {
        padding: 5px 10px;
        font-size: 11.5px;
    }
}

/* ==========================================================================
   v1.1.0 — BẢNG CÁO THỊ TÔNG MÔN (Wuxia / Tu Tiên notice board)
   ========================================================================== */
.monleo-community-feed-wrapper {
    --mb-wood: #2a1b10; --mb-wood-2: #3b2716; --mb-paper: #e9dcc0; --mb-paper-2: #d9c79f;
    --mb-ink: #2b1d12; --mb-seal: #a3281f; --mb-gold: #d4af37;
    width: 100%; max-width: 1200px; margin: 28px auto 40px; box-sizing: border-box;
}
.monleo-community-feed-wrapper *, .monleo-community-feed-wrapper *::before, .monleo-community-feed-wrapper *::after { box-sizing: border-box; }

/* Bảng gỗ chính */
.monleo-feed-topbar {
    position: relative; text-align: center; justify-content: center; flex-direction: column;
    background:
        repeating-linear-gradient(90deg, rgba(0,0,0,.14) 0 2px, transparent 2px 9px),
        linear-gradient(180deg, var(--mb-wood-2), var(--mb-wood));
    border: 3px solid #5a3d22; border-radius: 6px;
    box-shadow: 0 0 0 2px #1a1009, 0 10px 28px rgba(0,0,0,.7), inset 0 0 40px rgba(0,0,0,.55);
    padding: 30px 24px 24px; margin-bottom: 0;
}
.monleo-feed-topbar::before, .monleo-feed-topbar::after {
    content: ""; position: absolute; top: 10px; width: 10px; height: 10px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #f1d98a, #8a6a1c); box-shadow: 0 1px 2px #000;
}
.monleo-feed-topbar::before { left: 12px; } .monleo-feed-topbar::after { right: 12px; }
.board-rope { position: absolute; top: -16px; width: 3px; height: 18px; background: #8a6a3a; }
.board-rope.rope-l { left: 14%; } .board-rope.rope-r { right: 14%; }
.monleo-feed-topbar .monleo-ink-badge { background: var(--mb-seal); border-color: #5b140f; color: #fbeac3; border-radius: 3px; letter-spacing: 2px; }
.monleo-feed-topbar .feed-main-title {
    font-family: 'Cormorant Garamond', serif; font-size: clamp(24px, 4.5vw, 36px); color: #fde68a;
    text-shadow: 0 2px 0 #000, 0 0 14px rgba(212,175,55,.4); letter-spacing: 1px; margin: 6px 0;
}
.monleo-feed-topbar .feed-sub-title { color: #cdb893; font-style: italic; }
.feed-action-wrap { margin-top: 12px; }
.monleo-feed-topbar .btn-toggle-form {
    background: linear-gradient(180deg, #c33a2c, var(--mb-seal)); color: #fbeac3 !important;
    border: 2px solid #5b140f; border-radius: 4px; letter-spacing: 1px;
    box-shadow: 0 4px 0 #5b140f, 0 8px 16px rgba(0,0,0,.5);
}
.monleo-feed-topbar .btn-toggle-form:hover { transform: translateY(2px); box-shadow: 0 2px 0 #5b140f; background: linear-gradient(180deg,#d84a3a,#b02d22); }

/* Khu dán cáo thị */
.monleo-feed-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px 22px;
    padding: 30px 22px 26px; margin-top: -2px; align-items: start;
    background:
        radial-gradient(ellipse at top, rgba(255,255,255,.04), transparent 60%),
        repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 14px),
        #1d130b;
    border: 3px solid #5a3d22; border-top: 0; border-radius: 0 0 6px 6px;
    box-shadow: inset 0 0 50px rgba(0,0,0,.7);
}
.monleo-feed-card {
    position: relative; width: 100%; color: var(--mb-ink);
    background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,.35), transparent 50%),
        linear-gradient(180deg, var(--mb-paper), var(--mb-paper-2));
    border: 1px solid #a88c57; border-radius: 3px; padding: 26px 18px 14px;
    box-shadow: 0 6px 14px rgba(0,0,0,.6), inset 0 0 26px rgba(120,80,20,.28);
    transform: rotate(var(--tilt, 0deg)); transition: transform .25s, box-shadow .25s;
}
.monleo-feed-card:nth-child(3n+1) { --tilt: -.8deg; }
.monleo-feed-card:nth-child(3n+2) { --tilt: .6deg; }
.monleo-feed-card:nth-child(3n)   { --tilt: -.3deg; }
.monleo-feed-card:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 14px 26px rgba(0,0,0,.75), 0 0 18px rgba(212,175,55,.25); border-color: var(--mb-gold); }
.card-nail {
    position: absolute; top: 8px; left: 50%; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #f6e3a1, #8a6a1c 70%); box-shadow: 0 2px 3px rgba(0,0,0,.6);
}
.monleo-feed-card .card-header { flex-wrap: wrap; gap: 8px; border-bottom: 1px dashed rgba(90,60,25,.45); padding-bottom: 8px; }
.monleo-feed-card .author-avatar img { width: 34px; height: 34px; border-color: #7a5a22; }
.monleo-feed-card .author-info .author-name { color: var(--mb-ink); }
.monleo-feed-card .author-info .post-time { color: #7a6544; }
.monleo-feed-card .card-category-pill {
    background: transparent; color: var(--mb-seal) !important; border: 2px solid var(--mb-seal); border-radius: 3px;
    font-weight: 800; letter-spacing: .5px; padding: 1px 8px; transform: rotate(-3deg);
    box-shadow: inset 0 0 0 1px rgba(163,40,31,.25);
}
.monleo-feed-card .card-title { font-family: 'Cormorant Garamond', serif; font-size: 19px; }
.monleo-feed-card .card-title a { color: #1d120a !important; }
.monleo-feed-card .card-title a:hover { color: var(--mb-seal) !important; }
.monleo-feed-card .card-excerpt { color: #4a3a26; }
.monleo-feed-card .card-media { border: 3px solid #f6ecd2; box-shadow: 0 2px 6px rgba(0,0,0,.45); border-radius: 2px; }
.monleo-feed-card .card-footer { border-top: 1px dashed rgba(90,60,25,.45); display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.monleo-feed-card .card-comments-link { color: #6b5532 !important; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.monleo-feed-card .card-comments-link:hover { color: var(--mb-seal) !important; }

/* ===== Cảm xúc gọn: 1 hàng icon + số ===== */
.monleo-reactions-wrapper {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px;
    padding: 8px 12px; margin: 18px 0;
}
.monleo-reactions-buttons { display: flex; flex-wrap: nowrap; gap: 4px; }
.monleo-reaction-btn { gap: 3px; padding: 3px 8px; min-height: 28px; line-height: 1; border-radius: 9999px; }
.monleo-reaction-btn .reaction-label { display: none; }
.monleo-reaction-btn .reaction-icon { font-size: 14px; }
.monleo-reaction-btn .reaction-count { font-size: 11px; min-width: 8px; text-align: center; }
.monleo-reaction-btn:hover { transform: translateY(-1px); }
.reactions-count-total { font-size: 11px; white-space: nowrap; color: #94A3B8; }
.card-footer .monleo-reactions-wrapper { margin: 0; padding: 0; flex: 1 1 auto; justify-content: flex-start; }
.card-footer .reactions-count-total { display: none; }
.monleo-feed-card .monleo-reaction-btn { background: rgba(90,60,25,.08); border-color: rgba(90,60,25,.3); color: #4a3a26; }
.monleo-feed-card .monleo-reaction-btn .reaction-count { color: #6b5532; }
.monleo-feed-card .monleo-reaction-btn:hover { background: rgba(163,40,31,.12); border-color: var(--mb-seal); }
.monleo-feed-card .monleo-reaction-btn.active { background: var(--mb-seal); border-color: #5b140f; box-shadow: none; }
.monleo-feed-card .monleo-reaction-btn.active .reaction-count { color: #fbeac3; }

/* Form đăng bài */
.monleo-submission-drawer { margin-bottom: 0; }
.monleo-submission-drawer .monleo-submission-box {
    margin: 0; border-radius: 0; border: 3px solid #5a3d22; border-top: 0; border-bottom: 0;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 14px), #1d130b;
}

@media (max-width: 640px) {
    .monleo-feed-grid { padding: 22px 12px 18px; gap: 22px 0; }
    .monleo-feed-card { --tilt: 0deg !important; }
    .monleo-feed-topbar { padding: 26px 14px 20px; }
    .monleo-feed-topbar .btn-toggle-form { width: 100%; }
    .monleo-reaction-btn { padding: 3px 6px; }
}

/* v1.1.1 — Ảnh đính kèm trong bài chi tiết: giữ nguyên tỉ lệ, không cắt/cố định chiều cao */
.monleo-post-image-gallery { padding: 14px; margin: 24px 0; }
.monleo-post-image-gallery .gallery-grid { align-items: start; gap: 12px; }
.monleo-post-image-gallery .gallery-grid.count-1 { grid-template-columns: 1fr; }
.monleo-post-image-gallery .gallery-grid.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.monleo-post-image-gallery .gallery-grid.count-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.monleo-post-image-gallery .gallery-item { height: auto; display: block; background: #05060a; line-height: 0; }
.monleo-post-image-gallery .gallery-item img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
@media (max-width: 640px) {
    .monleo-post-image-gallery .gallery-grid.count-2 { grid-template-columns: 1fr; }
}
