/* Help Madhes - Social Interactions Design System (Likes, Comments, Shares) */
.hm-social-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e2e8f0;
    padding: 0.65rem 0.85rem;
    background: #ffffff;
    gap: 0.5rem;
    font-size: 0.84rem;
}

.hm-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 5px 12px;
    color: #475569;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    font-size: 0.82rem;
}

.hm-social-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: translateY(-1px);
}

.hm-social-btn:active {
    transform: scale(0.95);
}

/* Like Active State */
.hm-social-like.active {
    color: #e11d48;
    background: #ffe4e6;
    border-color: #fecdd3;
}

.hm-social-like.active .hm-icon {
    transform: scale(1.2);
    display: inline-block;
    animation: hmHeartPop 0.3s ease;
}

@keyframes hmHeartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1.2); }
}

/* Comment State */
.hm-social-comment:hover {
    color: #0284c7;
    background: #e0f2fe;
}

/* Share State */
.hm-social-share:hover {
    color: #16a34a;
    background: #dcfce7;
}

/* Comments Section Container */
.hm-comments-drawer {
    display: none;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 1rem;
    animation: hmFadeSlide 0.25s ease;
}

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

.hm-comments-list {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    padding-right: 4px;
}

.hm-comments-list::-webkit-scrollbar {
    width: 4px;
}
.hm-comments-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.hm-comment-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    font-size: 0.82rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.hm-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.hm-comment-author {
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hm-comment-time {
    font-size: 0.72rem;
    color: #94a3b8;
}

.hm-comment-body {
    color: #334155;
    line-height: 1.45;
    word-break: break-word;
}

/* Add Comment Form */
.hm-comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.6rem;
}

.hm-comment-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.hm-comment-input:focus {
    border-color: #0B3D91;
    box-shadow: 0 0 0 2px rgba(11, 61, 145, 0.1);
}

.hm-comment-submit {
    align-self: flex-end;
    background: #0B3D91;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.hm-comment-submit:hover {
    background: #1e40af;
}

/* Share Dropdown / Modal */
.hm-share-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.hm-share-box {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: hmScaleIn 0.2s ease;
}

@keyframes hmScaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.hm-share-header {
    background: #0a1931;
    color: #ffffff;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hm-share-options {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hm-share-opt-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.hm-share-opt-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}
