/* ================================
   Sidebar News Carousel (perfect)
   ================================ */

.gh-news-card {
  position: relative;
  isolation: isolate;
  /* ensures float-card overlays never sit above content */
}

/* Responsive square:
   - On desktop: 250px
   - On smaller widths: scales down with container */
.gh-news-carousel {
  width: min(250px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

/* Make inner and items fill the square viewport */
.gh-news-inner,
.gh-news-item {
  width: 100%;
  height: 100%;
}

/* Image always covers */
.gh-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Link should fill the slide */
.gh-news-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Subtle gradient overlay for readable caption (always consistent) */
.gh-news-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.05) 55%,
      rgba(0, 0, 0, 0) 75%);
  pointer-events: none;
}

/* Caption container (clean, modern) */
.gh-news-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  /* don’t block swipe/click */
}

.gh-news-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.15;
  margin-bottom: 0.15rem;
}

.gh-news-sub {
  font-size: 0.78rem;
  line-height: 1.2;
  opacity: 0.9;
}

/* ================================
   News carousel – dash indicators
   ================================ */

.gh-news-indicators {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.gh-news-indicators [data-bs-target] {
  width: 14px;
  height: 3px;
  border-radius: 2px;

  background-color: rgba(255, 255, 255, 0.35);
  border: none;

  transition:
    background-color 0.2s ease,
    width 0.2s ease,
    opacity 0.2s ease;

  opacity: 0.7;
}

/* Active dash */
.gh-news-indicators .active {
  width: 20px;
  background-color: white;
  opacity: 1;
}

/* Controls: subtle, always visible, not bulky */
.gh-news-control {
  width: 18%;
  z-index: 3;
  opacity: 0.85;
}

.gh-news-control:hover {
  opacity: 1;
}

/* Make control icons smaller/cleaner */
.gh-news-carousel .carousel-control-prev-icon,
.gh-news-carousel .carousel-control-next-icon {
  transform: scale(0.85);
}


/* ================================
   Premium fade tuning
   ================================ */

/* Make the fade smoother/longer */
.gh-news-carousel.carousel-fade .carousel-item {
  transition: opacity 0.65s ease-in-out;
}

/* Ensure no sliding transforms interfere */
.gh-news-carousel.carousel-fade .carousel-item-next,
.gh-news-carousel.carousel-fade .carousel-item-prev,
.gh-news-carousel.carousel-fade .carousel-item.active {
  transform: none !important;
}

/* Keep active slide above during crossfade */
.gh-news-carousel.carousel-fade .carousel-item {
  opacity: 0;
  z-index: 1;
}

.gh-news-carousel.carousel-fade .carousel-item.active {
  opacity: 1;
  z-index: 2;
}

/*****  */

.profile-comment-list {
  display: grid;
  gap: 0.75rem;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.profile-comment-item {
  padding: 0.75rem;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.profile-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
  flex: 0 0 32px;
}

.profile-comment-author {
  color: #ffdf00;
  font-weight: 600;
  text-decoration: none;
}

.profile-comment-author:hover {
  text-decoration: underline;
}

.profile-comment-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.profile-comment-body {
  margin-top: 0;
  color: #e9ecef;
  font-size: 0.92rem;
  line-height: 1.35;
  word-break: break-word;
}


.profile-comment-input {
  resize: none;
}

.profile-reputation-score {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.profile-reputation-meta {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
  font-size: 0.78rem;
}

.rep-up {
  color: #77dd77;
}

.rep-down {
  color: #ff7b7b;
}

.profile-comment-content-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.45rem;
}

.profile-comment-vote-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.95rem;
}

.profile-comment-vote-icon.is-up {
  color: #77dd77;
  background: rgba(119, 221, 119, 0.12);
}

.profile-comment-vote-icon.is-down {
  color: #ff7b7b;
  background: rgba(255, 123, 123, 0.12);
}


.profile-comment-vote-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.profile-comment-vote-option {
  cursor: pointer;
}

.profile-comment-vote-option input {
  display: none;
}

.profile-comment-vote-option span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: 0.2s ease;
}

.profile-comment-vote-option input:checked+span {
  border-color: #ffdf00;
  background: rgba(255, 223, 0, 0.12);
  color: #ffdf00;
}