/* ================================================================
 * blog/style.css — GeoCities retro theme for the blog
 * Overrides the main style.css with blog-specific styling
 * ================================================================ */

:root {
  --bg: #000020;
  --surface: #000040;
  --surface-raised: #000060;
  --text: #00ff00;
  --muted: #c0c0c0;
  --line: #00ff00;
  --accent: #ffff00;
  --link: #00ffff;
  --link-visited: #ff00ff;
  --warn: #ff0000;
}

/* Blog index layout */
.blog-index {
  max-width: 800px;
  margin: 0 auto;
  padding: 1em;
}

.blog-index-header {
  text-align: center;
  margin: 2em 0;
  padding: 1em;
  background: var(--surface);
  border: 2px solid var(--accent);
}

.blog-index-kicker {
  color: var(--link);
  font-size: 12px;
  margin-bottom: 0.5em;
}

.blog-index-header h1 {
  color: var(--accent);
  font-size: 2em;
  text-shadow: 2px 2px 0 var(--link-visited);
  margin: 0.3em 0;
}

.blog-index-header p {
  color: var(--muted);
  font-style: italic;
}

/* Post listings — boxed, bordered, retro */
.post-list {
  margin: 2em 0;
}

.blog-listing {
  border: 1px solid var(--line);
  margin: 1em 0;
  background: var(--surface);
}

.blog-listing-link {
  display: block;
  padding: 1em;
  text-decoration: none;
  color: var(--text);
}

.blog-listing-link:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.blog-listing-meta {
  font-size: 12px;
  color: var(--link);
  margin-bottom: 0.5em;
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

.blog-listing-meta time {
  color: var(--muted);
}

.blog-listing-content {
  display: flex;
  gap: 1em;
  align-items: flex-start;
}

.blog-listing-content h2 {
  color: var(--accent);
  text-shadow: 1px 1px 0 var(--link-visited);
  font-size: 1.3em;
  margin: 0 0 0.3em;
}

.blog-listing-content p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.blog-listing-content img {
  width: 120px;
  height: auto;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.blog-listing-footer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0.5em;
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  align-items: center;
}

.blog-tags {
  color: var(--link);
}

/* Tag filter */
.tag-filter {
  background: var(--surface);
  border: 1px solid var(--accent);
  padding: 0.5em 1em;
  margin: 1em 0;
  display: inline-block;
  color: var(--text);
}

.tag-filter a {
  color: var(--warn);
  margin-left: 1em;
}

.no-posts {
  text-align: center;
  color: var(--muted);
  padding: 3em;
  font-style: italic;
}

/* Post page */
.post-shell {
  max-width: 800px;
  margin: 0 auto;
  padding: 1em;
}

.post {
  background: var(--surface);
  border: 2px solid var(--line);
  padding: 2em;
  margin: 1em 0;
}

.post-kicker {
  color: var(--link);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5em;
}

.post h1 {
  color: var(--accent);
  text-shadow: 2px 2px 0 var(--link-visited);
  font-size: 1.8em;
  margin: 0 0 0.5em;
}

.post-dek {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.5em;
  font-size: 14px;
}

.post-content {
  color: var(--text);
  line-height: 1.7;
}

.post-content h2 {
  color: var(--accent);
  text-shadow: 1px 1px 0 var(--link-visited);
  margin: 1.5em 0 0.5em;
}

.post-content h3 {
  color: var(--link);
  margin: 1.2em 0 0.5em;
}

.post-content p {
  margin: 1em 0;
}

.post-content img {
  max-width: 100%;
  border: 1px solid var(--line);
  margin: 1em 0;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 1em 0;
  padding: 0.5em 1em;
  background: #000;
  color: var(--muted);
  font-style: italic;
}

.post-content code {
  background: #000;
  color: var(--accent);
  padding: 1px 4px;
  border: 1px solid var(--line);
  font-family: "Courier New", Courier, monospace;
}

.post-content pre {
  background: #000;
  border: 1px solid var(--line);
  padding: 1em;
  overflow-x: auto;
  color: var(--text);
}

.post-content pre code {
  border: none;
  padding: 0;
}

.post-content ul, .post-content ol {
  margin: 1em 0;
  padding-left: 2em;
}

.post-content li {
  margin: 0.3em 0;
}

.post-content a {
  color: var(--link);
  text-decoration: underline;
}

.post-content a:visited {
  color: var(--link-visited);
}

/* Glow effect for special text */
.glow {
  color: var(--accent);
  text-shadow: 0 0 5px var(--accent);
}

.tor {
  color: #a878ff8;
  text-shadow: 0 0 5px #878ff8;
}

.monero {
  color: #ff7a45;
  text-shadow: 0 0 5px #ff7a45;
}

/* Back link */
.back-link {
  display: inline-block;
  margin: 1em 0;
  color: var(--link);
  text-decoration: underline;
}

/* Search */
.search-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1em;
  margin: 1em 0;
}

.search-bar form {
  display: flex;
  gap: 0.5em;
}

.search-bar input[type="text"] {
  flex: 1;
  background: #000;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-family: "Courier New", Courier, monospace;
}

.search-bar input[type="submit"] {
  background: var(--surface-raised);
  color: var(--accent);
  border: 1px outset var(--line);
  padding: 6px 16px;
  cursor: pointer;
}

.search-results {
  margin: 1em 0;
}

.search-result {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1em;
  margin: 0.5em 0;
}

.search-result h3 {
  color: var(--accent);
  margin: 0 0 0.3em;
}

.search-result h3 a {
  color: var(--accent);
  text-decoration: underline;
}

.search-result p {
  color: var(--muted);
  margin: 0.3em 0;
  font-size: 14px;
}

.search-result-meta {
  font-size: 12px;
  color: var(--link);
}

/* Comments */
.comments-section {
  margin: 2em 0;
}

.comments-section h2 {
  color: var(--accent);
  text-shadow: 1px 1px 0 var(--link-visited);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5em;
}

.comment {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1em;
  margin: 0.5em 0;
}

.comment-meta {
  font-size: 12px;
  color: var(--link);
  margin-bottom: 0.5em;
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

.comment-meta .author {
  color: var(--accent);
  font-weight: bold;
}

.comment-body {
  color: var(--text);
  line-height: 1.6;
}

.comment-actions {
  margin-top: 0.5em;
  font-size: 12px;
}

.comment-actions a {
  color: var(--link);
  margin-right: 1em;
}

.comment-form {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1em;
  margin: 1em 0;
}

.comment-form label {
  display: block;
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 0.3em;
}

.comment-form input[type="text"],
.comment-form textarea {
  width: 100%;
  background: #000;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-family: "Courier New", Courier, monospace;
  margin-bottom: 0.8em;
}

.comment-form textarea {
  min-height: 100px;
  resize: vertical;
}

.comment-form input[type="submit"] {
  background: var(--surface-raised);
  color: var(--accent);
  border: 1px outset var(--line);
  padding: 6px 16px;
  cursor: pointer;
}

.comment-form input[type="submit"]:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Reply */
.comment-reply {
  margin-left: 2em;
  border-left: 2px solid var(--link-visited);
  padding-left: 1em;
}

/* Vote */
.vote-btn {
  display: inline-block;
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 2px 8px;
  font-size: 12px;
  text-decoration: none;
  margin-right: 4px;
}

.vote-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Mobile responsive */
@media (max-width: 600px) {
  .blog-listing-content {
    flex-direction: column;
  }
  .blog-listing-content img {
    width: 100%;
    max-width: 300px;
  }
  .post {
    padding: 1em;
  }
  .comment-reply {
    margin-left: 1em;
  }
}
