/* === COMPONENTS: buttons, badges, pills, chips === */

.mh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-full);
  padding: 10px 24px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mh-btn:active {
  transform: scale(0.97);
}

.mh-btn--primary {
  background: #ffffff;
  color: #000000 !important;
  border: #bdbdbd 1px solid
  /* box-shadow: var(--shadow-primary); */
}

.mh-btn--primary:hover {
  /* background: var(--primary-dark); */
  border: #0761ac 1px solid;
  color: #0761ac !important;
}

.mh-btn--outline {
  background: #1e88c5;
  border-color: #0761ac;
  color: #ffffff !important;
}

.mh-btn--outline:hover {
  background: #0761ac;
  color: var(--primary);
}

.mh-chip,
.mh-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-800);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.mh-chip:hover,
.mh-pill:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.mh-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.mh-badge--good {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.mh-badge--sat {
  background: rgba(245, 158, 11, 0.15);
  color: #92400e;
}

.mh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* Feed compose card (LinkedIn-style) */
.feed-compose-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 18px 12px;
}

.feed-compose-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-compose-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #4f8cff 0%, #8b5e3c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-compose-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-compose-initials {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.feed-compose-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 18px;
  border: 1px solid #c8d8f0;
  border-radius: 999px;
  background: #f3f6f8;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.feed-compose-input:hover {
  background: #eef2f6;
  border-color: #b8c9e6;
  color: #4b5563;
}

button.feed-compose-input {
  appearance: none;
  -webkit-appearance: none;
}

.feed-compose-post-btn {
  flex-shrink: 0;
  height: 40px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: #1E88C5;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px -12px rgba(30, 136, 197, .7);
}

.feed-compose-post-btn:hover {
  background: #1976a8;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
}

button.feed-compose-post-btn {
  appearance: none;
  -webkit-appearance: none;
}

.feed-compose-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 14px 0 10px;
}

.feed-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0px;
  flex-wrap: wrap;
}

.feed-compose-action {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 6px;
  border-radius: 8px;
  color: #6c757d !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.feed-compose-action:hover {
  background: #e6f4f9;
  color: #1e88c5;
  text-decoration: none;
}

.feed-compose-icon {
  font-size: 18px;
  line-height: 1;
  color: #1e88c5;
}

.feed-compose-icon--photo{
  color: #549617;
}
.feed-compose-icon--video{
  color: #bb361e;
}
.feed-compose-icon--job{
  color: #1E88C5;
}
.feed-compose-icon--work{
  color: #bb361e;
}

.feed-compose-action:hover .feed-compose-icon {
  /* color: #1976a8; */
}

@media (max-width: 768px) {
  .feed-compose-top {
    flex-wrap: wrap;
  }

  .feed-compose-input {
    flex: 1 1 calc(100% - 60px);
  }

  .feed-compose-post-btn {
    margin-left: auto;
  }

  .feed-compose-actions {
    justify-content: flex-start;
  }

  .feed-compose-action {
    flex: 1 1 45%;
    justify-content: flex-start;
    padding-left: 4px;
  }
}

@media (max-width: 480px) {
  .feed-compose-action span {
    font-size: 12px;
  }

  .feed-compose-action {
    gap: 6px;
  }
}

