/* EBFK-PUBLIC - Opinion Section Styles (Dark Forest Green Environmental Theme) */

.opinion-view {
  min-height: 100dvh;
  color-scheme: dark;
  background: radial-gradient(ellipse at top left, #103817, #03140b 55%), #03140b;
  color: #f1ffe9;
}

.opinion-page {
  width: min(calc(100% - clamp(.75rem, 2.5vw, 2.5rem)), 1400px);
  max-width: 100%;
  margin-inline: auto;
  padding-block: .85rem 3rem;
  color: #f1ffe9;
}

/* Main Layout (Single Feed Stream) */
.opinion-main-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
}



/* Share Your Opinion Modal Dialog (Opens like auth/signup dialog) */
.opinion-composer-dialog {
  color-scheme: dark;
  width: min(calc(100% - 1.25rem), 620px);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: clamp(.9rem, 2vw, 1.4rem);
  border: 1px solid #366d42;
  border-left: 3px solid #78d519;
  border-radius: 1.15rem;
  background: radial-gradient(ellipse at top left, #0e3020, #061e13 72%, #04170e);
  box-shadow: 0 16px 45px #000c06f0, inset 0 0 1.2rem #56d62810;
  color: #f1ffe9;
  scrollbar-width: thin;
  scrollbar-color: #285436 transparent;
}

.opinion-composer-dialog::backdrop {
  background: #001408b0;
  backdrop-filter: blur(2px);
}

.composer-dialog-header {
  margin-bottom: 1.1rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid #1c4a2e;
  padding-right: 2rem;
}

.composer-dialog-title-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  margin-bottom: .25rem;
}

.composer-dialog-title-row h2 {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  font-size: 1.3rem;
  color: #c6ff71;
  font-weight: 850;
}

.composer-dialog-subtext {
  margin: 0;
  font-size: .84rem;
  color: #bed2c0;
  line-height: 1.35;
}

.city-lock-pill {
  font-size: .7rem;
  color: #aef653;
  background: #113824;
  border: 1px solid #2f6b3e;
  border-radius: 100px;
  padding: .15rem .55rem;
  font-weight: 700;
}

.city-filter-tag {
  font-size: .72rem;
  color: #aef653;
  font-weight: 700;
}

/* Selected Issue Preview */
.selected-issue-preview {
  margin-top: .6rem;
  padding: .6rem .75rem;
  border: 1px solid #2f6b3e;
  background: #09281a;
  border-radius: .65rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.selected-issue-preview[hidden] {
  display: none;
}

.preview-badges-row {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .74rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 100px;
}

.preview-badge.category {
  background: #174826;
  color: #c6ff71;
  border: 1px solid #366d42;
}

.preview-badge.location {
  background: #0f351f;
  color: #bed2c0;
  border: 1px solid #285436;
}

.preview-media-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-top: .35rem;
  border-top: 1px solid #1c4a2e;
}

.preview-media-row[hidden] {
  display: none;
}

.preview-media-row img {
  width: 52px;
  height: 38px;
  object-fit: cover;
  border-radius: .35rem;
  border: 1px solid #366d42;
}

.preview-media-text {
  font-size: .72rem;
  color: #8fa896;
}

.submit-opinion-action {
  width: 100%;
  justify-content: center;
  font-size: .92rem;
  padding: .55rem 1rem;
}

/* Right Main Content & Feed Stream */
.opinion-main-feed {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

/* Top Toolbar: Tabs & Filters */
.opinion-top-toolbar {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid #1c422c;
}

/* Single Column Opinion Cards Stream */
.opinion-feed-list.single-column-stream {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.opinion-feed-list.single-column-stream .opinion-card {
  width: 100%;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .76rem;
  font-weight: 600;
  color: #bed2c0;
  margin-bottom: .12rem;
}

.stat-label i {
  color: #aef653;
  width: 1em;
  height: 1em;
}

.stat-value {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 850;
  color: #aef653;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-subtext {
  font-size: .68rem;
  color: #8fa896;
  margin-top: .05rem;
}

/* Navigation Tabs Bar */
.opinion-tabs-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 1.2rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid #1c422c;
}

.opinion-tabs {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: .2rem 0;
  max-width: 100%;
}
.opinion-tabs::-webkit-scrollbar { display: none; }

.opinion-tab {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 40px;
  padding: .45rem 1rem;
  border: 1px solid #285436;
  border-radius: 100px;
  background: #082619;
  color: #bed2c0;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s;
}

.opinion-tab:hover {
  border-color: #56a563;
  background: #113824;
  color: #f1ffe9;
}

.opinion-tab[aria-selected="true"] {
  border-color: #aef653;
  background: #174826;
  color: #aef653;
  box-shadow: 0 0 .85rem #aef65330;
}

.opinion-tab i {
  width: 1.15em;
  height: 1.15em;
}

.tab-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.45em;
  height: 1.45em;
  padding: 0 .35em;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 800;
  background: #255837;
  color: #f1ffe9;
}

