    /* =========================
   CREATE POST BOX
========================= */

.hw-create-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#hw-post-content, textarea#hw-comment-content {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    border: none;
    outline: none;
    font-family: inherit;
    background: transparent;
    font-weight: 400;
    font-size:14px;
    line-height:1.5;
    text-align: left;
    margin: 8px;
}

.hw-create-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

#hw-submit-post {
    background: #297c38;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#hw-submit-post:hover {
    background: #1f5e2a;
}

#hw-submit-post:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.hw-create-box:focus-within {
    border-color: #297c38;
    box-shadow: 0 0 0 3px rgba(41,124,56,0.15);
}

.hw-feed-wrapper {
    max-width:600px;
    margin:0px auto;
    padding:2px;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}

@media (min-width: 768px) {

    .hw-feed-wrapper {
        max-width: 640px;
        margin: 0 auto;
        border-left: 1px solid #f1f3f5;
        border-right: 1px solid #f1f3f5;
    }
}

#hw-feed-trigger{
    height:40px;
}

.hw-post-card {
    background: #ffffff;
    border-bottom: 1px solid #f1f3f5;
    padding: 12px 5px;
    margin: 0;
    border-radius: 4px;
    box-shadow:0 6px 18px rgba(0,0,0,.06);
}
/* Remove card shadow blog look */
.hw-post-card:not(:last-child) {
    margin-bottom: 0;
}

/* ===============================
   Post Header (App Style)
================================ */

.hw-post-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Avatar */
.hw-post-avatar img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.hw-post-avatar {
    flex-shrink: 0;
}

.hw-post-card {
    position: relative;
}

.hw-post-avatar img {
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e5e7eb;
}

/* Username */
.hw-username {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.hw-space {
    font-size:12px;
    color:#883ca6;
}

.hw-content, textarea#hw-comment-content {
    font-size:14px;
    line-height:1.5;
    color: #1f2937;
    text-align: left;
    margin: 8px;
    font-weight: 400;
}

.hw-hashtag {
    color: #297c38;
    font-weight: 600;
    text-decoration: none;
}

.hw-hashtag:hover {
    text-decoration: underline;
}

.hw-hashtags a {
    font-size:13px;
    color:#297c38;
    margin-right:6px;
    text-decoration:none;
}

.hw-actions {
    display:flex;
    gap:12px;
    font-size:11px;
     margin-top: 8px;
    color: #6b7280;
}

.hw-like-btn {
    cursor:pointer;
    color:#6b7280;
    transition: opacity 0.15s ease;
}
.hw-like-btn:hover {
    opacity: 0.7;
}

.hw-like-btn.liked {
    color:#e11d48;
}

/* ACTIONS WRAPPER */
.hw-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 12px;
}

/* EACH ACTION */
.hw-actions span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #883ca6; 
    transition: color 0.2s ease, transform 0.15s ease;
}

/* SVG ICON */
.hw-actions svg {
    display: block;
    width: 18px;
    height: 18px;
    transition: inherit;
}

/* Active (liked) */
.hw-like-btn.liked {
    color: #e11d48; /* rose */
}

/* LIKE ACTIVE STATE */
.hw-like-btn.liked {
    color: #e11d48; /* rose */
}

/* OPTIONAL subtle scale on hover */
.hw-actions span:hover svg {
    transform: scale(1.05);
}

.hw-guest-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #883ca6;
    text-decoration: none;
    font-weight: 600;
}

.hw-guest-action:hover {
    color: #6d2f84;
}

.hw-content-gate,
.hw-comments-gate {
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    background: #f8fafc;
}

.hw-content-gate p,
.hw-comments-gate p {
    margin: 0 0 10px;
    color: #4b5563;
    font-size: 13px;
}

.hw-content-gate__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

.hw-create-btn { display:none; }

.hw-mention {
    color: #297c38;
    font-weight: 600;
    text-decoration: none;
}
.hw-mention:hover {
    text-decoration: underline;
}

/* =========================
   CREATE POST BOX (WITH AVATAR)
========================= */

.hw-create-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f5;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hw-create-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.hw-create-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
       border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e5e7eb;
}

.hw-post-meta {
	font-size: 10px;
	color: #9ca3af;
	margin-top: 2px;
    text-align: left;
}

.hw-premium-badge {
    font-size: 12px;
    color: #8917b6;
    margin-left: 4px;
    /* outer glow */
  filter: drop-shadow(0 0 3px rgba(245, 255, 104, 0.8))
          drop-shadow(0 0 3px rgba(255, 242, 130, 0.6));
}

.hw-inline-follow {
    margin-left: auto;
}

.hw-follow-btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hw-follow-btn:hover {
    background: #f3f4f6;
}

