/* ========================================
   Doc2Bid Journal — Stylesheet
   Extends styles.css with journal-specific UI
   ======================================== */

/* --- Journal Hero (lighter, no video) --- */
.journal-hero {
  padding-top: calc(var(--header-height) + 6vh);
  padding-bottom: 60px;
  text-align: center;
}

.journal-hero .section-inner {
  max-width: 820px;
}

.journal-hero .hero-tag {
  margin-bottom: 20px;
}

.journal-hero .hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 22px;
}

.journal-hero .hero-heading em {
  font-style: normal;
  color: var(--color-accent);
}

.journal-hero .hero-sub {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0 auto 32px;
  max-width: 580px;
}

.journal-hero .hero-cta-group {
  justify-content: center;
}

/* --- Entries Grid Section --- */
.entries-section {
  padding: 40px 0 100px;
}

.entries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.entries-grid--small {
  grid-template-columns: repeat(3, 1fr);
}

/* --- Entry Card --- */
.entry-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.07);
  border-color: var(--color-accent-light);
}

/* Scheduled entries: hidden until client-side script reveals them.
   Required because .entry-card { display: flex } would otherwise override
   the browser's default [hidden] { display: none } rule. */
.entry-card[hidden] {
  display: none;
}

.entry-card__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: 14px;
}

.entry-card__date {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.entry-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 12px;
}

.entry-card__excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.entry-card__more {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.entry-card__more::after {
  content: '→';
  transition: transform 0.2s ease;
}

.entry-card:hover .entry-card__more::after {
  transform: translateX(3px);
}

/* --- Individual Entry Article --- */
.entry-article {
  padding-top: calc(var(--header-height) + 5vh);
  padding-bottom: 80px;
}

.entry-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

.entry-back {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 32px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.entry-back:hover {
  color: var(--color-accent-light);
  transform: translateX(-3px);
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.entry-date {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.entry-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: 36px;
}

/* --- Entry Body Prose --- */
.entry-body {
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--color-text);
}

.entry-body p {
  margin-bottom: 1.4em;
}

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

.entry-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 2em 0 0.7em;
  color: var(--color-text);
}

.entry-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.6em 0 0.6em;
  color: var(--color-text);
}

.entry-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.entry-body a:hover {
  color: var(--color-cta);
}

.entry-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 4px 0 4px 24px;
  margin: 1.6em 0;
  color: var(--color-text-muted);
  font-style: italic;
}

.entry-body ul,
.entry-body ol {
  margin: 0 0 1.4em 1.4em;
}

.entry-body li {
  margin-bottom: 0.5em;
}

.entry-body code {
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  color: var(--color-accent);
}

.entry-body pre {
  background: #1A1A1A;
  color: #EBE7E0;
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.6em 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.entry-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.entry-body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.4em 0;
}

/* --- More entries section (below an entry) --- */
.more-entries {
  padding: 60px 0 100px;
  background: var(--color-bg-alt);
}

.more-entries .section-label {
  text-align: center;
}

.more-entries .section-heading {
  text-align: center;
  margin-bottom: 40px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .entries-grid,
  .entries-grid--small {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .journal-hero {
    padding-top: calc(var(--header-height) + 4vh);
  }
}

@media (max-width: 600px) {
  .entries-grid,
  .entries-grid--small {
    grid-template-columns: 1fr;
  }

  .entry-title {
    font-size: 1.75rem;
  }

  .entry-body {
    font-size: 1rem;
  }

  .entries-section {
    padding: 20px 0 60px;
  }
}