.opinion-tab[aria-selected="true"] .tab-badge {
  background: #aef653;
  color: #0d2708;
}

/* Search and Filters Toolbar */
.opinion-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.35rem;
}

.opinion-search-box {
  position: relative;
  flex: 1 1 240px;
  max-width: 380px;
}

.opinion-search-box i {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8fa896;
  pointer-events: none;
  width: 1.15em;
  height: 1.15em;
}

.opinion-search-box input {
  width: 100%;
  min-height: 42px;
  padding: .5rem 2.2rem .5rem 2.45rem;
  border: 1px solid #366d42;
  border-radius: 100px;
  background: #082619;
  color: #f1ffe9;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.opinion-search-box input:focus {
  border-color: #aef653;
  box-shadow: 0 0 .75rem #aef65325;
}

.opinion-search-clear {
  position: absolute;
  right: .65rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #8fa896;
  font-size: 1.25rem;
  line-height: 1;
  padding: .2rem .4rem;
  cursor: pointer;
}
.opinion-search-clear:hover { color: #f1ffe9; }

.opinion-filters-group {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  width: 100%;
}

.share-opinion-top-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  padding: .5rem 1.45rem;
  border-radius: 100px;
  font-size: .92rem;
  font-weight: 800;
  white-space: nowrap;
  background: var(--lime, #d1f586);
  color: #0b220d;
  border: 1px solid #c0ee6a;
  box-shadow: 0 4px 18px #aef65330;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.share-opinion-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px #aef65355;
}

.share-opinion-top-btn i {
  width: 1.15em;
  height: 1.15em;
}

@media (max-width: 820px) {
  .share-opinion-top-btn {
    width: 100%;
    margin-left: 0;
  }
}

.opinion-select {
  min-height: 40px;
  padding: .4rem .75rem;
  border: 1px solid #366d42;
  border-radius: .55rem;
  background: #082619;
  color: #f1ffe9;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}

.opinion-select:hover, .opinion-select:focus {
  border-color: #aef653;
}

.opinion-select option {
  background: #082619;
  color: #f1ffe9;
}

/* Create Opinion / Poll Card (Collapsible Composer) */
.opinion-composer {
  margin-bottom: 1rem;
  border: 1px solid #366d42;
  border-left: 3px solid #78d519;
  border-radius: .85rem;
  background: radial-gradient(ellipse at top left, #0e3020, #061e13 70%, #04170e);
  box-shadow: 0 4px 16px #000c0670, inset 0 0 .8rem #56d62810;
  overflow: hidden;
  transition: all .25s ease;
}

.composer-toggle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 1.15rem;
  cursor: pointer;
  background: #09281a;
  border-bottom: 1px solid transparent;
  user-select: none;
}

.composer-toggle-header:hover {
  background: #0e3522;
}

.composer-toggle-header h2 {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  font-size: .98rem;
  color: #c6ff71;
  font-weight: 800;
}

.composer-toggle-header h2 i {
  color: #aef653;
  width: 1.1em;
  height: 1.1em;
}

.composer-toggle-btn {
  display: flex;
  align-items: center;
  gap: .35rem;
  background: transparent;
  border: 1px solid #366d42;
  color: #bed2c0;
  padding: .25rem .65rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
}

.composer-body {
  padding: 1.25rem 1.35rem;
  border-top: 1px solid #1c4a2e;
}

.composer-body[hidden] {
  display: none;
}

.opinion-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.form-group {
  margin-bottom: .85rem;
}

.form-group label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .88rem;
  font-weight: 700;
  color: #bed2c0;
  margin-bottom: .35rem;
}

.char-counter {
  font-size: .78rem;
  color: #8fa896;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid #366d42;
  border-radius: .65rem;
  background: #082619;
  color: #f1ffe9;
  color-scheme: dark;
  font-size: .92rem;
  outline: none;
  transition: border-color .2s;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.4;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #aef653;
  box-shadow: 0 0 .5rem #aef65325;
}

.preset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .4rem;
}

