@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;700&display=swap');

:root {
  --bg-color: #faf6ee;
  --bg-window: #faf6ee;
  --text-color: #1c1c1e;
  --link-color: #303030;

  --text-dim: rgba(28, 28, 30, 0.65);
  --border-color: #1c1c1e;
  --border-active: #1c1c1e;
  --accent-color: #1c1c1e;
  --shadow-color: rgba(28, 28, 30, 0.15);
}

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

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

a:hover {
  opacity: 0.7;
}

::selection {
  background-color: var(--text-color);
  color: var(--bg-color);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Quicksand', sans-serif;
  padding: 2rem 1rem;
  min-height: 100vh;
  line-height: 1.6;
}

.terminal-container {
  max-width: 900px;
  margin: 0 auto;
}

.terminal-header {
  margin-bottom: 2rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 1.5rem;
}

.ascii-banner {
  font-family: 'Quicksand', sans-serif;
  white-space: pre;
  color: var(--text-color);
  font-size: 0.85rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.terminal-logo {
  max-width: 100%;
  height: auto;
  max-height: 100px;
  display: block;
  margin-bottom: 1.5rem;
}

.terminal-subtitle {
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-prompt {
  font-weight: bold;
}

.terminal-prompt::before {
  content: "guest@sol.vin:~$ ";
  color: var(--text-dim);
}

.nav-bar-container {
  margin-bottom: 2rem;
  background: var(--bg-window);
  border: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.nav-bar-container a {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-color);
  font-weight: bold;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  opacity: 0.7;
}

.nav-link-disabled {
  color: var(--text-dim);
  text-decoration: none !important;
  cursor: default;
  pointer-events: none;
}

.breadcrumbs-bar {
  display: flex;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  border-top: 1px dashed var(--border-color);
  width: 100%;
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.terminal-window {
  background: var(--bg-window);
  border: 2px solid var(--border-color);
  box-shadow: 6px 6px 0px var(--border-color);
  margin-bottom: 2.5rem;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.terminal-window:hover {
  border-color: var(--border-active);
  box-shadow: 6px 6px 0px var(--border-active);
}

.window-header {
  background: var(--border-color);
  color: var(--bg-color);
  padding: 0.4rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: bold;
  user-select: none;
  transition: background-color 0.2s ease;
}

.terminal-window:hover .window-header {
  background: var(--border-active);
  color: var(--bg-color);
}

.window-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex-grow: 1;
}

.window-controls {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.window-btn {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.window-body {
  padding: 1.5rem;
}

.post-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.5rem;
}

.post-link-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.post-link-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted var(--border-color);
  padding-bottom: 0.25rem;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.post-link-item:hover {
  opacity: 0.7;
}

.post-link-title {
  font-weight: bold;
  text-decoration: none;
}

.post-link-date {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.window-body h1, .window-body h2, .window-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent-color);
}

.window-body h1 { font-size: 1.6rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.25rem; }
.window-body h2 { font-size: 1.3rem; }
.window-body h3 { font-size: 1.1rem; }

.window-body p {
  margin-bottom: 1rem;
}

.window-body ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  list-style-type: square;
}

.window-body li {
  margin-bottom: 0.25rem;
}

.window-body code {
  font-family: 'Quicksand', sans-serif;
  background: var(--bg-color);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
}

.code-block {
  margin: 1.5rem 0;
  position: relative;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
}

.code-lang {
  background: var(--border-color);
  color: var(--text-color);
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: bold;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.code-block code {
  display: block;
  padding: 1rem;
  overflow-x: auto;
  background: transparent;
  border: none;
  border-radius: 0;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border: 2px solid var(--border-color);
  box-shadow: 4px 4px 0px var(--border-color);
  margin: 1.5rem 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background-color: var(--bg-color);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  border-top: 1px dashed var(--border-color);
  padding-top: 1.5rem;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: var(--text-color);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 4px;
}

@keyframes blink {
  from, to { background-color: transparent }
  50% { background-color: var(--text-color); }
}

.terminal-footer {
  margin-top: 4rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}
