/* Orson CMS — orson.css */
/* Scoped to .orson-* classes. Dark GitHub-style theme. */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

.orson-page {
  background: #0d1117;
  color: #c9d1d9;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 14px;
  min-height: 100vh;
  margin: 0;
}

.orson-nav {
  background: #161b22;
  border-bottom: 1px solid #30363d;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.orson-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #34d399;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.orson-nav-logo img {
  width: 28px;
  height: 28px;
}

.orson-nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.orson-nav-links a {
  color: #8b949e;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.orson-nav-links a:hover,
.orson-nav-links a.active {
  color: #34d399;
}

.orson-nav-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #8b949e;
}

.orson-nav-user a {
  color: #34d399;
  text-decoration: none;
}

.orson-nav-user a:hover {
  text-decoration: underline;
}

.orson-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Headings */
.orson-content h1,
.orson-content h2 {
  color: #e6edf3;
  margin: 0 0 0.75rem 0;
  font-weight: 700;
}

.orson-content h2 a {
  color: #58a6ff;
  text-decoration: none;
}

.orson-content h2 a:hover {
  text-decoration: underline;
}

/* Post/comment cards */
.orson-post {
  border-bottom: 1px solid #30363d;
  padding: 1.25rem 0;
}

.orson-post-header {
  font-size: 0.8rem;
  color: #8b949e;
  margin-bottom: 0.5rem;
}

.orson-post-header a {
  color: #34d399;
  text-decoration: none;
}

.orson-post-header a:hover {
  text-decoration: underline;
}

/* Forms */
.orson-form {
  max-width: 540px;
}

.orson-form label {
  display: block;
  color: #8b949e;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.orson-form input[type="text"],
.orson-form input[type="email"],
.orson-form input[type="password"],
.orson-form input[type="number"],
.orson-form textarea,
.orson-form select {
  width: 100%;
  background: #0d1117;
  border: 1px solid #30363d;
  color: #c9d1d9;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  box-sizing: border-box;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.15s;
}

.orson-form input:focus,
.orson-form textarea:focus,
.orson-form select:focus {
  border-color: #34d399;
}

.orson-form input[type="submit"],
.orson-form button {
  background: #238636;
  color: #ffffff;
  border: 1px solid #2ea043;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.orson-form input[type="submit"]:hover,
.orson-form button:hover {
  background: #2ea043;
}

.orson-form .form-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.orson-form .form-row select {
  width: auto;
  min-width: 80px;
}

/* Links */
.orson-content a {
  color: #58a6ff;
  text-decoration: none;
}

.orson-content a:hover {
  text-decoration: underline;
}

/* Alerts */
.orson-error {
  background: #3d1f1f;
  border: 1px solid #f85149;
  color: #f85149;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.orson-success {
  background: #1f3d2a;
  border: 1px solid #34d399;
  color: #34d399;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

/* Divider */
.orson-divider {
  border: none;
  border-top: 1px solid #30363d;
  margin: 1.5rem 0;
}

/* Comment */
.orson-comment {
  padding: 1rem 0;
  border-bottom: 1px solid #30363d;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Meta info */
.orson-meta {
  font-size: 0.75rem;
  color: #8b949e;
  margin-top: 0.4rem;
}

/* Tables */
.orson-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.orson-table td {
  padding: 0.4rem 0.75rem 0.4rem 0;
  color: #c9d1d9;
  font-size: 0.85rem;
}

.orson-table input[type="text"],
.orson-table input[type="password"] {
  background: #0d1117;
  border: 1px solid #30363d;
  color: #c9d1d9;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  width: 180px;
}

.orson-table input:focus {
  border-color: #34d399;
  outline: none;
}
