/* Titan Claws Blog — Dark + Bold Theme */
:root {
  --bg: #0d0d0d;
  --bg-card: #1a1a1a;
  --text: #e8e8e8;
  --text-muted: #999;
  --accent: #ff6b2b;
  --accent-hover: #ff8a50;
  --border: #2a2a2a;
  --max-width: 800px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  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.2s; }
a:hover { color: var(--accent-hover); }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.site-logo:hover { color: var(--accent); }
.logo-icon { font-size: 1.5rem; }

.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--accent); }

/* Main */
main { flex: 1; padding: 3rem 0; }

/* Hero */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.hero p { color: var(--text-muted); font-size: 1.15rem; }

/* Post list */
.latest-posts h2 { font-size: 1.5rem; margin-bottom: 1.5rem; font-weight: 700; }

.post-list { display: flex; flex-direction: column; gap: 1.5rem; }

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.post-card:hover { border-color: var(--accent); }

.post-card h2, .post-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.post-card h2 a, .post-card h3 a { color: var(--text); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--accent); }

.post-card time { color: var(--text-muted); font-size: 0.85rem; display: block; margin-bottom: 0.5rem; }
.post-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.75rem; }

.read-more { font-weight: 600; font-size: 0.9rem; }
.view-all { display: inline-block; margin-top: 2rem; font-weight: 600; }

/* Tags */
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.5rem 0; }
.tag {
  background: var(--border);
  color: var(--text-muted);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Single post */
.post-single { max-width: 100%; }
.post-header { margin-bottom: 2rem; }
.post-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.post-header time { color: var(--text-muted); font-size: 0.9rem; }

.post-content h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; font-weight: 700; }
.post-content h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; font-weight: 600; }
.post-content p { margin-bottom: 1rem; }
.post-content ul, .post-content ol { margin: 0.5rem 0 1rem 1.5rem; }
.post-content li { margin-bottom: 0.25rem; }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.post-content code {
  background: var(--bg-card);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}
.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}
.post-content pre code { background: none; padding: 0; }
.post-content img { max-width: 100%; border-radius: 6px; margin: 1rem 0; }

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Pagination */
.pagination { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
}

/* Email Signup */
.email-signup {
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}
.signup-inner h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.signup-inner > p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.signup-form .form-row {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}
.signup-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.signup-form input[type="email"]:focus {
  border-color: var(--accent);
}
.signup-form button {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.signup-form button:hover { background: var(--accent-hover); }
.signup-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.signup-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}
.signup-status.success { color: #4ade80; }
.signup-status.error { color: #f87171; }
.privacy-note {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.75rem; }
  .post-header h1 { font-size: 1.5rem; }
  .header-inner { flex-direction: column; gap: 0.75rem; }
  .site-nav { gap: 1rem; }
  .signup-form .form-row { flex-direction: column; }
  .email-signup { padding: 1.5rem; }
}
