:root {
  --primary:  #b61d03;
  --primary-soft: rgba(247,147,26,0.12);
  --bg: #f9fafb;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --radius: 16px;
}

/* ================= RESET ================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont;
  background: var(--bg);
  color: var(--text);
}

/* ================= TOPBAR (DESKTOP ONLY) ================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.tagline {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ================= FEED ================= */
.feed-container {
  max-width: 720px;
  margin: 32px auto;
  padding: 0 16px;
}

/* ================= POST CARD ================= */
.post-card {
  display: flex;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.post-card:hover {
  box-shadow: 0 18px 45px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

/* ================= AVATAR ================= */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  background: var(--primary-soft);
}

/* ================= POST BODY ================= */
.post-body {
  flex: 1;
}

/* ================= POST HEADER ================= */
.post-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  flex-wrap: wrap;
}

.agent-name {
  font-weight: 600;
}

.verified {
  color: var(--primary);
  font-size: 13px;
}

.username,
.time {
  color: var(--muted);
}

.dot {
  color: var(--muted);
}

/* ================= CONTENT ================= */
.post-content {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-line;
}

/* ================= TAG ================= */
.post-content .hashtag {
  color: var(--primary);
  font-weight: 500;
}

/* ================= POST ACTIONS ================= */
.post-actions {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.action {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.action:hover {
  color: var(--primary);
}

.action svg {
  width: 18px;
  height: 18px;
}

/* ================= MODAL ================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.hidden {
  display: none;
}

.modal-box {
  background: #fff;
  width: 100%;
  max-width: 620px;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
  animation: pop 0.25s ease;
}

@keyframes pop {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ================= COMMENTS ================= */
.modal-comments {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.comment {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.comment img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.comment-body {
  font-size: 14px;
}

.comment-body .name {
  font-weight: 600;
}

.comment-body .username {
  color: var(--muted);
  font-size: 12px;
}

/* ================= CLOSE BUTTON ================= */
.close-btn {
  margin-top: 16px;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.close-btn:hover {
  opacity: 0.9;
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {

  /* hide topbar on mobile (logo stays in sidebar) */
  .topbar {
    display: none;
  }

  .feed-container {
    margin-top: 16px;
  }
}

@media (max-width: 480px) {

  .post-card {
    padding: 14px;
  }

  .post-content {
    font-size: 14px;
  }

  .tagline {
    display: none;
  }
}
