/* Terminal Theme - root-dir inspired */

/* Base styles */
body {
  font-family: "JetBrains Mono", monospace;
  background-color: #0a0a0a;
  color: #e5e5e5;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

::selection {
  background-color: #53ff55;
  color: #0a0a0a;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 3rem 1rem;
  }
}

/* ASCII Header */
.ascii-header {
  font-size: 0.45rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #53ff55;
  margin-bottom: 1.5rem;
  overflow: hidden;
  white-space: pre;
}

@media (min-width: 640px) {
  .ascii-header {
    font-size: 0.55rem;
  }
}

/* Header */
.header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.header-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.header-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid #262626;
}

.header-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #e5e5e5;
  margin: 0;
}

.header-subtitle {
  font-size: 0.875rem;
  color: #737373;
  margin: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #737373;
}

.header-nav a:hover {
  color: #53ff55;
}

.header-nav .divider {
  color: #262626;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #737373;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}

.back-link:hover {
  color: #53ff55;
}

/* Entries list */
.entries {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.entry-link {
  display: block;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.entry-link:hover {
  background-color: #171717;
  border-color: #262626;
}

.entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.entry-title {
  font-size: 1rem;
  font-weight: 500;
  color: #e5e5e5;
  line-height: 1.4;
}

.entry-date {
  font-size: 0.75rem;
  color: #737373;
  white-space: nowrap;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}

.tag-badge {
  background-color: #1a1a1a;
  color: #53ff55;
  border: 1px solid #262626;
  padding: 0.125rem 0.375rem;
  font-size: 0.625rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

.entry-summary {
  font-size: 0.8125rem;
  color: #a3a3a3;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-version {
  margin-top: 0.5rem;
  font-size: 0.625rem;
  color: #53ff55;
  font-weight: 500;
}

/* Single entry page */
.entry-page-header {
  margin-bottom: 1.5rem;
}

.entry-page-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e5e5e5;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .entry-page-title {
    font-size: 1.5rem;
  }
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #737373;
}

.entry-meta .version {
  color: #53ff55;
  font-weight: 500;
}

/* Entry content */
.entry-content {
  font-size: 0.875rem;
  line-height: 1.7;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #e5e5e5;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.entry-content h2 {
  font-size: 1.125rem;
}

.entry-content h3 {
  font-size: 1rem;
}

.entry-content p {
  margin-bottom: 1em;
  color: #a3a3a3;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
  color: #a3a3a3;
}

.entry-content li {
  margin-bottom: 0.25em;
}

.entry-content a {
  color: #53ff55;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content a:hover {
  color: #7fff7f;
}

.entry-content code {
  background-color: #1a1a1a;
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.85em;
  color: #53ff55;
}

.entry-content pre {
  background-color: #111111;
  border: 1px solid #262626;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1em;
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: #e5e5e5;
}

.entry-content strong {
  color: #e5e5e5;
  font-weight: 600;
}

.entry-content blockquote {
  border-left: 2px solid #53ff55;
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1em;
  color: #737373;
  font-style: italic;
}

/* Navigation */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #262626;
}

.nav-link {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #262626;
  transition: all 0.15s;
}

.nav-link:hover {
  background-color: #171717;
}

.nav-link.next {
  text-align: right;
}

.nav-label {
  font-size: 0.625rem;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-title {
  display: block;
  font-size: 0.75rem;
  color: #e5e5e5;
  margin-top: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 0;
}

.empty-state pre {
  color: #737373;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 0.875rem;
  color: #737373;
}

/* Footer */
.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #262626;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #737373;
}

/* Pagination */
.pagination {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #262626;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.75rem;
}

.pagination a {
  color: #737373;
  transition: color 0.15s;
}

.pagination a:hover {
  color: #53ff55;
}

.pagination .current {
  color: #e5e5e5;
}


.header-subtitle:hover {
  color: #53ff55;
}