@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--bg-dark, #0d1117);
  color: var(--text-primary, #e6edf3);
  scroll-behavior: smooth;
}

.feed-card {
  overflow: hidden;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 16px;
  margin: 20px auto;
  max-width: 650px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  width: 95%;
  margin-left: calc(50% - 47.5%);
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.feed-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--accent, #2f81f7);
}

.feed-meta {
  display: flex;
  flex-direction: column;
}

.feed-author {
  font-weight: 600;
  color: #e6edf3;
}

.tick-badge {
  font-size: 1rem;
  color: var(--accent, #2f81f7);
}

.feed-time {
  font-size: 0.8rem;
  color: #8b949e;
}

.feed-options {
  color: #8b949e;
  cursor: pointer;
  font-size: 1.2rem;
}

.feed-body p {
  margin: 0 0 12px;
  line-height: 1.5;
}

.feed-media img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #0d1117;
}

.feed-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #238636; 
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
}

.feed-download:hover {
  background: #2ea043;
}

.feed-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #30363d;
  padding-top: 10px;
}

/* Reactions UI */
.no-select, .no-select * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* prevent iOS long-press menu */
}

.reaction-btn {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  cursor: pointer;
  padding: .35rem .6rem;
  border-radius: 0.5rem;
  background: transparent;
  transition: background .15s ease;
}
.reaction-btn:hover { background: rgba(0,0,0,0.05); }
.reaction-btn.reacted { background: linear-gradient(90deg,#3b82f6,#6366f1); color: #fff; }

.reaction-popup {
  display: none; /* shown by JS */
  position: absolute;
  gap: .4rem;
  padding: .4rem;
  border-radius: .5rem;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  z-index: 999;
}
.reaction-popup .emoji {
  border: none;
  background: transparent;
  font-size: 1.2rem;
  padding: .25rem;
  cursor: pointer;
}

.reaction-stats {
  display: inline-block;
  margin-left: .8rem;
  font-size: .95rem;
  color: #333;
}
.reaction-stats .reaction-total {
  font-weight: 700;
  margin-right: .45rem;
}

.feed {
  position: relative;
  background: var(--color-surface);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 15px;
}

#load-more {
  background: #1f6feb;
  color: #fff;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 5px;
  margin: 20px auto;
  display: block;
}

.feed-text {
  white-space: pre-line;
  line-height: 1.5;
  color: #fff;
}
.see-more {
  color: #2f81f7;
  cursor: pointer;
  font-weight: 500;
}
