/* Styles specific to the reimagined home page */

.dstla-home {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  padding: 0 0 var(--space-7);
}

.connection-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.connection-copy {
  max-width: 480px;
}

.connection-copy h2 {
  font-family: var(--font-family-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.connection-copy p:last-child {
  color: var(--color-text-light);
}

/* Feed grid for connect panel */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
  width: 100%;
  max-width: 640px;
  margin-top: var(--space-3);
}

.feed-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-4);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  text-decoration: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.feed-card i {
  font-size: 1.5rem;
  color: var(--color-text-muted);
}

.feed-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.feed-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.feed-card--available {
  cursor: pointer;
  border-color: var(--color-primary);
  background: var(--color-surface);
}

.feed-card--available i {
  color: var(--color-primary);
}

.feed-card--available .feed-status {
  color: var(--color-primary);
  font-weight: 600;
}

.feed-card--available:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.feed-card--available:hover i,
.feed-card--available:hover .feed-name,
.feed-card--available:hover .feed-status {
  color: var(--color-primary-button-text);
}

.feed-card--soon {
  opacity: 0.6;
  cursor: default;
}

.briefing-shell {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.briefing-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* State: CTA / Empty */
.state-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-2) 0;
  animation: fadeIn var(--transition-fast) ease-in;
}

.editorial-copy {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 90%;
}

.editorial-copy p {
  margin-bottom: 0.5rem;
}

.briefing-cta {
  font-size: 1.1rem;
  padding: 1rem 2rem;
  width: 100%;
  font-weight: 600;
  /* Embossed look attempt */
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 0 var(--color-border);
  transition: all 0.1s ease;
}

.briefing-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--color-border);
  border-color: var(--color-text-muted);
}

.briefing-cta:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 var(--color-border);
}

/* Use primary button styles but override for slab context if needed */
.briefing-cta.btn-primary {
    background: var(--color-primary);
    color: var(--color-primary-button-text);
    border: 1px solid var(--color-primary);
    box-shadow: 0 4px 0 rgba(95, 124, 255, 0.2);
}
.briefing-cta.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    opacity: 1;
}


/* Summary & Status Content */
.summary-stream {
  transition: opacity var(--transition-fast);
  opacity: 0; /* Hidden by default until .is-streaming */
  display: none; /* Completely remove from flow until active */
}

/* Visibility States */
.briefing-card[data-show-summary="true"] .summary-stream,
.briefing-card.is-streaming .summary-stream {
  opacity: 1;
  display: block;
}

/* Hide CTA when progress or streaming or showing summary */
.briefing-card.is-progress .state-cta,
.briefing-card.is-streaming .state-cta,
.briefing-card.has-error .state-cta,
.briefing-card[data-show-summary="true"] .state-cta {
  display: none;
}

/* Footer Quiet Strip */
.quiet-strip {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-alt);
  font-size: 0.9rem;
  color: var(--color-text-light);

  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.history-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.history-chip {
  padding: 0.2rem 0.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.history-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.history-link {
  margin-left: auto;
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.history-link:hover {
  color: var(--color-primary);
}

/* Hero / Value / Plan sections (Unchanged mostly) */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  align-items: center;
}

.hero-preview {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-5);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.preview-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.preview-card h3 {
  margin: 0;
}

.preview-card ul {
  margin-left: 1.25rem;
  color: var(--color-text);
}

.preview-card li {
  margin-bottom: 0.5rem;
}

.preview-header {
  display: flex;
  gap: 0.75rem;
}

.pill--accent {
  background: rgba(95, 124, 255, 0.12);
  color: var(--color-primary);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.signal-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  color: var(--color-text);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.value-card {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--space-4);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.plan-overview {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-5);
  background: var(--color-surface);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.plan-list {
  display: grid;
  gap: var(--space-3);
}

.plan-chip {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--space-3);
  background: var(--color-surface-alt);
}

.plan-chip--accent {
  border-color: var(--color-primary);
  background: rgba(95, 124, 255, 0.1);
}

.subtle-link {
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
}

.subtle-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

@media (max-width: 900px) {
  .briefing-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-preview,
  .plan-overview {
    padding: var(--space-4);
  }
}