/* Dashboard greeting card */
.dashboard-greet-card {
  position: relative;
  background: linear-gradient(120deg, #FFFFFF 0%, #F4F8FB 55%, #F7EEE9 100%);
  border-radius: 20px;
  border: 1px solid #e3eaf0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  padding: 28px 30px;
  overflow: hidden;
}

.dashboard-greet-card::before {
  content: '';
  position: absolute;
  right: -40px;
  top: 30px;
  transform: translateY(-50%);
  width: 180px;
  height: 180px;
  opacity: 0.22;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'%3E%3Cg stroke='%23b8c0cc' stroke-width='1.4'%3E%3Ccircle cx='100' cy='100' r='96'/%3E%3Ccircle cx='100' cy='100' r='66'/%3E%3Cpolygon points='100,8 122,78 192,78 136,120 158,190 100,148 42,190 64,120 8,78 78,78'/%3E%3Crect x='44' y='44' width='112' height='112' transform='rotate(45 100 100)'/%3E%3Crect x='44' y='44' width='112' height='112'/%3E%3Cpolygon points='100,34 166,100 100,166 34,100'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.dashboard-greet-content {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 28px);
}

.dashboard-greet-label {
  display: block;
  margin: 0 0 12px;
  font-family: "Inter", "Outfit", system-ui, sans-serif !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase !important;
  color: #9d362a;
  line-height: 1.2;
}

.dashboard-greet-heading {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
  font-weight: 700;
  font-style: normal;
  font-synthesis: none;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #000000 !important;
  text-transform: none !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.dashboard-greet-subtext {
  margin: 0;
  max-width: 92%;
  font-family: "Inter", "Outfit", system-ui, sans-serif !important;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.55;
  color: #666666 !important;
  text-transform: none !important;
}

.dashboard-greet-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #6b7280;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.dashboard-greet-close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #111827;
}

@media (max-width: 768px) {
  .dashboard-greet-card {
    padding: 24px 22px;
    border-radius: 18px;
  }

  .dashboard-greet-card::before {
    width: 140px;
    height: 140px;
    right: -18px;
    opacity: 0.16;
  }

  .dashboard-greet-subtext {
    max-width: 100%;
    font-size: 14px;
  }
}

/* Feed post card (LinkedIn-style) */
.feed-post-card.full-width {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  margin-bottom: 16px;
  overflow: hidden;
}

.feed-post-card.full-width:hover {
  transform: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.feed-post-header.feed-shared-author-dt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 0;
  border-bottom: none;
  position: relative;
  float: none;
  width: auto;
}

.feed-post-avatar-link {
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.feed-post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feed-post-avatar--initials {
  background: linear-gradient(135deg, #f97316 0%, #9333ea 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.feed-post-card .feed-post-author-info,
.feed-post-card .author-dts {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
}

.feed-post-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  line-height: 1.3;
}

.feed-post-name:hover {
  color: #0a66c2;
  text-decoration: underline;
}

.feed-post-meta.time-dt {
  margin: 2px 0 0;
  padding: 0;
  font-size: 12px;
  color: #a0abc0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.feed-post-meta-dot {
  color: #9ca3af;
}

.feed-post-meta i {
  font-size: 11px;
  margin-right: 2px;
}

.feed-post-card .post-ellipsis-options {
  position: absolute;
  top: 12px;
  right: 12px;
}

.feed-post-card .option-eps {
  color: #6b7280 !important;
  width: 34px;
  height: 34px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20%;
  background: transparent;
  text-decoration: none;
}

.feed-post-card .option-eps:hover {
  background: #f1f6fa;
  color: #111827 !important;
}

.feed-post-card .feed-post-body.post-meta {
  float: none;
  width: 100%;
  padding: 0;
}

.feed-post-card .feed-post-text.feed-shared-dt-1 {
  float: none;
  padding: 12px 16px 0;
}

.feed-post-card .feed-post-text p,
.feed-post-card .feed-post-text h5 {
  font-size: 15px;
  line-height: 1.5;
  color: #111827;
  margin: 0 0 12px;
  word-break: break-word;
}

.feed-post-card .feed-post-media {
  margin-top: 4px;
}

.feed-post-card .feed-post-media .image_preview {
  margin-bottom: 0 !important;
  border-radius: 0;
  width: 100%;
  object-fit: cover;
  cursor: pointer;
}

.feed-post-card .feed-post-media .post-media-single {
  max-height: min(520px, 70vh);
  display: block;
}

.feed-post-card .feed-post-media--audio {
  padding: 0 16px 12px;
}

.feed-post-card .feed-post-media--video video {
  width: 100%;
  display: block;
  max-height: min(520px, 70vh);
  background: #000;
}

.feed-post-stats.feed-shared-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid #e5e7eb;
  float: none;
  width: 100%;
}

.feed-post-stats-left,
.feed-post-stats-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
}

.feed-post-like-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #b3261e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  line-height: 1;
}

