/* ================================================
   ⚡ Neoglass Trending Section (v2.7 FINAL – Bigger Thumbnails)
   ================================================ */
.ng-trending-wrap {
  padding: 10px 0 25px;
}

/* 🔘 Filter Buttons */
.ng-trending-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 10px 18px;
}

.btn-range {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ng-text);
  padding: 7px 10px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--ng-border);
  background: var(--ng-card);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.btn-range:hover {
  background: var(--ng-row);
}

.btn-range.active {
  background: var(--ng-accent);
  color: #000;
  border-color: var(--ng-accent);
  box-shadow: 0 0 8px var(--ng-accent);
}

/* 📜 Trending List */
.ng-trending-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 10px;
  transition: opacity 0.3s ease;
}

/* Item */
.ng-trending-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  background: var(--ng-card);
  border: 1px solid var(--ng-border);
  border-radius: 10px;
  padding: 10px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeInUp 0.3s ease forwards;
  opacity: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.ng-trending-item:hover {
  background: var(--ng-row);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Smooth animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 🖼 Thumbnail (✅ lebih besar & proporsional) */
.ng-trending-item .thumb {
  flex-shrink: 0;
  width: 95px;       /* sebelumnya 70px */
  height: 130px;     /* sebelumnya 95px */
  border-radius: 8px;
  overflow: hidden;
  background: #222;
  border: 1px solid var(--ng-border);
}

.ng-trending-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Info section */
.ng-trending-item .info {
  flex: 1;
  min-width: 0;
}

.ng-trending-item .info h3 {
  font-size: 1rem;
  color: var(--ng-text);
  margin: 0 0 3px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ng-trending-item .info .views {
  font-size: 0.85rem;
  color: var(--ng-muted);
}

/* Loading Text */
.loading {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ng-muted);
  padding: 10px 0;
}

/* 🪶 Responsive */
@media (max-width: 600px) {
  .btn-range {
    font-size: 0.8rem;
    padding: 6px;
  }
  .ng-trending-item {
    gap: 10px;
    padding: 8px;
  }
  .ng-trending-item .thumb {
    width: 80px;   /* sebelumnya 60px */
    height: 110px; /* sebelumnya 85px */
  }
  .ng-trending-item .info h3 {
    font-size: 0.9rem;
  }
}
