:root {
  --bg: #000000;
  --surface: #000000;
  --border: #2f3336;
  --text: #ffffff;
  --muted: #71767b;
  --blue: #1d9bf0;
  --max-width: 600px;
  --white-border: rgba(255,255,255,0.9);
  --summary-grad: linear-gradient(135deg, #1d9bf0 0%, #5ab8ff 55%, #8fd0ff 100%);
  --like: #f91880;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo {
  height: 100%;
  width: auto;
  display: block;
}

main {
  flex: 1;
  width: 100%;
}

.feed-wrap {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-height: calc(100vh - 140px);
}

.composer-placeholder {
  padding: 12px 16px; /* smaller = less height */
  border-bottom: 1px solid var(--border);
}

.composer-title {
  font-weight: 700;
}

.composer-text {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-stack {
  display: flex;
  flex-direction: column;
}

.feed-item {
  padding: 22px;
  border-bottom: 1px solid var(--border);
}

.feed-item.placeholder {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
}

.page-spacer {
  height: 80px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #000;
  border-top: 1px solid var(--border);
  padding: 10px;
}

.bottom-nav-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.8rem;
  text-decoration: none;
}

.nav-item i {
  font-size: 1.4rem;
  color: var(--blue);
}

.nav-item.active span,
.nav-item.active i {
  color: var(--blue);
}

.post {
  background: #000000;
  border: 1px solid var(--white-border);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset;
}

.post-layout {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  overflow: hidden;
  background: #111214;
  border: 1px solid #202327;
  flex-shrink: 0;
}

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

.content {
  min-width: 0;
}

.name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
  line-height: 1.2;
}

.name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f7f9f9;
}

.verified {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verified svg {
  width: 18px;
  height: 18px;
  display: block;
}

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.25;
}

.dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}

.headline {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f7f9f9;
}

.summary-box {
  background: var(--summary-grad);
  border-radius: 18px;
  padding: 14px 14px 12px;
  margin-bottom: 14px;
}

.summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.magic-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.summary-list li {
  position: relative;
  padding-left: 16px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0a84ff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.16);
}

.media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0b0c0f;
}

.media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.actions {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 12px;
  margin-top: 10px;
}

.action-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  transition: color 0.18s ease, transform 0.18s ease;
}

.action-btn:hover {
  transform: translateY(-1px);
}

.action-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-btn span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.action-btn.like.active {
  color: var(--like);
}

.action-btn.like.active svg {
  fill: currentColor;
  stroke: currentColor;
}

.action-btn.dislike.active {
  color: var(--blue);
}