.feed-post-stat-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.feed-post-stat-btn:hover {
  color: #1e88c5;
  text-decoration: underline;
}

.feed-post-stat-muted {
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}

.feed-post-actions.feed-shared-social-actions {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 8px 8px;
  border-top: 1px solid #e5e7eb;
  float: none;
  width: 100%;
}

.feed-post-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1e88c5;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.feed-post-action-btn:hover {
  background: #e6f4f9;
  color: #1976a8;
  text-decoration: none;
}

.feed-post-action-btn i {
  font-size: 18px;
  line-height: 1;
  color: inherit;
}

.feed-post-action-btn.like-post.is-liked,
.feed-post-action-btn.like-post.is-liked i {
  color: #b3261e;
}

.feed-post-card .comment_wrapper {
  border-top: 1px solid #e5e7eb;
  padding: 12px 16px 16px;
  background: #ffffff;
}

/* Comment input + toolbar */
.post_comment_combo .feed-comment-input-wrap {
  width: 100%;
  margin: 0;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post_comment_combo .feed-comment-input-wrap:focus-within {
  border-color: #1e88c5;
  box-shadow: 0 0 0 1px #1e88c5;
}

.post_comment_combo .feed-comment-textarea {
  display: block;
  width: 100%;
  min-height: 38px;
  max-height: 120px;
  padding: 10px 14px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  resize: none;
  outline: none;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.45;
  color: #111827;
}

.post_comment_combo .feed-comment-textarea::placeholder {
  color: #6b7280;
}

.feed-comment-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 8px 8px 10px;
  margin: 0;
}

.feed-comment-tools {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.feed-comment-tool .img-add [type="file"] {
  display: none;
}

.post_comment_combo .feed-comment-tool .img-add label,
.post_comment_combo .feed-comment-mic,
.post_comment_combo .feed-comment-send.emoji-combo.submited-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1e88c5;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  float: none;
  box-shadow: none;
}

.post_comment_combo .feed-comment-tool .img-add label:hover,
.post_comment_combo .feed-comment-mic:hover,
.post_comment_combo .feed-comment-send.emoji-combo.submited-btn:hover:not(:disabled) {
  background: #e6f4f9 !important;
  color: #1976a8 !important;
  transform: none;
  box-shadow: none;
}

.post_comment_combo .feed-comment-mic[data-record="1"] {
  background: #fee2e2;
  color: #b22222;
}

.post_comment_combo .feed-comment-mic[data-record="2"] {
  background: #fef2f2;
  color: #dc2626;
}

.post_comment_combo .feed-comment-mic svg {
  display: block;
}

.post_comment_combo .feed-comment-send.emoji-combo.submited-btn {
  font-size: 14px;
}

.post_comment_combo .feed-comment-send.emoji-combo.submited-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.post_comment_combo .comment_option_footer.feed-comment-toolbar {
  padding: 6px 8px 8px 10px;
  margin-left: 0;
}

.post_comment_combo .feed-comment-input-wrap.post-base-1 {
  background: #ffffff;
  border-radius: 20px;
}

.post_comment_combo .feed-comment-textarea.comment-textarea {
  height: auto;
  min-height: 38px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

@media (max-width: 768px) {
  .feed-post-header.feed-shared-author-dt {
    padding: 14px 14px 0;
  }

  .feed-post-card .feed-post-text.feed-shared-dt-1,
  .feed-post-stats.feed-shared-result,
  .feed-post-card .comment_wrapper {
    padding-left: 14px;
    padding-right: 14px;
  }

  .feed-post-actions.feed-shared-social-actions {
    padding-left: 6px;
    padding-right: 6px;
  }

  .feed-post-action-btn span {
    font-size: 13px;
  }
}