.hw-create-content {
    flex: 1;
}

#hw-post-content {
    width: 100%;
    min-height: 70px;
    resize: none;
    border: none;
    outline: none;
    font-size: 14px;
    line-height: 1.4;
    font-family: inherit;
    background: #f8fafc !important;
    border-radius: 12px;
    border: 1px solid #7f209e29 !important;
}

#hw-post-content::placeholder {
    color: #9ca3af;
}

.hw-create-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

#hw-submit-post {
    background: #297c38;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#hw-submit-post:hover {
    background: #1f5e2a;
}

#hw-submit-post:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.hw-create-box:focus-within {
    border-color: #297c38;
    box-shadow: 0 0 0 3px rgba(41,124,56,0.15);
}

.hw-post-space {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.hw-post-space a {
    text-decoration: none;
    color: #883ca6;
}
.hw-post-space-inline {
    font-size: 11px;
    color: #6b7280;
    margin-left: 6px;
}
.hw-post-space-inline a {
    color: #883ca6;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #a113db1f;
    padding: 2px 6px;
    border-radius: 8px;
    background: #fcf3ff;
    margin-left: 5px;
}

.hw-notification-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.hw-notification-badge {
    display: inline-block;
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
}
/* Notifications Bell */
.hw-notification-wrapper {
    position: relative;
    cursor: pointer;
}

.hw-bell-icon svg {
    width: 20px;
    height: 20px;
    color: #883ca6; 
    transition: color .2s ease;
}

.hw-notification-wrapper.has-unread .hw-bell-icon svg {
    color: #7b13ac; /* active darker */
}

.hw-notification-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 6px;
    line-height: 1;
}

/* Feed Notifications */
.hw-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hw-notification-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    transition: background .2s ease;
    text-align: left;
}

.hw-notification-card.unread {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.hw-notification-card:hover {
    background: #f9fafb;
}

.hw-notification-card.read {
    opacity: .75;
}

.hw-notification-link {
    position: absolute;
    inset: 0;
}

/* ======================================================
   HW MEDIA SYSTEM (CLEAN VERSION)
====================================================== */

/* ===============================
   Composer Actions
================================ */

.hw-composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: -9px;
}

.hw-media-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hw-media-btn:hover {
    background: rgba(41, 124, 56, 0.08);
    border-color: #297c38;
}

button.hw-media-btn svg {
    fill: #883ca6;
}

.hw-post-btn, button.hw-comment-submit-btn {
    padding: 4px 14px;
    border-radius: 20px;
    border: none;
    background: #297c38;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hw-post-btn,button.hw-comment-submit-btn:hover {
    background: #1f5e2b;
}

/* ===============================
   Media Preview (Before Post)
================================ */

.hw-media-preview {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.hw-media-thumb img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

/* ===============================
   Post Media Layout
================================ */

.hw-post-media {
    margin-top: 12px;
    overflow: hidden;
}
.hw-media-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

/* Single image */
.hw-post-media.single-media {
    display: block;
}

/* Multiple images */
.hw-post-media.multi-media {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

/* Image behavior */
.hw-media-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    object-fit: contain; /* FULL image visible */
}

/* Vertical protection */
.hw-post-media.single-media img {
    max-height: 75vh;
}

/* Desktop refinement */
@media (min-width: 768px) {

    .hw-post-card {
        max-width: 640px;
        margin: 0 auto 20px auto;
    }

    .hw-media-item {
        overflow: hidden;
        border-radius: 14px;
    }

    .hw-media-item img {
        max-height: 600px;
        transition: transform 0.35s ease;
    }

    .hw-media-item:hover img {
        transform: scale(1.05);
    }
}

/* ===============================
   Lightbox
================================ */

.hw-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

.hw-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 14px;
}

/* ===============================
   Mention Dropdown
================================ */

.hw-mention-dropdown {
    position: absolute;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-top: -25px;
    width: 260px;
    max-height: 240px;
    overflow-y: auto;
    display: none;
    z-index: 999;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.hw-mention-item {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.hw-mention-item:hover {
    background: #f3f4f6;
}



/* ===============================
   COMMENTS UI (MATCHING CURRENT STRUCTURE)
================================ */

.hw-comment {
  margin-bottom: 0px;
  cursor: pointer;
}

.hw-comment-row {
    background: #ffffff;
    border-bottom: 1px solid #f1f3f5;
    padding: 8px 5px;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
  display: flex;
  gap: 7px;
}

.hw-comment-avatar img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e5e7eb;
}

.hw-comment-reply .hw-comment-avatar img {
  width: 26px;
  height: 26px;
}

.hw-comment-body {
  flex: 1;
}

.hw-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.hw-comment-username {
  font-weight: 600;
  color: #297c38;
  text-decoration: none;
  font-size: 11px;
}

.hw-comment-username:hover {
  text-decoration: underline;
}

.hw-comment-time {
  font-size: 10px;
  color: #9ca3af;
}

.hw-comment-content p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  text-align: left;
}


