/* ==========================================
   ORALE — journal.css
   The Build Journal — timeline layout
   ========================================== */

/* --- NAV --- */
.journal-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .journal-nav {
  background: rgba(250, 250, 250, 0.85);
}

.journal-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.journal-nav-logo {
  display: flex;
  align-items: center;
}
.journal-nav-logo-img {
  height: 28px;
  width: auto;
}

.journal-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.journal-nav-links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.journal-nav-links a:hover,
.journal-nav-links a.active {
  color: var(--gold);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* --- HERO --- */
.journal-hero {
  padding: 10rem 2rem 4rem;
  text-align: center;
}

.journal-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.journal-hero-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.7;
}

/* --- TIMELINE --- */
.journal-timeline {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.journal-entry {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* Date column */
.entry-date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.entry-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-shrink: 0;
}

.entry-day {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
}

.entry-month {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-top: 2px;
}

.timeline-line {
  width: 1px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, var(--border), transparent);
  margin-top: 0.5rem;
}

/* Content column */
.entry-content {
  min-width: 0;
}

.entry-header {
  margin-bottom: 1.5rem;
}

.entry-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  margin-right: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag-breakthrough {
  color: var(--gold);
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.2);
}

.tag-build {
  color: var(--green);
  background: rgba(0, 214, 143, 0.08);
  border: 1px solid rgba(0, 214, 143, 0.15);
}

.tag-data {
  color: #7C9AFF;
  background: rgba(124, 154, 255, 0.08);
  border: 1px solid rgba(124, 154, 255, 0.15);
}

.tag-signal {
  color: var(--red);
  background: rgba(255, 71, 87, 0.08);
  border: 1px solid rgba(255, 71, 87, 0.15);
}

.tag-lesson {
  color: #C084FC;
  background: rgba(192, 132, 252, 0.08);
  border: 1px solid rgba(192, 132, 252, 0.15);
}

.entry-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
}

.entry-subtitle {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.entry-body {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.entry-body p {
  margin-bottom: 1.2rem;
}
.entry-body p:last-child {
  margin-bottom: 0;
}

.entry-body strong {
  color: var(--text-primary);
  font-weight: 700;
}

.entry-body em {
  color: var(--text-primary);
  font-style: italic;
}

.entry-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(245, 166, 35, 0.08);
  color: var(--gold);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.entry-separator {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* Entry lists */
.entry-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.2rem;
}

.entry-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.entry-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Entry stats */
.entry-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  flex: 1;
  min-width: 100px;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Entry terminal */
.entry-terminal {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
}

/* Entry callout */
.entry-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(245, 166, 35, 0.05);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
}

.callout-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.6;
}

.entry-callout p {
  margin: 0 !important;
  font-size: 0.88rem;
  line-height: 1.7;
}

/* --- FOOTER --- */
.journal-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.journal-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

.footer-text a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-text a:hover {
  color: var(--gold);
}

/* --- RESPONSIVE --- */
@media (max-width: 640px) {
  .journal-hero {
    padding: 8rem 1.5rem 3rem;
  }

  .journal-timeline {
    padding: 1.5rem 1rem 4rem;
  }

  .journal-entry {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
  }

  .entry-date-badge {
    width: 44px;
    height: 44px;
  }

  .entry-day {
    font-size: 1.1rem;
  }

  .entry-stats {
    flex-direction: column;
  }

  .stat-chip {
    flex-direction: row;
    gap: 0.75rem;
    justify-content: center;
    min-width: unset;
  }

  .entry-terminal .terminal-body {
    font-size: 0.7rem;
    padding: 0.75rem;
  }
}
