/* Spirit of the Machine — TRON Dark Theme (ported from Ghost custom.css) */

:root {
  --bg-deep: #000000;
  --bg-surface: #0a0a0f;
  --bg-card: #0f0f18;
  --bg-elevated: #141420;
  --bg-hover: #181828;
  --bg-code: #06060c;

  --text-primary: #e8e8ee;
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a7e;

  --tron-yellow: #ffd700;
  --tron-amber: #ffb347;
  --tron-cyan: #00e5ff;
  --tron-white-glow: rgba(255, 255, 255, 0.06);
  --tron-yellow-glow: rgba(255, 215, 0, 0.15);

  --border: #1a1a2a;
  --border-light: #24243a;

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Source Code Pro', Consolas, monospace;

  --radius: 8px;
}

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

html {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle, var(--tron-white-glow) 1px, transparent 1px);
  background-size: 40px 40px;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--tron-yellow);
  color: #000;
}

a {
  color: var(--tron-amber);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--tron-yellow);
  text-decoration-color: var(--tron-yellow);
  text-shadow: 0 0 12px var(--tron-yellow-glow);
}

/* --- SITE HEADER --- */
.site-header {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-image {
  height: 42px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--tron-yellow);
  background: var(--tron-yellow-glow);
  text-shadow: 0 0 8px var(--tron-yellow-glow);
}

/* --- HERO / COVER --- */
.hero {
  padding: 3rem 1rem 1.5rem;
  text-align: center;
}

.hero-logo {
  max-width: 540px;
  width: 90%;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.25rem;
  font-family: var(--font-serif);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- POSTS LIST --- */
.posts-list {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  transition: all 0.25s ease;
}

.post-card:hover {
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow:
    0 0 30px rgba(255, 215, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

.post-card a {
  display: block;
  padding: 1.5rem;
  color: inherit;
  text-decoration: none;
}

.post-card h2 {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.08),
    0 0 40px rgba(255, 255, 255, 0.04);
}

.post-card:hover h2 {
  color: var(--tron-yellow);
}

.post-excerpt {
  font-family: var(--font-serif);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.post-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 12px;
  border-radius: 99px;
  border: 1px solid var(--border);
}

.tag:hover {
  color: var(--tron-yellow);
  border-color: var(--tron-yellow-glow);
}

time {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- EMPTY STATE --- */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}

.tron-icon {
  margin-bottom: 1.5rem;
}

.empty-state h2 {
  color: var(--tron-yellow);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #998000;
}

/* --- POST FULL PAGE --- */
.post-full {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  font-size: 2.8rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow:
    0 0 25px rgba(255, 255, 255, 0.10),
    0 0 80px rgba(255, 255, 255, 0.04);
}

.post-meta-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-content {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.85;
  color: var(--text-primary);
}

.post-content p {
  margin-bottom: 1.8rem;
}

.post-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 15px rgba(255, 255, 255, 0.08),
    0 0 40px rgba(255, 255, 255, 0.03);
}

.post-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-weight: 700;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--tron-yellow);
  background: rgba(255, 215, 0, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 215, 0, 0.15);
}

.post-content pre {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-left: 2px solid var(--tron-yellow);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
}

.post-content pre code {
  color: #d0d0e0;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.post-content blockquote {
  border-left: 3px solid var(--tron-yellow);
  padding: 20px 28px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-secondary);
  background: rgba(255, 215, 0, 0.03);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content blockquote p {
  margin-bottom: 0;
}

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

.post-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-light), transparent);
  margin: 3rem 0;
}

/* --- FOOTER --- */
.site-footer {
  background: rgba(0, 0, 0, 0.9);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-meta {
  margin-top: 0.5rem;
  color: #333;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .post-header h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  .post-content {
    font-size: 1.1rem;
  }
  .post-card h2 {
    font-size: 1.2rem;
  }
  .hero-logo {
    max-width: 90%;
  }
  .header-inner {
    padding: 0 1rem;
  }
}
