@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,400;0,700;1,400;1,700&family=JetBrains+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --bg: #141210;
  --surface: #1e1a17;
  --surface-hover: #292420;
  --fg: #e6dfd5;
  --muted: #8e857c;
  --border: #443a32;
  --accent: #ff8800;
  --accent-glow: rgba(255, 136, 0, 0.25);
  --success: #00ff66;
  --success-glow: rgba(0, 255, 102, 0.2);
  
  --font-body: "Rubik", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Courier New", monospace;
}

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

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding: 20px;
  position: relative;
}

/* Subtle static retro scanline overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.08) 50%,
    rgba(0, 0, 0, 0.08)
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 9999;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-shadow: 0 0 8px var(--accent-glow);
}

.container {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Top Navigation Bar */
.menu-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  margin-bottom: 50px;
}

.menu-bar .brand {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.menu-bar .name {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.menu-bar .links { display: flex; gap: 24px; }
.menu-bar a { color: var(--muted); text-transform: uppercase; }
.menu-bar a:hover { color: var(--fg); }

h1, h2, h3, .mono-text {
  font-family: var(--font-mono);
  font-weight: normal;
}

header {
  margin-bottom: 60px;
}

h1 {
  font-size: 2.3rem;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--fg);
  text-shadow: 0 0 1px rgba(230, 223, 213, 0.2);
}

.subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success-glow);
  animation: heart-pulse 2s infinite ease-in-out;
}

@keyframes heart-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.intro-text {
  font-size: 1.125rem;
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--fg);
  opacity: 0.95;
}

section {
  margin-bottom: 80px;
}

.section-title {
  font-size: 1.15rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

/* Projects Filter System Toolbar */
.filter-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--fg);
}

.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-hover);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Cards */
.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  transition: all 0.25s ease-out;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 10px var(--accent-glow);
  transform: translateY(-2px);
}

.card.filtered-out {
  opacity: 0.15;
  transform: scale(0.96);
  pointer-events: none;
}

.card-header {
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(0,0,0,0.15);
}

.card-body {
  padding: 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--fg);
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* Transmissions / Log */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-item {
  display: flex;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  gap: 24px;
  align-items: baseline;
  transition: all 0.2s ease;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  min-width: 100px;
}

.post-title {
  font-weight: normal;
  font-size: 1.05rem;
  color: var(--fg);
}

.post-item:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  box-shadow: 0 0 10px var(--accent-glow);
}

.post-item:hover .post-title {
  text-shadow: 0 0 8px var(--accent-glow);
}

footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 50px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

/* Blog post content styling */
.post-content h1, .post-content h2, .post-content h3 {
  color: var(--fg);
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.post-content p {
  margin-bottom: 1.5em;
}
.post-content ul, .post-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}
.post-content hr {
  margin: 80px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.post-content a {
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
}
.post-content a:hover {
  text-decoration-color: var(--accent);
}
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface);
  padding: 2px 4px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.post-content pre {
  background: var(--surface) !important;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1.5em;
  line-height: 1.05;
}
.post-content pre code {
  background: transparent;
  padding: 0;
  border: none;
}

@media (max-width: 600px) {
  .post-item {
    flex-direction: column;
    gap: 8px;
  }
  .menu-bar {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .menu-bar .links {
    width: 100%;
    justify-content: space-between;
  }
}
