@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');
@import url('prism.css');

body {
  background: #000;
  color: #aaa;
  font: 14px/1.6 monospace;
  padding: 24px;
  max-width: 680px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: 'MedievalSharp', serif;
  color: #2a6;
  text-shadow: 0 0 6px #0f4;
  margin-top: 28px;
}

h1 {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 24px;
}

a {
  color: #2a6;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #0f4;
  text-shadow: 0 0 4px #0f4;
}

hr {
  border: 0;
  border-top: 1px solid #222;
  margin: 24px 0;
}

.meta {
  color: #666;
  font-size: 11px;
  margin-bottom: 24px;
}

/* Figure styling for media */
figure {
  margin: 28px 0;
  border: 1px solid #222;
  padding: 12px;
  background: #050505;
  text-align: center;
  border-radius: 4px;
}

figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid #111;
  border-radius: 2px;
}

figcaption, .help-text, ol.references {
  font-size: 12px;
  color: #a0a0a0;
  line-height: 1.4;
}

figcaption, .help-text {
  margin-top: 8px;
  font-style: italic;
  text-align: center;
}

ol.references {
  padding-left: 20px;
  line-height: 1.5;
}

ol.references a {
  color: #a0a0a0;
  text-decoration: underline;
}

ol.references a:hover {
  color: #0f4;
  text-shadow: 0 0 4px #0f4;
}

/* Blog index cards */
.post-card {
  border: 1px solid #222;
  padding: 16px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.post-card:hover {
  border-color: #2a6;
}

.post-card h2 {
  margin: 0 0 8px;
  font-size: 1.5em;
  text-shadow: none;
}

.post-card h2 a {
  color: #6a9;
}

.post-card h2 a:hover {
  color: #0f4;
  text-shadow: 0 0 4px #0f4;
}

.post-date {
  color: #666;
  font-size: 11px;
  margin-bottom: 8px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.post-tag {
  border: 1px solid #222;
  border-radius: 2px;
  padding: 2px 6px;
  color: #6a9;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Footer layout */
.footer {
  text-align: center;
  margin-top: 48px;
  color: #777;
  font-size: 11px;
}

.footer a {
  color: #888;
  margin: 0 8px;
}

code {
  font-family: monospace;
}

pre {
  background: #111;
  padding: 12px;
  border: 1px solid #222;
  color: #aaa;
  overflow-x: auto;
}

table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 12px;
}

th, td {
  border: 1px solid #222;
  padding: 8px;
  text-align: left;
}

th {
  background: #080808;
  color: #6a9;
}

/* Responsive video wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 2px;
  border: 1px solid #111;
  background: #000;
  margin: 10px 0;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Interactive widgets layout (shared green theme) */
.interactive-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
  align-items: center;
  background: #080808;
  border: 1px solid #222;
  padding: 16px;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0, 255, 68, 0.02);
}

.interactive-title {
  font-size: 14px;
  font-weight: bold;
  color: #0f4;
  text-shadow: 0 0 6px rgba(0, 255, 68, 0.3);
  margin-bottom: 4px;
}

.controls-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

button, select {
  background: #111;
  border: 1px solid #333;
  color: #888;
  font: 11px monospace;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
}

button:hover, select:hover {
  border-color: #0f4;
  color: #fff;
  box-shadow: 0 0 8px rgba(0, 255, 68, 0.15);
}

button.active {
  background: #0a2512;
  border-color: #0f4;
  color: #0f4;
}

/* Video comparison grid */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
  width: 100%;
}
@media (min-width: 600px) {
  .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }
}
