/* Homepage-specific styles */

/* ======= STARSHIP-STYLE PROMPT ======= */
.starship-prompt {
  margin-bottom: 4px;
  line-height: 1.8;
}

.sp-dir {
  color: var(--blue);
  font-weight: 700;
}

.sp-dim {
  color: var(--text-dim);
}

.sp-branch {
  color: var(--magenta);
  font-weight: 700;
}

.sp-python {
  color: var(--yellow);
}

.sp-dollar {
  color: var(--green);
  font-weight: 700;
}

/* ASCII art banner (inside cmd output) */
.banner {
  color: var(--green);
  font-size: 11px;
  line-height: 1.3;
  margin: 12px 0 8px;
  white-space: pre;
}

.banner-sub {
  color: var(--text-dim);
  font-size: 12px;
  padding-left: 2px;
}

.banner-links {
  display: flex;
  gap: 20px;
  margin-top: 6px;
  padding-left: 2px;
}

.banner-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s;
}

.banner-links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Reduce gap after the blog.py prompt cmd — it leads into >>> session */
.cmd--connected {
  margin-bottom: 8px;
}

/* Command animation delays (homepage)
   Children of .terminal:
     1: cmd (print_me)
     2: cmd (blog.py prompt)  --connected
     3: cmd (>>> posts)
*/
.cmd:nth-child(2) { animation-delay: 0.6s; }
.cmd:nth-child(3) { animation-delay: 0.9s; }

/* Output blocks */
.output {
  padding: 16px 0 0 20px;
  border-left: 2px solid var(--border);
  margin: 12px 0 0 8px;
  color: var(--text);
}

.output-header {
  color: var(--yellow);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.output-text {
  color: var(--text-dim);
  font-size: 13px;
}

/* Blog post cards */
.post-list {
  margin: 16px 0 0 20px;
  padding-left: 20px;
  border-left: 2px solid var(--border);
}

.post-entry {
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
  position: relative;
}

.post-entry:hover {
  border-color: var(--green-dim);
  transform: translateX(4px);
}

.post-entry::before {
  display: none;
}

.post-title {
  color: var(--yellow);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 4px;
}

.post-title a {
  color: inherit;
  text-decoration: none;
}

.post-title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 3px;
}

.post-meta {
  color: var(--text-dim);
  font-size: 12px;
}

.post-meta .tag { color: var(--cyan); }

.post-desc {
  color: var(--text);
  font-size: 13px;
  margin-top: 8px;
  opacity: 0.8;
}

/* About section styled as class definition */
.about-class {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  margin: 16px 0 0 28px;
}

.about-class .line { padding: 2px 0; }
.about-class .indent { padding-left: 24px; }
.about-class .indent2 { padding-left: 48px; }

/* Responsive — homepage */
@media (max-width: 640px) {
  .banner { font-size: 8px; }
  .terminal { padding: 24px 16px 48px; }
  .about-class { margin-left: 12px; padding: 16px; }
  .post-list { margin-left: 8px; padding-left: 12px; }
}
