/* ==========================================
   Post Card (Feed)
   ========================================== */
.feed {
  padding: var(--space-lg) 0;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.feed-filters {
  display: flex;
  gap: var(--space-sm);
}

.feed-filter {
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-gray);
  transition: all var(--transition-fast);
}

.feed-filter:hover, .feed-filter.active {
  border-color: var(--primary-green);
  color: var(--primary-green);
  background: rgba(66, 129, 119, 0.05);
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
}

.post-user {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary-green-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  overflow: hidden;
}

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

.post-meta {
  display: flex;
  flex-direction: column;
}

.post-username {
  font-weight: 600;
  color: var(--dark-gray);
}

.post-location {
  font-size: 0.8rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-location svg {
  width: 12px;
  height: 12px;
}

.post-time {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.post-more {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  transition: all var(--transition-fast);
}

.post-more:hover {
  background: var(--light-gray);
}

.post-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--light-gray);
  overflow: hidden;
  position: relative;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-media-layer {
  width: 100%;
  height: 100%;
  position: relative;
}

.product-media-slider {
  position: relative;
}

.product-media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: rgba(8, 53, 48, 0.82);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.product-media-nav.prev {
  right: var(--space-sm);
}

.product-media-nav.next {
  left: var(--space-sm);
}

.product-media-slider:hover .product-media-nav,
.product-detail-media .product-media-nav {
  opacity: 1;
  pointer-events: auto;
}

.product-media-dots {
  position: absolute;
  right: 50%;
  bottom: var(--space-sm);
  transform: translateX(50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 4;
}

.product-media-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.55);
  transition: all var(--transition-fast);
}

.product-media-dot.active {
  width: 20px;
  background: var(--white);
}

.product-media-type {
  position: absolute;
  left: var(--space-sm);
  bottom: var(--space-sm);
  background: rgba(0, 0, 0, 0.65);
  color: var(--white);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  z-index: 2;
}

.post-content {
  padding: var(--space-md);
}

.post-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: var(--space-xs);
}

.post-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: var(--space-sm);
}

.post-description {
  color: var(--medium-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.post-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.post-tag {
  padding: var(--space-xs) var(--space-sm);
  background: var(--off-white);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-gray);
}

.post-tag-link,
.detail-category-link {
  text-decoration: none;
  transition: all var(--transition-fast);
}

.post-tag-link:hover,
.detail-category-link:hover {
  color: var(--primary-green);
  background: rgba(0, 107, 94, 0.08);
}

.detail-category-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 107, 94, 0.06);
  color: var(--primary-green);
  font-size: 0.92rem;
  font-weight: 700;
}

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border-top: 1px solid var(--light-gray);
}

.post-actions-left {
  display: flex;
  gap: var(--space-lg);
}

.post-action {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-gray);
  font-size: 0.9rem;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.post-action:hover {
  background: var(--off-white);
}

.post-action.liked {
  color: var(--accent-red);
}

.post-action.liked svg {
  fill: var(--accent-red);
}

.post-action svg {
  width: 20px;
  height: 20px;
  transition: fill 0.18s ease, color 0.18s ease;
}