.hw-comment-actions {
  margin-top: 6px;
  display: flex;
  gap: 24px;
  font-size: 11px;
  color: #6b7280;
}

.hw-comment-actions span {
  cursor: pointer;
  transition: color .2s ease;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #883ca6;
}

.hw-comment-actions span:hover {
  color: #883ca6;
}

.hw-report-btn {
  font-size: 12px;
  font-weight: 600;
  color: #b45309 !important;
  cursor: pointer;
}

.hw-report-btn:hover {
  color: #92400e !important;
  text-decoration: underline;
}

.hw-comment-replies {
  margin-top: 14px;
  padding-left: 8px;
  border-left: 2px solid #f1f5f9;
}

/* ===============================
   HWCE — View Replies (link style)
================================ */

.hw-see-more-replies {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280; /* neutral gray */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.hw-see-more-replies:hover {
  color: #111827;
  text-decoration: underline;
}

.hw-see-more-replies:active {
  opacity: 0.7;
}

/* ===============================
   REPOST STYLE
================================ */
.hw-repost-wrapper{
    margin-top:10px;
}

.hw-repost-card{
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:12px;
    background:#fafafa;
}

.hw-repost-author{
    font-weight:600;
    font-size:13px;
    margin-bottom:6px;
}

.hw-repost-card{
    border:1px solid #e6e6e6;
    border-radius:12px;
    padding:12px;
    margin-top:8px;
    background:#fafafa;
}

.hw-repost-user{
    font-weight:600;
    font-size:13px;
    margin-bottom:4px;
}

.hw-repost-media img{
    width:100%;
    border-radius:10px;
    margin-top:8px;
}

/* ===============================
   GLOBAL MODAL
================================ */

.hw-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.hw-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hw-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hw-modal-box {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  padding: 20px;
  z-index: 2;
}

.hw-comment-textarea {
    outline: none;
}


/* Composer */
.hw-post-composer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

#hw-post-content {
  width: 100%;
  /* min-height: 120px; */
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  outline: none;
  margin: 0px;
}

#hw-post-content:focus {
  border-color: #883ca6;
  box-shadow: 0 0 0 2px rgba(136, 60, 166, 0.1);
}

.hw-primary-btn {
  align-self: flex-end;
  background: #883ca6;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
}

.hw-primary-btn:hover {
  background: #742f90;
}

/* ===============================
   REPOST PREVIEW BOX
================================ */

/* ===============================
   REPOST MODAL
================================ */

.hw-repost-modal{
    display:flex;
    flex-direction:column;
    gap:12px;
}

/* Title */

.hw-modal-title{
    font-size:16px;
    font-weight:600;
    margin:0;
}

/* Preview container */

#hw-repost-preview{
    border:1px solid #e5e7eb;
    border-radius:12px;
    background:#fafafa;
    padding:12px;
}

/* Preview card */

.hw-repost-card{
    display:flex;
    flex-direction:column;
    gap:6px;
}

/* Username */

.hw-repost-user{
    font-weight:600;
    font-size:13px;
    color:#111827;
}

/* Content */

.hw-repost-content{
    font-size:14px;
    color:#374151;
}

/* Textarea */

#hw-repost-content{
    width:100%;
    border:1px solid #e5e7eb;
    border-radius:10px;
    padding:10px;
    font-size:14px;
    resize:none;
    outline:none;
    transition:border .15s ease;
}

#hw-repost-content:focus{
    border-color:#10b981;
}

/* Modal actions */

.hw-modal-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:4px;
}

/* Cancel button */

.hw-btn{
    background:#f3f4f6;
    border:none;
    border-radius:8px;
    padding:8px 14px;
    font-size:14px;
    cursor:pointer;
}

/* Repost button */

.hw-primary-btn{
    background:#297c38;
    color:white;
    border:none;
    border-radius:8px;
    padding:8px 16px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
}

.hw-primary-btn:hover{
    background:#1f5e2b;
}

.hw-repost-op{
    margin-top:6px;
    font-size:13px;
}

.hw-repost-op a{
    color:#2563eb;
    text-decoration:none;
}

.hw-repost-op a:hover{
    text-decoration:underline;
}

/* Smooth ANIMATION */
.hw-post-card {
  animation: hwNewPost .25s ease;
}

@keyframes hwNewPost {
  from {
    opacity:0;
    transform:translateY(-6px);
  }
  to {
    opacity:1;
    transform:translateY(0);
  }
}
