/* ===================================================================
   view-header.css — unified minimal section label header
   Mirrors the `.sl` (section label) used in Propuestas:
     KICKER · TITLE        [right slot]
     ──────────────
   All pages (Tasks, Templates, SEO Tracker, etc.) share this style.
   =================================================================== */

.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 22px;
  border-bottom: 0;
}

/* Left title block — lays out kicker + title inline as a single .sl-style label */
.view-header .vh-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  /* Same typography treatment as .sl */
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t3);
  position: relative;
}

/* Animated hairline accent — matches .sl::before */
.view-header .vh-left::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: vh-accent-shimmer 3.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes vh-accent-shimmer {
  0%   { background-position: 100% 0; opacity: 0.45; }
  50%  { background-position: 0% 0;   opacity: 1; }
  100% { background-position: -100% 0; opacity: 0.45; }
}

/* Kicker: mono uppercase pink — brand accent */
.view-header .kicker-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.view-header .ep-bracket {
  font-family: 'Noto Sans Mono', 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.view-header .ep-bracket::before { content: '['; padding-right: 4px; }
.view-header .ep-bracket::after  { content: ']'; padding-left: 4px; }

/* Hide the old 48px dash — vh-left::before handles the accent now */
.view-header .dash { display: none; }

/* Title now renders as the section label body (uppercase, small, t3/neutral).
   The uppercase transform guarantees visual parity with existing .sl labels
   like "PROPUESTAS" even when callers pass lowercase strings. */
.view-header .view-title {
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t3);
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.view-header .view-title .vh-name {
  color: var(--color-brand);
}

/* Right slot: filters, export buttons, month picker, etc. */
.view-header .vh-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* First content section gets a small top margin so the header
   doesn't feel glued to the first block. */
.view-header + * {
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .view-header {
    margin-bottom: 18px;
    gap: 12px;
  }
  .view-header .vh-left { flex-wrap: wrap; white-space: normal; }
  .view-header .view-title { white-space: normal; }
}

@media (max-width: 600px) {
  .view-header {
    margin-bottom: 14px;
  }
  .view-header .vh-right { width: 100%; }
}
