/*
Theme Name: RSSAI Lite
Description: Минимальная лента новостей
Version: 1.0
Author: NEO
*/

:root {
  --bg: #0f0f0f;
  --card: #1a1a1a;
  --border: #2a2a2a;
  --text: #e0e0e0;
  --muted: #888;
  --accent: #4a9eff;
}

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

body {
  font-family: -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

header {
  padding: 30px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

header h1 {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
}

header .desc {
  font-size: 0.85em;
  color: var(--muted);
  margin-top: 4px;
}

.post {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.post-date {
  font-size: 0.75em;
  color: var(--muted);
  margin-bottom: 4px;
}

.post h2 {
  font-size: 1.05em;
  font-weight: 500;
  margin-bottom: 6px;
}

.post h2 a {
  color: var(--text);
  text-decoration: none;
}

.post h2 a:hover {
  color: var(--accent);
}

.post-excerpt {
  font-size: 0.9em;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-thumb {
  float: right;
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 0 10px 15px;
}

.pagination {
  padding: 20px 0;
  text-align: center;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 6px 12px;
  margin: 2px;
  border-radius: 4px;
  font-size: 0.85em;
  text-decoration: none;
}

.pagination a {
  background: var(--card);
  color: var(--accent);
  border: 1px solid var(--border);
}

.pagination a:hover {
  background: var(--border);
}

.pagination .current {
  background: var(--accent);
  color: #fff;
}

.single-post {
  padding: 20px 0;
}

.single-post h1 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.single-post .meta {
  font-size: 0.8em;
  color: var(--muted);
  margin-bottom: 20px;
}

.single-post .content {
  font-size: 0.95em;
  line-height: 1.8;
}

.single-post .content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 10px 0;
}

.single-post .content p {
  margin-bottom: 12px;
}

.back-link {
  display: inline-block;
  margin: 20px 0;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85em;
}

footer {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75em;
  color: var(--muted);
}

@media (max-width: 600px) {
  .container { padding: 12px; }
  .post-thumb { width: 80px; height: 55px; }
}