.tag-btn {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .2rem .55rem;
  border: 1px solid #285436;
  border-radius: 100px;
  background: #092317;
  color: #bed2c0;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.tag-btn:hover {
  border-color: #63bf3c;
  color: #f1ffe9;
}

.tag-btn.active {
  background: #174826;
  border-color: #aef653;
  color: #aef653;
}

/* Image Upload Preview in Composer */
.image-upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 1rem;
  border: 1px dashed #366d42;
  border-radius: .75rem;
  background: #061910;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s;
}

.image-upload-zone:hover {
  border-color: #aef653;
}

.image-upload-zone i {
  color: #aef653;
  font-size: 1.6rem;
}

.image-upload-zone span {
  font-size: .85rem;
  color: #bed2c0;
  font-weight: 600;
}

.image-preview-wrapper {
  position: relative;
  margin-top: .55rem;
}

.image-preview-wrapper img {
  display: block;
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: .55rem;
  border: 1px solid #366d42;
}

.remove-img-btn {
  position: absolute;
  top: .35rem;
  right: .35rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #04140be8;
  border: 1px solid #aef653;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid #1c4a2e;
}

.composer-status {
  font-size: .88rem;
  color: #aef653;
  font-weight: 600;
}
.composer-status:empty { display: none; }
.composer-status.error { color: #ff9d99; }

/* Opinion Cards Feed — Single Stream Stack ("ik ik card dikhenge") */
.opinion-feed-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
}

.opinion-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border: 1px solid #163622;
  border-radius: 1.25rem;
  background: #06150b;
  box-shadow: 0 4px 20px #000c0670;
  transition: border-color .2s, box-shadow .2s;
  overflow: hidden;
}

.opinion-card:hover {
  border-color: #245836;
  box-shadow: 0 6px 24px #000c0699;
}

.opinion-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 1.25rem 1.5rem .5rem 1.5rem;
}

.opinion-author-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.opinion-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0d2f19;
  color: #aef653;
  border: 1px solid #1c522e;
  font-weight: 800;
  font-size: .9rem;
  flex: none;
  overflow: hidden;
}

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

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

.author-name-row {
  display: flex;
  align-items: baseline;
  gap: .45rem;
}

.author-name {
  font-size: .95rem;
  font-weight: 750;
  color: #f1ffe9;
}

.post-time {
  font-size: .8rem;
  color: #7b9983;
  font-weight: 400;
  margin-left: .35rem;
}

.opinion-card-header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.opinion-card-badges {
  display: flex;
  align-items: center;
  gap: .45rem;
}

/* Card Top-Right Three-Dots Menu */
.opinion-menu-container {
  position: relative;
  display: inline-block;
}

.opinion-more-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #1a4228;
  background: #082113;
  color: #8fa896;
  cursor: pointer;
  transition: all .2s;
  padding: 0;
}

.opinion-more-btn:hover,
.opinion-more-btn[aria-expanded="true"] {
  border-color: #aef653;
  background: #113824;
  color: #aef653;
  box-shadow: 0 0 10px #aef65325;
}

.opinion-more-btn i {
  width: 1.15em;
  height: 1.15em;
  pointer-events: none;
}

/* Dropdown Menu */
.opinion-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 185px;
  padding: .4rem;
  background: #061e13;
  border: 1px solid #366d42;
  border-radius: .75rem;
  box-shadow: 0 10px 28px #000c06cc, 0 0 0 1px #1a422a, inset 0 0 .75rem #56d6280d;
  animation: opinionDropdownFadeIn .15s ease;
}

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

.opinion-dropdown-menu[hidden] {
  display: none;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  padding: .5rem .75rem;
  border: none;
  border-radius: .45rem;
  background: transparent;
  color: #f1ffe9;
  font-size: .84rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: all .15s;
}

.dropdown-item i {
  width: 1.1em;
  height: 1.1em;
  color: #aef653;
}

.dropdown-item:hover {
  background: #113b24;
  color: #aef653;
}

.dropdown-item.danger {
  color: #ff9d99;
}

.dropdown-item.danger i {
  color: #ff6b66;
}

.dropdown-item.danger:hover {
  background: #3b1210;
  color: #ff8580;
}

