:root {
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-hover: #1f1f35;
  --accent: #e94560;
  --accent-hover: #ff6b81;
  --text: #e8e8ef;
  --text-dim: #8a8a9a;
  --text-muted: #5a5a6a;
  --border: #2a2a3e;
  --radius: 10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1080px;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent) !important;
  letter-spacing: -0.01em;
}

.site-nav { display: flex; gap: 1.75rem; }

.site-nav a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ── Hero ── */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Articles grid ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  color: var(--text);
}

.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}

.article-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.article-card-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.article-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-body time {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.article-card-body h2 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.article-card-body p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
}

.article-source {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-dim);
}

.empty-state h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* ── Article page ── */
.article-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.back-link:hover { color: var(--accent); }

.article-header {
  margin-bottom: 2rem;
}

.article-header time {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.article-hero-image {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 2rem;
}

.article-body p { margin-bottom: 1rem; }

.article-disclaimer {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.share-section {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.share-section h3 {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.share-buttons { display: flex; gap: 0.75rem; }

.share-btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff !important;
  transition: opacity 0.15s;
}

.share-btn:hover { opacity: 0.85; color: #fff !important; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.whatsapp { background: #25D366; }

/* ── About page ── */
.about-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.about-page h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.about-content p {
  margin-bottom: 1.25rem;
  color: var(--text);
  line-height: 1.8;
}

.about-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
}

.about-content ul {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--text-dim);
}

.about-content li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.about-disclaimer {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.footer-inner .disclaimer {
  font-size: 0.7rem;
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.4rem; }
  .article-meta { flex-direction: column; gap: 0.4rem; }
}
