:root {
  --bg: #0e1210;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f7ef;
  --text-muted: #9ca89a;
  --accent: #c9a227;
  --accent-2: #84cc16;
  --accent-glow: rgba(201, 162, 39, 0.28);
  --rating: #fbbf24;
  --radius: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: 'Manrope', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--1 {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
}

.bg-glow--2 {
  width: 420px;
  height: 420px;
  bottom: -100px;
  left: -80px;
  background: radial-gradient(circle, rgba(132, 204, 22, 0.16), transparent 70%);
}

.header,
.main,
.footer {
  position: relative;
  z-index: 1;
}

.header {
  padding: 2rem 1.25rem 1rem;
}

.header__inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.brand__icon {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 8px 24px rgba(201, 162, 39, 0.35));
}

.brand__title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #d4e4bc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand__sub {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.header__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.date-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.main {
  padding: 0 1.25rem 3rem;
}

.status,
.feed {
  max-width: 860px;
  margin: 0 auto;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.loader__ring {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-box {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fecaca;
  text-align: center;
}

.feed {
  display: grid;
  gap: 1rem;
}

.card {
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  animation: fadeUp 0.5s ease both;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(201, 162, 39, 0.35);
  transform: translateY(-2px);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #e8c547);
  font-size: 0.8rem;
  font-weight: 800;
  color: #1a1f16;
  flex-shrink: 0;
}

.card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rating);
}

.card__text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  white-space: pre-wrap;
  color: #f1f5f9;
}

.card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card__author {
  font-weight: 600;
  color: #cbd5e1;
}

.card__tag {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(132, 204, 22, 0.15);
  color: #bef264;
  font-weight: 600;
}

.card__link {
  margin-left: auto;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.card__link:hover {
  text-decoration: underline;
}

.footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer a {
  color: var(--accent-2);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer__note {
  margin-top: 0.35rem;
  opacity: 0.75;
}

@media (max-width: 600px) {
  .header__inner {
    flex-direction: column;
  }

  .card {
    padding: 1.25rem;
  }

  .card__link {
    margin-left: 0;
    width: 100%;
  }
}