@media (max-width: 640px) {
  .feed-wrap {
    border-left: 0;
    border-right: 0;
  }

  .post {
    border-radius: 20px;
    padding: 14px;
  }

  .headline {
    font-size: 18px;
  }

  .media img {
    height: 250px;
  }
}
.article-post {
  transition: transform 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.article-summary-trigger {
  list-style: none;
  cursor: pointer;
}

.article-summary-trigger::-webkit-details-marker {
  display: none;
}

.article-post:hover {
  transform: translateY(-2px);
}

.article-post[open] {
  transform: scale(1.02);
  padding: 20px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 16px 40px rgba(0,0,0,0.45);
}

.meta-tags {
  gap: 10px;
  margin-bottom: 14px;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #ffffff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.summary-box-full,
.article-image,
.full-description-box {
  margin-left: -16px;
  margin-right: -16px;
  width: calc(100% + 32px);
}

.summary-box-full {
  border-radius: 18px;
  padding: 20px 18px 18px;
  margin-bottom: 12px;
  overflow: hidden;
}

.article-image {
  margin-top: 0;
  margin-bottom: 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

.article-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.full-description-box {
  display: none;
  background: linear-gradient(135deg, #ff7a59 0%, #ff5ea8 100%);
  border-radius: 18px;
  padding: 22px 18px;
  margin-top: 4px;
  margin-bottom: 14px;
  color: #ffffff;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
}

.full-description-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.full-description-title::before {
  content: "✨";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.full-description-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #ffffff;
}

.article-post[open] .article-image {
  display: none;
}

.article-post[open] .full-description-box {
  display: block;
}

@media (max-width: 640px) {
  .summary-box-full,
  .article-image,
  .full-description-box {
    margin-left: -14px;
    margin-right: -14px;
    width: calc(100% + 28px);
  }

  .article-image img {
    height: 300px;
  }

  .meta-tag {
    font-size: 11px;
    padding: 6px 10px;
  }
}
.action-btn svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;   /* makes icons bold/solid */
  stroke: none;         /* removes outline style */
}

.action-btn {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.action-btn.like:hover {
  color: #f91880;
}

.action-btn.dislike:hover {
  color: var(--blue);
}
.action-btn {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.action-btn svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;   /* solid bold icons */
}

/* Hover effects (Twitter style) */
.action-btn.like:hover {
  color: #f91880;
}

.action-btn.dislike:hover {
  color: var(--blue);
}

/* Active states (when clicked) */
.action-btn.like.active {
  color: #f91880;
}

.action-btn.dislike.active {
  color: var(--blue);
}
.fouru-load-more-btn {
    display: block;
    margin: 24px auto;
    padding: 12px 20px;

    background: #1d9bf0; /* Twitter-style blue */
    color: #000; /* black text */

    border: none;
    border-radius: 9999px; /* fully rounded pill */

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}

/* Hover */
.fouru-load-more-btn:hover {
    background: #1a8cd8;
}

/* Click feel */
.fouru-load-more-btn:active {
    transform: scale(0.97);
}

/* Disabled (loading state) */
.fouru-load-more-btn:disabled {
    background: #8ecdf8;
    color: #333;
    cursor: not-allowed;
    transform: none;
}
.fouru-feed-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0 10px 0;
    padding: 0 4px;
}

.fouru-feed-topbar-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.fouru-refresh-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 9999px;
    background: #1d9bf0;
    color: #000;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.fouru-refresh-btn:hover {
    background: #1a8cd8;
}

.fouru-refresh-btn:active {
    transform: scale(0.96);
}

.fouru-refresh-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fouru-refresh-btn.is-spinning {
    animation: fouruSpin 0.8s linear infinite;
}

.fouru-pull-indicator {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1d9bf0;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-bottom: 10px;
    pointer-events: none;
}

.fouru-pull-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.fouru-load-more-btn {
    display: block;
    margin: 24px auto;
    padding: 12px 20px;
    background: #1d9bf0;
    color: #000;
    border: none;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fouru-load-more-btn:hover {
    background: #1a8cd8;
}

.fouru-load-more-btn:active {
    transform: scale(0.97);
}

.fouru-load-more-btn:disabled {
    background: #8ecdf8;
    color: #333;
    cursor: not-allowed;
    transform: none;
}

@keyframes fouruSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.composer-placeholder {
    position: relative; /* IMPORTANT */
}

/* Refresh button (top right corner) */
.fouru-refresh-btn {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 9999px;

    background: #1d9bf0;
    color: #000;

    font-size: 18px;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: all 0.2s ease;
}

/* Hover */
.fouru-refresh-btn:hover {
    background: #1a8cd8;
}

/* Click */
.fouru-refresh-btn:active {
    transform: scale(0.95);
}

/* Loading spin */
.fouru-refresh-btn.is-spinning {
    animation: spin 0.8s linear infinite;
}

/* Disabled */
.fouru-refresh-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spin animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* Hidden by default (same logic as full-description-box) */
.original-article-box {
  display: none;
  margin-top: 6px;
  margin-bottom: 14px;
}

/* Show when article is expanded (same trigger as your summary logic) */
details[open] .original-article-box {
  display: block;
}

/* Button styling */
.load-original-btn {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;

  /* Twitter blue → sunset pink gradient */
  background: linear-gradient(135deg, #1d9bf0 0%, #ff5ea8 100%);
  
  color: #ffffff; /* white text */
  
  transition: all 0.25s ease;
}

/* Hover effect */
.load-original-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  width: 100%;
  padding: 12px 16px;

  border: none;
  border-radius: 14px;
  cursor: pointer;

  font-weight: 600;
  font-size: 14px;

  background: linear-gradient(135deg, #1d9bf0 0%, #ff5ea8 100%);
  color: #ffffff;

  transition: all 0.25s ease;
}
/* make it behave like other action buttons */
.load-original-btn {
  background: none;
  color: #ffffff;
  border: none;
}

/* icon */
.load-original-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* hover like Twitter/X */
.load-original-btn:hover {
  color: #1d9bf0;
}

/* clicked states: only change icon/text color, no box fill */
.action-btn.like.active-like {
  color: var(--like);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.action-btn.dislike.active-dislike {
  color: var(--blue);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* make the svg itself use the button color */
.action-btn.like.active-like svg,
.action-btn.like.active-like svg * {
  fill: currentColor !important;
  stroke: none !important;
}

.action-btn.dislike.active-dislike svg,
.action-btn.dislike.active-dislike svg * {
  fill: currentColor !important;
  stroke: none !important;
}
/* default icon look */
.action-btn svg,
.action-btn svg * {
  fill: currentColor;
  stroke: none;
}

/* liked */
.action-btn.like.active-like {
  color: var(--like) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* disliked */
.action-btn.dislike.active-dislike {
  color: var(--blue) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* only the svg changes with the button color */
.action-btn.like.active-like svg,
.action-btn.like.active-like svg *,
.action-btn.dislike.active-dislike svg,
.action-btn.dislike.active-dislike svg * {
  fill: currentColor !important;
  stroke: none !important;
}