/* ============================================================
   hero.css — Main content area, breadcrumb, hero section, page-actions
   ============================================================ */

/* ── LAYOUT ── */
main {
  flex: 1;
  width: 100%;
  max-width: 1750px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
}

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.6rem 0;
  flex-wrap: wrap;
}

.breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.breadcrumb-back:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--component-border-color);
}

.breadcrumb-sep {
  color: var(--text-secondary);
  font-size: 0.8rem;
  opacity: 0.5;
}

.breadcrumb-current {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0.8;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
  animation: fadeIn 0.4s ease-out;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--text-primary), var(--page-title-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 0;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p  { font-size: 1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
}

/* ── PAGE ACTIONS — below hero, right-aligned, for export/add buttons ── */
.page-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .page-actions {
    justify-content: center;
  }

  /* Card detail two-column layout: stack vertically on mobile */
  .card-detail-layout {
    flex-direction: column;
  }
  .card-stat-panel {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100%;
  }
}
