@charset "UTF-8";
/* Sidebar Link Styling for Interesting Games */
:root {
  --fg-sidebar-link: #1a7f37;
  /* Legible green for light mode */ }

[data-theme='dark'] {
  --fg-sidebar-link: #00ff41;
  /* Matrix green for dark mode */ }

.sidebar-action-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--fg-sidebar-link);
  text-decoration: none;
  padding: 8px 12px;
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 4px;
  transition: all 0.2s;
  margin-top: 8px; }

.sidebar-action-link:hover {
  background: rgba(0, 255, 65, 0.1);
  border-color: var(--fg-sidebar-link);
  transform: translateX(4px); }

.sidebar-action-link svg {
  width: 14px;
  height: 14px; }

/* =============================================================
   Scroll Performance Fixes
   ============================================================= */
/* 1. Remove backdrop-filter from sticky nav.
      backdrop-filter re-blurs everything behind the nav on every
      scroll frame. Replace with a more opaque solid background. */
.main-nav {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important; }

/* 2. Kill mix-blend-mode on the atmosphere overlay.
      mix-blend-mode forces the browser to composite every layer
      below it separately on every paint. Without it the noise
      grain still renders — it just doesn't trigger full
      re-compositing on scroll. */
.site-atmosphere {
  mix-blend-mode: normal !important;
  opacity: 0.04 !important; }

[data-theme='dark'] .site-atmosphere {
  mix-blend-mode: normal !important;
  opacity: 0.07 !important; }

/* 3. Remove the dark-theme glow pseudo-elements.
      filter: blur(100px) on a 60vw × 60vh element is one of
      the most expensive GPU operations you can run. */
[data-theme='dark'] .site-atmosphere::before,
[data-theme='dark'] .site-atmosphere::after {
  display: none !important; }

/* =============================================================
   Horizontal Rules - Reduce excessive padding */
hr {
  margin: 1.5rem 0 !important; }

/* =============================================================
   Mermaid Diagrams */
.mermaid {
  display: flex;
  justify-content: center;
  background: transparent;
  padding: 1rem 0;
  margin: 2rem 0;
  overflow-x: auto;
  white-space: pre;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; }

/* Mermaid: scrollable wrapper */
.mermaid-zoom-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 6px; }

.mermaid-zoom-wrap .mermaid {
  margin: 0;
  display: inline-block;
  min-width: 100%; }

/* Ensure mermaid SVG does not shrink inside wrapper */
.mermaid-zoom-wrap .mermaid svg {
  max-width: none;
  height: auto;
  display: block; }

/* Fallback for diagrams not yet wrapped */
.mermaid svg {
  max-width: 100%;
  height: auto; }

/* Full-size button */
.mermaid-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 5;
  line-height: 1.4; }

.mermaid-zoom-wrap:hover .mermaid-fullscreen-btn {
  opacity: 1; }

/* Always visible on touch / mobile */
@media (hover: none) {
  .mermaid-fullscreen-btn {
    opacity: 1 !important; } }

/* Modal backdrop */
.mermaid-modal {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px; }

.mermaid-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer; }

/* Modal content panel */
.mermaid-modal-inner {
  position: relative;
  z-index: 1;
  width: 96vw;
  max-height: 92vh;
  overflow: auto;
  background: var(--bg, #fff);
  border-radius: 10px;
  padding: 44px 20px 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  touch-action: pan-x pan-y; }

.mermaid-modal-svg-wrap {
  width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch; }

.mermaid-modal-svg-scale {
  display: inline-block;
  min-width: 100%;
  transform-origin: top left; }

.mermaid-modal-svg-scale svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 600px; }

.mermaid-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: 1px solid rgba(128, 128, 128, 0.3);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  color: var(--text, #333);
  padding: 4px 9px;
  border-radius: 5px;
  opacity: 0.65;
  transition: opacity 0.15s; }

.mermaid-modal-close:hover {
  opacity: 1; }

/* Zoom controls */
.mermaid-zoom-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px; }

.mermaid-zoom-btn {
  background: rgba(128, 128, 128, 0.12);
  border: 1px solid rgba(128, 128, 128, 0.25);
  color: var(--text, #333);
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit; }

.mermaid-zoom-btn:hover {
  background: rgba(128, 128, 128, 0.22); }

.mermaid-zoom-reset {
  font-size: 12px;
  padding: 5px 10px; }

.mermaid-zoom-label {
  font-size: 12px;
  font-family: monospace;
  min-width: 38px;
  text-align: center;
  opacity: 0.65;
  color: var(--text, #333); }

/* Mermaid Theme Overrides */
[data-theme='dark'] .mermaid .node rect,
[data-theme='dark'] .mermaid .node polygon,
[data-theme='dark'] .mermaid .node circle,
[data-theme='dark'] .mermaid .node ellipse,
[data-theme='dark'] .mermaid .node path {
  stroke: rgba(255, 255, 255, 0.2) !important; }

/* Custom Mermaid Classes for States */
.mermaid .state-initial rect {
  fill: #f8bbd0 !important;
  stroke: #c2185b !important; }

.mermaid .state-final rect {
  fill: #c8e6c9 !important;
  stroke: #2e7d32 !important; }

[data-theme='dark'] .mermaid .state-initial rect {
  fill: #880e4f !important;
  stroke: #ff4081 !important; }

[data-theme='dark'] .mermaid .state-final rect {
  fill: #1b5e20 !important;
  stroke: #69f0ae !important; }

/* Ensure text color in dark mode for custom nodes */
[data-theme='dark'] .mermaid .state-initial .nodeLabel,
[data-theme='dark'] .mermaid .state-initial text,
[data-theme='dark'] .mermaid .state-final .nodeLabel,
[data-theme='dark'] .mermaid .state-final text {
  fill: #ffffff !important;
  color: #ffffff !important; }

/* =============================================================
   Posts Grid Layout
   ============================================================= */
.posts-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem; }

.posts-grid-item .post-preview {
  height: 100%;
  margin-bottom: 0; }

/* =============================================================
   TL;DR Callout Box
   ============================================================= */
.tldr-callout-box {
  background: var(--color-bg-card, rgba(0, 0, 0, 0.03));
  border-left: 4px solid var(--fg-sidebar-link, #1a7f37);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px; }

.tldr-header {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--fg-sidebar-link, #1a7f37); }

.tldr-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary, #444); }

.tldr-body ul,
.tldr-body ol {
  margin: 0;
  padding-left: 1.25rem; }

.tldr-body li {
  margin-bottom: 0.35rem; }

.tldr-body li:last-child {
  margin-bottom: 0; }

/* =============================================================
   Open to Hire Top Banner
   ============================================================= */
.open-to-hire-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-bg-card, #0d1117);
  color: var(--color-text-primary, #f0f6fc);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  padding: 8px 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 65, 0.25);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  will-change: transform, opacity;
  position: relative;
  z-index: 1001; }

.open-to-hire-banner:hover {
  color: #00ff41;
  border-bottom-color: #00ff41; }

.open-to-hire-banner.hidden-banner {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none; }

.hire-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00ff41;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff41;
  animation: hire-pulse 2s infinite;
  flex-shrink: 0; }

@keyframes hire-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.7); }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(0, 255, 65, 0); }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 255, 65, 0); } }

.hire-link-text {
  font-weight: 600;
  color: #00ff41;
  text-decoration: underline;
  white-space: nowrap;
  flex-shrink: 0; }

@media (max-width: 768px) {
  .open-to-hire-banner {
    font-size: 0.78rem;
    padding: 6px 12px;
    gap: 6px; }
  .hire-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; } }