.dropdown-divider {
  height: 1px;
  background: #1c4a2e;
  margin: .35rem 0;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .75rem;
  border-radius: 9999px;
  background: #092816;
  color: #7ee843;
  border: 1px solid #1a542e;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.category-chip i {
  width: 1em;
  height: 1em;
}

.trending-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .65rem;
  border-radius: 9999px;
  background: #2b1b04;
  color: #f59e22;
  border: 1px solid #784707;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.trending-chip i {
  color: #f59e22;
  width: 1em;
  height: 1em;
}

/* Opinion Card Content */
.opinion-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: .5rem 1.5rem .75rem 1.5rem;
}

.opinion-card-body.has-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 32%, 340px);
  gap: 1.5rem;
  align-items: start;
}

.opinion-card-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.opinion-card-media {
  min-width: 0;
  width: 100%;
  align-self: start;
}

.opinion-card-body h3,
.opinion-title {
  margin: 0 0 .45rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: #f4fbf4;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Description Collapse & Expand */
.opinion-desc-wrapper {
  position: relative;
  margin-bottom: .65rem;
}

.opinion-desc-text {
  margin: 0;
  color: #9cb3a2;
  line-height: 1.55;
  font-size: .92rem;
  white-space: pre-line;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.opinion-desc-wrapper:not(.is-expanded) .opinion-desc-text.clampable {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.opinion-desc-wrapper.is-expanded .opinion-desc-text.clampable {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.desc-toggle-btn {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: .25rem 0 0;
  color: #aef653;
  font-size: .88rem;
  font-weight: 750;
  cursor: pointer;
  outline: none;
  transition: color .2s, text-shadow .2s;
}

.desc-toggle-btn:hover {
  color: #d6ff88;
  text-decoration: underline;
}

.desc-toggle-btn:focus-visible {
  outline: 2px solid #aef653;
  outline-offset: 2px;
  border-radius: 2px;
}

.opinion-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .75rem;
  margin-bottom: 0;
}

.opinion-tag-pill {
  padding: .2rem .65rem;
  border-radius: 9999px;
  background: #082214;
  border: 1px solid #174226;
  color: #6ee738;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.opinion-image-preview {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #194427;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 185px;
  cursor: zoom-in;
  background: #05190e;
}

.opinion-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.opinion-image-preview:hover img {
  transform: scale(1.03);
}

@media (max-width: 720px) {
  .opinion-card-body.has-media {
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
  }
  .opinion-image-preview {
    max-height: 220px;
    aspect-ratio: 16 / 9;
  }
}

/* Opinion Engagement Bar */
.opinion-engagement-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .75rem 1.5rem 1.25rem 1.5rem;
  border-top: none;
  background: transparent;
  margin-top: auto;
}

.engagement-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.engage-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 34px;
  padding: .35rem .85rem;
  border: 1px solid #194227;
  border-radius: 8px;
  background: #071c10;
  color: #bed2c0;
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
  transition: all .2s;
}

.engage-btn:hover {
  border-color: #357248;
  background: #0e2a1b;
  color: #f1ffe9;
}

.engage-btn[aria-pressed="true"] {
  border-color: #7ee843;
  background: #11361e;
  color: #aef653;
  box-shadow: 0 0 .65rem #aef65325;
}

.engage-btn i {
  width: 1.1em;
  height: 1.1em;
}

.engage-count {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  margin-left: .15rem;
}

.report-btn {
  margin-inline-start: auto;
  color: #7b9983;
  border: none;
  background: transparent;
  padding: .35rem .5rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}
.report-btn:hover {
  color: #ff9d99;
  border-color: #8e2b27;
  background: #381211;
}

/* Comments Section (Drawer) */
.opinion-comments-drawer {
  border-top: 1px solid #1a422a;
  background: #05180f;
  padding: 1rem 1.25rem 1.25rem;
}

.opinion-comments-drawer[hidden] {
  display: none;
}

.comments-heading {
  font-size: .95rem;
  font-weight: 800;
  color: #c6ff71;
  margin: 0 0 .75rem;
}

.comment-input-row {
  display: flex;
  gap: .55rem;
  margin-bottom: 1rem;
}

.comment-input-row input {
  flex: 1;
  min-height: 38px;
  padding: .45rem .75rem;
  border: 1px solid #366d42;
  border-radius: .55rem;
  background: #082619;
  color: #f1ffe9;
  font-size: .9rem;
  outline: none;
}

.comment-input-row input:focus {
  border-color: #aef653;
  outline: none;
}

.comment-submit-btn {
  padding: .45rem 1rem;
  min-height: 38px;
  font-size: .88rem;
}

.comments-list {
  display: grid;
  gap: .65rem;
}

.comment-item {
  padding: .65rem .85rem;
  border: 1px solid #1e452e;
  border-radius: .65rem;
  background: #092317;
}

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

.comment-author-info {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.comment-author {
  font-size: .88rem;
  font-weight: 750;
  color: #f1ffe9;
}

.comment-time {
  font-size: .78rem;
  color: #8fa896;
}

.comment-text {
  margin: 0;
  color: #bed2c0;
  font-size: .9rem;
  line-height: 1.4;
}

.comment-reply-action {
  margin-top: .4rem;
}

.reply-btn {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .15rem .45rem;
  border: 0;
  background: transparent;
  color: #aef653;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}
.reply-btn:hover { text-decoration: underline; }

.reply-form {
  display: flex;
  gap: .45rem;
  margin-top: .45rem;
  padding-left: .85rem;
}
.reply-form[hidden] {
  display: none !important;
}

.reply-form input {
  flex: 1;
  padding: .35rem .6rem;
  border: 1px solid #366d42;
  border-radius: .45rem;
  background: #061910;
  color: #f1ffe9;
  font-size: .85rem;
  outline: none;
}

.reply-form input:focus {
  border-color: #aef653;
  outline: none;
}

.reply-form button {
  padding: .35rem .75rem;
  font-size: .82rem;
}

.replies-nested-list {
  margin-top: .55rem;
  padding-left: .85rem;
  border-left: 2px solid #234d34;
  display: grid;
  gap: .45rem;
}

.reply-item {
  padding: .45rem .65rem;
  border-radius: .45rem;
  background: #0c2b1c;
  border: 1px solid #1a422a;
}

/* Community Polls Section */
.polls-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.poll-composer-card {
  grid-column: 1 / -1;
  border: 1px solid #366d42;
  border-left: 3px solid #ffdc39;
  border-radius: 1.1rem;
  background: radial-gradient(ellipse at top left, #0e3020, #061e13 70%);
  padding: 1.2rem 1.4rem;
  box-shadow: 0 4px 18px #000c0680;
}

.poll-composer-card h2 {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .9rem;
  color: #ffd744;
  font-size: 1.15rem;
}

.poll-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #285436;
  border-left: 3px solid #ffd744;
  border-radius: 1.1rem;
  background: radial-gradient(ellipse at top left, #0d2d1d, #061e13 65%);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 18px #000c0680, inset 0 0 .8rem #ffd7440d;
}

.poll-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .65rem;
}

.poll-status-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .6rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 800;
}
.poll-status-chip.active {
  background: #113824;
  color: #aef653;
  border: 1px solid #2d6b43;
}
.poll-status-chip.closed {
  background: #332014;
  color: #ffad58;
  border: 1px solid #663e23;
}

.poll-question {
  margin: 0 0 .5rem;
  font-size: 1.2rem;
  color: #f1ffe9;
  line-height: 1.3;
}

.poll-desc {
  margin: 0 0 .85rem;
  color: #bed2c0;
  font-size: .92rem;
  line-height: 1.4;
}

.poll-options-list {
  display: grid;
  gap: .6rem;
  margin-bottom: 1rem;
}

.poll-option-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border: 1px solid #285436;
  border-radius: .65rem;
  background: #092518;
  cursor: pointer;
  overflow: hidden;
  transition: all .2s;
}

.poll-option-row:hover:not(.voted) {
  border-color: #aef653;
  background: #113622;
}

.poll-option-row.voted-choice {
  border-color: #aef653;
  box-shadow: 0 0 .7rem #aef65325;
}

.poll-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  background: linear-gradient(90deg, #184828, #2a6839);
  border-radius: .6rem 0 0 .6rem;
  z-index: 1;
  transition: width .6s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.poll-option-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: 700;
  font-size: .94rem;
}

.poll-meta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem;
  font-size: .85rem;
  color: #8fa896;
  margin-top: .65rem;
  padding-top: .65rem;
  border-top: 1px solid #1a422a;
}

