/* ===== Buttons ===== */

.community-group-btn.is-subscribed {
  background: #eee;
  color: #333;
}

.community-group-btn.is-subscribed:hover {
  background: #c0392b;
  color: #fff;
}

/* ===== Shared Card Styles ===== */

#academy-community-post-form,
.v186-feed-card,
.v186-group-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* ===== Facebook-style Feed ===== */

#academy-community-feed {
  max-width: 760px;
}

#academy-community-post-form {
  padding: 14px;
  margin-bottom: 16px;
}

#academy-community-post-form select,
#academy-community-post-form textarea,
.v186-reply-form textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
}

#academy-community-post-form textarea {
  margin-top: 10px;
  min-height: 90px;
  resize: vertical;
}

#academy-community-post-form button,
.v186-reply-btn {
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.v186-feed-card {
  padding: 14px;
  margin-bottom: 14px;
}

.v186-feed-header,
.v186-author-row,
.v186-comment-top,
.v186-reply-form {
  display: flex;
  gap: 10px;
}

.v186-feed-header {
  align-items: center;
  margin-bottom: 10px;
}

.v186-meta {
  flex: 1;
}

.v186-author {
  font-weight: 800;
}

.v186-group {
  font-weight: 600;
  opacity: .8;
}

.v186-dot {
  opacity: .4;
}

.v186-submeta {
  margin-top: 2px;
  font-size: 12px;
  opacity: .7;
}

.v186-feed-body {
  font-size: 15px;
  line-height: 1.45;
  margin: 8px 0 10px;
}

.v186-feed-body p {
  margin-bottom: 10px;
}

.v186-feed-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 10px;
  margin-top: 6px;
}

.v186-action {
  flex: 1;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

.v186-action:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ===== Comments ===== */

.v186-comments-wrap {
  margin-top: 10px;
}

.v186-comments {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}

.v186-comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.v186-comment-bubble {
  flex: 1;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 10px 12px;
}

.v186-comment-date {
  font-size: 12px;
  opacity: .65;
  white-space: nowrap;
}

.v186-comment-content p {
  margin: 0;
}

/* ===== Avatars ===== */

.v186-avatar-img,
.v186-comment-avatar-img {
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.04);
  flex: 0 0 auto;
}

.v186-avatar-img {
  width: 44px;
  height: 44px;
}

.v186-comment-avatar-img {
  width: 34px;
  height: 34px;
}

/* ===== Community Groups ===== */

.community-groups-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: {{dc:global:color id="aTeUsjxBf7rTkxOQee"}};
}

.v186-groups-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v186-group-card {
  padding: 14px;
  border-left: 5px solid var(--group-colour, #1b74e4);
}

.v186-group-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.v186-group-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.12);
  flex: 0 0 auto;
}

.v186-group-thumb--placeholder {
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
  background: rgba(0,0,0,.05);
  color: #333;
}

.v186-group-text {
  flex: 1;
  min-width: 0;
}

.v186-group-title {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 4px;
  color: var(--group-colour, #1b74e4);
}

.v186-group-desc {
  font-size: 13px;
  opacity: .75;
}

.v186-group-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 10px;
}

.v186-group-members {
  font-size: 13px;
  opacity: .7;
}

/* ===== Group Buttons ===== */

.v186-group-btn {
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(0,0,0,.04);
}

.v186-group-btn.is-subscribe {
  background: #1b74e4;
  color: #fff;
  border-color: #1b74e4;
}

.v186-group-btn.is-subscribe:hover {
  background: #155bb5;
}

.v186-group-btn.is-subscribed {
  background: rgba(0,0,0,.04);
}

.v186-group-btn.is-subscribed:hover {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}

.v186-group-link { text-decoration: none; color: inherit; }
.v186-group-link:hover { text-decoration: underline; }

.v186-group-page {
  max-width: 900px;
}

.v186-group-page-header {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
  overflow: hidden;
  margin-bottom: 14px;
}

.v186-group-page-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.v186-group-page-cover--placeholder {
  background: linear-gradient(90deg, rgba(0,0,0,.04), rgba(0,0,0,.08));
}

.v186-group-page-headline {
  padding: 14px;
  border-top: 4px solid var(--group-colour, #1b74e4);
}

.v186-group-page-title {
  margin: 0 0 6px 0;
  font-weight: 900;
}

.v186-group-page-desc {
  opacity: .75;
  margin-bottom: 10px;
}

.v186-group-page-gate {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

.v186-group-composer {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
  margin-bottom: 14px;
}


.v186-group-post-restricted {
  background: rgba(0,0,0,.04);
  border: 1px dashed rgba(0,0,0,.2);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  opacity: .8;
}

.community-feed-message em {
  opacity: .7;
}


/* ===== Reactions ===== */

.v186-reactions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  position: relative;
}

.v186-like-btn {
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.03);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
}

.v186-like-btn:hover {
  background: rgba(0,0,0,.08);
}

.v186-emoji-palette {
  display: none;
  gap: 6px;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.v186-emoji-palette button {
  background: none;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.v186-emoji-palette button:hover {
  transform: scale(1.2);
}

/* Show palette on hover (desktop) */
.v186-reactions:hover .v186-emoji-palette {
  display: flex;
}


.v186-reaction-counts {
  display: flex;
  gap: 6px;
  margin-left: 6px;
}

.v186-reaction-pill {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
}

.v186-like-btn.is-active {
  background: rgba(27,116,228,.15);
  border-color: #1b74e4;
}


.v186-post-media {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.v186-post-media img {
  max-width: 100%;
  border-radius: 12px;
  display: block;
}

.v186-post-media video {
  max-width: 100%;
  border-radius: 12px;
}

.v186-group-link {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.v186-group-link:hover {
  text-decoration: underline;
}

.v186-author,
.community-reply-author {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.v186-author:hover,
.community-reply-author:hover {
  text-decoration: underline;
}

.community-reply-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.community-reply-sep {
  opacity: .6;
}


/* ===== Media Upload Button ===== */

.v186-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.v186-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.15);
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  transition: background .15s ease, border-color .15s ease;
}

.v186-upload-btn:hover {
  background: rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.25);
}

.v186-upload-icon {
  font-size: 16px;
  line-height: 1;
}

.v186-upload-text {
  font-weight: 600;
}

.v186-upload-count {
  font-size: 13px;
  opacity: .7;
}
