/*
Theme Name: BBS Blog
Theme URI: https://example.com/bbs-blog
Author: Your Name
Author URI: https://example.com
Description: A retro-styled BBS blogging platform for WordPress
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bbs-blog
*/

:root {
  --bg: #0a0a0a;
  --bg-input: #0f1f0f;
  --text-primary: #33ff33;
  --text-secondary: #00cc00;
  --accent: #ffaa00;
  --link-hover: #ffff00;
  --error: #ff3333;
}

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

body {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 1000;
}

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

header {
  text-align: center;
  padding: 20px 0;
  border-bottom: 2px solid var(--text-primary);
  margin-bottom: 30px;
}

.logo {
  font-size: 0.9rem;
  white-space: pre;
  color: var(--text-primary);
  text-shadow: 0 0 10px var(--text-primary);
  margin-bottom: 15px;
  line-height: 1.2;
}

nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  padding: 5px 10px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

nav a:hover, nav a.active {
  background: var(--text-primary);
  color: var(--bg);
}

nav a.active {
  cursor: default;
}

.user-info {
  color: var(--accent);
  font-size: 0.85rem;
}

.ascii-border {
  border: 2px solid var(--text-primary);
  padding: 15px;
  margin-bottom: 25px;
  position: relative;
}

.ascii-border::before {
  content: "╔";
  position: absolute;
  top: -2px;
  left: -2px;
  font-size: 1.5rem;
}

.ascii-border::after {
  content: "╝";
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 1.5rem;
}

.post-card {
  background: rgba(51, 255, 51, 0.03);
}

.post-card h2 {
  color: var(--text-primary);
  text-shadow: 0 0 15px var(--text-primary);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.post-card h2 a {
  color: inherit;
  text-decoration: none;
}

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

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.post-date {
  color: var(--accent);
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--text-secondary);
  padding-bottom: 10px;
  flex: 1;
}

.post-status {
  font-size: 0.75rem;
  padding: 2px 8px;
  border: 1px solid;
}

.post-status.published {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.post-content {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-top: 15px;
}

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

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

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

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 2px solid var(--text-primary);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.cursor-blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.site-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  text-shadow: 0 0 10px var(--text-primary);
  margin-bottom: 10px;
}

.site-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.pagination a {
  color: var(--text-primary);
  padding: 8px 15px;
  border: 1px solid var(--text-primary);
}

.pagination a:hover {
  background: var(--text-primary);
  color: var(--bg);
}

.pagination .current {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

@media (max-width: 600px) {
  .logo {
    font-size: 0.6rem;
  }
  
  .container {
    padding: 10px;
  }
  
  .ascii-border {
    padding: 10px;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
