/* ======================================================
   FEED ITEMS
====================================================== */
.feed { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }

.feed-item {
  background: var(--s1);
  padding: 7px 10px 7px 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease, transform 0.4s cubic-bezier(.34,1.56,.64,1);
  animation: slideInLeft 0.5s ease both;
  transform-style: preserve-3d;
}
.feed-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--o);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s ease;
}
.feed-item:hover::before,
.feed-item.on::before { transform: scaleY(1); }
.feed-item:hover { background: var(--s2); }
.feed-item.on { background: var(--s2); }

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
.feed-item:nth-child(1) { animation-delay: 0.1s; }
.feed-item:nth-child(2) { animation-delay: 0.17s; }
.feed-item:nth-child(3) { animation-delay: 0.24s; }
.feed-item:nth-child(4) { animation-delay: 0.31s; }
.feed-item:nth-child(5) { animation-delay: 0.38s; }
.feed-item:nth-child(6) { animation-delay: 0.45s; }
.feed-item:nth-child(7) { animation-delay: 0.52s; }
.feed-item:nth-child(8) { animation-delay: 0.59s; }
.feed-item:nth-child(9) { animation-delay: 0.66s; }

.feed-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.tag {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 5px;
  flex-shrink: 0;
  font-family: var(--m);
}
.tag.breaking { background: var(--og); color: var(--o); }
.tag.ai { background: var(--og); color: var(--o2); }
.tag.devops { background: var(--lg); color: var(--l); }
.tag.security { background: var(--rg); color: var(--r); }
.tag.vietnamese { background: var(--lg); color: var(--l); }
.tag.youtube { background: var(--rg); color: var(--r); }

.feed-title {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--t);
  flex: 1;
}
.feed-summary {
  font-size: 9px;
  color: var(--t2);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s ease, margin 0.3s ease;
  opacity: 0;
  margin-top: 0;
}
.feed-item.on .feed-summary {
  max-height: 60px;
  opacity: 1;
  margin-top: 5px;
}
.feed-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
.feed-time { font-family: var(--m); font-size: 8px; color: var(--t3); }
.feed-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--m);
  font-size: 8px;
  color: var(--t3);
}
.loc-dot { width: 4px; height: 4px; border-radius: 50%; }

/* Featured card — first/breaking article */
.feed-featured {
  padding:18px 22px;
  background:linear-gradient(135deg, rgba(232,87,58,0.08) 0%, var(--s1) 100%);
  border-left:3px solid var(--o);
  margin-bottom:2px;
  cursor:pointer;
  transition:all .3s;
  position:relative;
  overflow:hidden;
}
.feed-featured::before {
  content:'';
  position:absolute;
  top:0;right:0;
  width:120px;height:120px;
  background:radial-gradient(circle, rgba(232,87,58,0.06) 0%, transparent 70%);
  pointer-events:none;
}
.feed-featured:hover {
  background:linear-gradient(135deg, rgba(232,87,58,0.12) 0%, var(--s2) 100%);
}
.feed-featured .tag {
  font-size:8px;
  padding:3px 10px;
  animation:pulse-tag 2s infinite;
}
@keyframes pulse-tag {
  0%,100% { box-shadow:0 0 0 0 rgba(232,87,58,0.4); }
  50% { box-shadow:0 0 0 4px rgba(232,87,58,0); }
}
.feed-featured .feed-title {
  font-size:15px;
  font-weight:800;
  letter-spacing:-0.3px;
  margin-bottom:6px;
  line-height:1.3;
}
.feed-featured .feed-summary {
  display:block !important;
  opacity:1 !important;
  max-height:none !important;
  font-size:11px;
  color:var(--t2);
  line-height:1.5;
  margin-bottom:8px;
}
.feed-featured .feed-meta {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* Read state — item has been acknowledged */
.feed-item.read { opacity: 0.55; }
.feed-item.read::after {
  content: '✓';
  position: absolute;
  right: 8px;
  top: 8px;
  font-size: 9px;
  color: var(--l);
  font-weight: 700;
}
.feed-item.read:hover { opacity: 0.8; }
