/* Community Feeds Layout */
.hd-feeds-container {
  margin-top: var(--hd-spacing-lg);
}

.hd-feed-tabs-nav {
  max-width: 400px;
  margin: 0 auto var(--hd-spacing-xl) auto;
  display: flex;
  position: relative;
}

.hd-feed-tabs-nav .hd-popular-tab-btn {
  flex: 1;
  text-align: center;
  padding: 10px 0 !important;
  font-size: var(--hd-text-xs) !important;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
}

.hd-feed-tabs-nav #hd-feed-tab-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  background-color: var(--hd-primary);
  border-radius: var(--hd-radius-md);
  box-shadow: var(--hd-glow-primary);
  transition: transform var(--hd-duration-normal) var(--hd-ease-out), width var(--hd-duration-normal) var(--hd-ease-out);
  z-index: 1;
}

.hd-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--hd-spacing-lg);
}

.hd-feed-card {
  padding: 16px !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.hd-feed-card-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hd-feed-card-img-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  border-radius: var(--hd-radius-md);
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.02);
}

.hd-feed-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hd-feed-card:hover .hd-feed-card-img {
  transform: scale(1.06);
}

.hd-feed-card-date {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background-color: rgba(10, 12, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: var(--hd-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hd-feed-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding-top: 14px;
}

.hd-feed-card-title {
  font-family: var(--hd-font-display);
  font-size: var(--hd-text-sm);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--hd-duration-normal) var(--hd-ease-out);
}

.hd-feed-card:hover .hd-feed-card-title {
  color: var(--hd-primary);
}

.hd-feed-card-desc {
  font-size: var(--hd-text-xs);
  color: var(--hd-text-muted);
  line-height: 1.6;
  margin-bottom: var(--hd-spacing-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hd-feed-card-action {
  font-family: var(--hd-font-display);
  font-size: var(--hd-text-xs);
  font-weight: 800;
  color: var(--hd-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.hd-feed-card:hover .hd-feed-card-action {
  gap: 6px;
}

.hd-feed-panel {
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Skeleton Loaders */
.skeleton-card {
  pointer-events: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.skeleton-img {
  height: 170px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-radius: var(--hd-radius-md);
}

.skeleton-title {
  height: 16px;
  width: 75%;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--hd-radius-sm);
  margin-bottom: 12px;
}

.skeleton-desc {
  height: 48px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: var(--hd-radius-sm);
  margin-bottom: 16px;
}

.skeleton-action {
  height: 12px;
  width: 25%;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--hd-radius-sm);
  margin-top: auto;
}

.animate-pulse {
  animation: pulse-shimmer 1.6s infinite ease-in-out;
}

@keyframes pulse-shimmer {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.25;
  }
  100% {
    opacity: 0.5;
  }
}

