/* Briefing page styles — extends theme.css tokens */

/* HERO */
.briefing-hero {
  padding: 64px 48px 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.briefing-hero-inner { max-width: 640px; }
.briefing-hero .section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-secondary);
  margin-bottom: 16px;
}
.briefing-hero .hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
}
.briefing-hero .hero-sub {
  font-size: 17px;
  color: var(--fg-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 0;
}

/* MAIN LAYOUT */
.briefing-main {
  padding: 0 48px 80px;
  max-width: 1100px;
  margin: 0 auto;
}
.briefing-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}

/* INPUT PANEL */
.briefing-input-panel {
  position: sticky;
  top: 32px;
}
.input-group {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
#topic-input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg);
  background: transparent;
  min-width: 0;
}
#topic-input::placeholder { color: var(--fg-secondary); }
#run-btn {
  padding: 16px 24px;
  background: var(--accent);
  color: white;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
#run-btn:hover { background: #a04e20; }
#run-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.input-hint {
  font-size: 12px;
  color: var(--fg-secondary);
  margin-top: 10px;
  text-align: center;
}
.example-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}
.examples-label {
  font-size: 13px;
  color: var(--fg-secondary);
  font-weight: 500;
}
.example-chip {
  display: inline-block;
  padding: 5px 12px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.example-chip:hover { background: #e5c0ab; }

/* OUTPUT PANEL */
.briefing-output {
  min-height: 400px;
}
.output-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 40px 0;
  color: var(--fg-secondary);
}
.output-empty svg { opacity: 0.4; }
.output-empty h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}
.output-empty p { font-size: 14px; }

/* BRIEFING CARD */
.briefing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.briefing-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.briefing-topic-tag {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 100px;
}
.briefing-timestamp {
  font-size: 12px;
  color: var(--fg-secondary);
}
.briefing-summary {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--fg);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.briefing-signals-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-secondary);
  margin-bottom: 14px;
}
.briefing-signals {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.briefing-signals li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.55;
}
.briefing-signals li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}
.briefing-callout {
  background: var(--fg);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.briefing-callout-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(253,252,249,0.5);
  margin-bottom: 8px;
}
.briefing-callout-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.55;
}
.briefing-sources {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.briefing-sources-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-secondary);
  margin-bottom: 12px;
}
.briefing-sources ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.briefing-sources li a {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.briefing-sources li a:hover { text-decoration: underline; }
.briefing-sources li a::before {
  content: '↗';
  font-size: 11px;
}

/* Loading state */
.briefing-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 0;
  color: var(--fg-secondary);
}
.spinner {
  width: 28px;
  height: 28px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Error state */
.briefing-error {
  background: #fdf2f2;
  border: 1px solid #f5c6c6;
  border-radius: 12px;
  padding: 20px 24px;
  color: #c0392b;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .briefing-layout { grid-template-columns: 1fr; }
  .briefing-input-panel { position: static; }
  .briefing-hero, .briefing-main { padding-left: 24px; padding-right: 24px; }
}