/* Main styles for Writing Through Time */

:root {
  color-scheme: dark;
}

/* Tab styling */
.tab-link {
  transition: all 0.2s ease;
}

.tab-link.active {
  color: rgb(226 232 240);
  border-color: rgb(226 232 240);
}

.tab-link:not(.active):hover {
  border-color: rgb(71 85 105);
}

/* Tab content transitions */
.tab-content {
  animation: fadeIn 0.4s ease-out;
  transition: opacity 0.3s ease;
}

.tab-content.hidden {
  animation: none;
  opacity: 0;
  pointer-events: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Small extras only. Tailwind does most styling. */

.codebox {
  white-space: pre;
  tab-size: 2;
}

.badge {
  border: 1px solid rgb(51 65 85);
  background: rgba(15, 23, 42, 0.6);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: rgb(148 163 184);
}

.kbd {
  border: 1px solid rgb(51 65 85);
  background: rgba(2, 6, 23, 0.7);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 12px;
  color: rgb(226 232 240);
}

.json-formatter-row a {
  color: rgb(226 232 240);
}

.json-formatter-row a:hover {
  text-decoration: underline;
}