/* Empty State */
.opinion-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed #366d42;
  border-radius: 1rem;
  background: #071f1440;
  margin-top: .5rem;
}

.opinion-empty-state i {
  width: 3rem;
  height: 3rem;
  color: #aef653;
  margin-bottom: .85rem;
}

.opinion-empty-state h3 {
  margin: 0 0 .35rem;
  font-size: 1.25rem;
  color: #f1ffe9;
}

.opinion-empty-state p {
  margin: 0 0 1rem;
  color: #bed2c0;
  font-size: .95rem;
}

/* Edit Opinion Modal */
#opinion-edit-dialog {
  color-scheme: dark;
  background: radial-gradient(ellipse at top, #0e3020, #051b11 85%);
  border: 1px solid #49932d;
  border-radius: 1.15rem;
  padding: 1.4rem 1.6rem;
  color: #f1ffe9;
  width: min(calc(100% - 1.5rem), 620px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 48px #000c06f0, 0 0 1.5rem #56d62820;
}

#opinion-edit-dialog::backdrop {
  background: #000c06b3;
  backdrop-filter: blur(4px);
}

#opinion-edit-dialog h2 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .35rem;
  font-size: 1.35rem;
  color: #f1ffe9;
}

#opinion-edit-dialog h2 i {
  color: #aef653;
}

