/* ===========================
   TIMELINE / FEED PAGE
   =========================== */

/* Page Header */
.feed-page-header {
  padding: 140px 0 60px;
  text-align: center;
}
.feed-header-inner .section-badge { margin-bottom: 20px; }
.feed-header-inner h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 16px;
}
.feed-header-inner p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Filters Bar */
.feed-filters-bar {
  position: sticky;
  top: 65px;
  z-index: 50;
  background: rgba(10, 12, 20, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 0;
}
.feed-filters-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.feed-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn img { width: 15px; height: 15px; object-fit: contain; }
.filter-btn svg { flex-shrink: 0; }
.filter-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}
.filter-btn.active {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.35);
  color: var(--brand);
}
.feed-count {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 500;
}

/* Feed Grid */
.feed-section { padding: 48px 0 100px; }
.feed-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 660px;
  margin: 0 auto;
}

/* Post Card */
.post-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.post-card:hover {
  border-color: rgba(0, 212, 255, 0.18);
  box-shadow: 0 8px 36px rgba(0, 212, 255, 0.06);
}

/* Card Header */
.post-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.post-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid;
}
.post-platform-badge img { width: 14px; height: 14px; object-fit: contain; }
.post-platform-badge.youtube  { background: rgba(255,68,68,0.1);   border-color: rgba(255,68,68,0.3);   color: #FF4444; }
.post-platform-badge.tiktok   { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); color: var(--text); }
.post-platform-badge.instagram{ background: rgba(225,48,108,0.1);  border-color: rgba(225,48,108,0.3);  color: #E1306C; }

.post-date { font-size: 0.8rem; color: var(--muted); font-weight: 500; }

/* ── Embed Wrappers ────────────────────────────── */
.embed-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  margin-bottom: 16px;
}

/* YouTube — 16:9 */
.embed-landscape {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.embed-landscape iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* TikTok — vertical */
.embed-portrait {
  width: 325px;
  height: 735px;
  margin-inline: auto;
  background: transparent;
}
.embed-portrait iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Instagram — carré */
.embed-social {
  height: 580px;
  background: transparent;
}
.embed-social iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Caption */
.post-caption {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Card Footer */
.post-card-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.post-original-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  transition: gap 0.2s ease;
  text-decoration: none;
}
.post-original-link:hover { gap: 9px; }
.post-original-link svg { opacity: 0.7; }

/* Loading */
.feed-loading {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.feed-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty State */
.feed-empty { text-align: center; padding: 80px 0; color: var(--muted); }
.feed-empty h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .feed-page-header { padding: 110px 0 40px; }
  .feed-header-inner h1 { font-size: 2rem; }
  .feed-filters-container { flex-direction: column; align-items: flex-start; gap: 10px; }
  .embed-portrait { width: 100%; height: 600px; }
  .embed-social { height: 480px; }
}