.edit-dialog-subtext {
  font-size: .86rem;
  color: #bed2c0;
  margin: 0 0 1.1rem;
}

.edit-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}

@media (max-width: 540px) {
  .edit-form-row {
    grid-template-columns: 1fr;
  }
}

.edit-image-preview-box {
  margin-top: .4rem;
  border: 1px solid #366d42;
  border-radius: .65rem;
  overflow: hidden;
  background: #072014;
  padding: .5rem;
}

.edit-image-preview-box img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: .45rem;
  margin-bottom: .5rem;
}

.edit-image-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.small-pill {
  min-height: 30px !important;
  padding: .25rem .75rem !important;
  font-size: .78rem !important;
}

.small-pill.danger {
  border-color: #8e2b27;
  color: #ff9d99;
}

.small-pill.danger:hover {
  background: #381211;
  color: #ffb5b3;
}

.small-zone {
  padding: .65rem !important;
}

.edit-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: 1.25rem;
  padding-top: .9rem;
  border-top: 1px solid #1c4a2e;
}

/* Report Dialog */
#opinion-report-dialog {
  color-scheme: dark;
  background: radial-gradient(ellipse at top, #0e2f1f, #051b11 85%);
  border: 1px solid #49932d;
  border-radius: 1.15rem;
  color: #f1ffe9;
  width: min(calc(100% - 1.25rem), 480px);
  padding: 1.35rem;
  box-shadow: 0 16px 44px #001208bb;
}

#opinion-report-dialog h2 {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #ff9d99;
  font-size: 1.25rem;
  margin: 0 0 .65rem;
}

.report-reasons-list {
  display: grid;
  gap: .45rem;
  margin: .85rem 0 1.2rem;
}

.report-reason-option {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .75rem;
  border: 1px solid #285436;
  border-radius: .55rem;
  background: #082619;
  cursor: pointer;
  font-size: .9rem;
}
.report-reason-option:hover {
  background: #113824;
}

/* Notification Toast */
#opinion-toast {
  position: fixed;
  z-index: 1000;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.35rem;
  border-radius: 100px;
  background: #aef653;
  color: #0d2708;
  font-weight: 800;
  font-size: .92rem;
  box-shadow: 0 8px 24px #000c0690;
  transition: opacity .25s ease, transform .25s ease;
}

#opinion-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive Rules */
@media (max-width: 950px) {
  .opinion-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .opinion-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .opinion-feed-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .polls-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 650px) {
  .opinion-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
  }
  .opinion-tabs-container {
    flex-direction: column;
    align-items: stretch;
  }
  .opinion-tabs {
    width: 100%;
  }
  .opinion-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .opinion-search-box {
    max-width: 100%;
  }
  .opinion-filters-group {
    width: 100%;
  }
  .opinion-select,
  .opinion-filters-group .ebfk-custom-select {
    flex: 1 1 140px;
  }
  .opinion-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .opinion-card-badges {
    margin-top: .35rem;
  }
  .engagement-actions {
    width: 100%;
    justify-content: space-between;
  }
  .engage-btn span:not(.engage-count) {
    display: none;
  }
}
#shared-opinions-panel[hidden] { display: none; }
#shared-opinions-panel { display: none; }

.opinion-feed-footer-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1c422c;
  width: 100%;
}
#shared-opinions-sentinel { width: 100%; height: 1px; }
