/* ════════════════════════════════════════════════════
   BANTOS — Global Stylesheet
   ════════════════════════════════════════════════════ */

/* ─── Design Tokens ────────────────────────────────────── */
:root {
  --bg-base:        #0f0f13;
  --bg-surface:     #17171f;
  --bg-elevated:    #1e1e2a;
  --bg-hover:       #252533;

  --border:         rgba(255,255,255,0.08);
  --border-strong:  rgba(255,255,255,0.15);

  --text-primary:   #f0f0f7;
  --text-secondary: #9898b0;
  --text-muted:     #5c5c75;

  --accent-purple:  #7c3aed;
  --accent-blue:    #2563eb;
  --accent-grad:    linear-gradient(135deg, #7c3aed, #2563eb);
  --accent-glow:    rgba(124,58,237,0.3);

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.6);

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  --max-w: 1100px;
}

/* ─── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── Utility ──────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px var(--accent-glow), 0 8px 24px rgba(0,0,0,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--bg-hover);
  border-color: var(--accent-purple);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-lg  { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-sm  { padding: 7px 14px; font-size: 0.82rem; }

/* ─── Alerts ───────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-weight: 500;
}
.alert-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-error   { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,19,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.brand-icon { font-size: 1.3rem; }
.brand-text { background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--bg-elevated); }
.nav-link.active { color: #fff; }

.nav-user { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border-strong); }
.user-name { font-size: 0.88rem; color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(124,58,237,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(37,99,235,0.15) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   BANTOS SECTION (Home)
   ═══════════════════════════════════════════════════════ */
.bantos-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-subtitle { font-size: 1rem; color: var(--text-secondary); max-width: 480px; margin: 0 auto; }

.bantos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.bantos-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.bantos-card:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.bantos-letter {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius-sm);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}
.bantos-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.bantos-info p  { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════
   EXAMPLE SECTION (Home)
   ═══════════════════════════════════════════════════════ */
.example-section { padding: 60px 0 80px; }
.example-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.example-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-elevated));
  border-bottom: 1px solid var(--border);
}
.example-icon  { font-size: 1.2rem; }
.example-label { font-weight: 700; font-size: 0.95rem; color: var(--accent); }
.example-badge {
  margin-left: 8px;
  padding: 2px 10px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.example-insight  { padding: 24px; }
.insight-quote     { font-style: italic; color: var(--text-primary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 12px; border-left: 3px solid var(--accent-purple); padding-left: 14px; }
.insight-explanation { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 16px; }
.insight-score { display: flex; align-items: center; gap: 10px; }
.score-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.score-bar { flex: 1; height: 6px; background: var(--bg-hover); border-radius: 100px; overflow: hidden; }
.score-fill { height: 100%; background: var(--accent-grad); border-radius: 100px; transition: width 0.8s ease; }
.score-num { font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════ */
.cta-section { padding: 80px 0; }
.cta-inner {
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(37,99,235,0.12));
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
}
.cta-inner h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-inner p  { color: var(--text-secondary); margin-bottom: 28px; }

/* ═══════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════ */
.dashboard-main { padding: 48px 0 80px; }
.page-header { margin-bottom: 36px; }
.page-title    { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.page-subtitle { color: var(--text-secondary); font-size: 0.95rem; }

/* Upload card */
.upload-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
}
.upload-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}
.upload-zone.drag-over, .upload-zone:has(#meetingFile:focus) {
  border-color: var(--accent-purple);
  background: rgba(124,58,237,0.05);
}
.upload-icon { font-size: 2.8rem; margin-bottom: 12px; }
.upload-text { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.95rem; }
.upload-label { cursor: pointer; }
.file-input { display: none; }
.upload-hint { margin-top: 14px; font-size: 0.78rem; color: var(--text-muted); }
.upload-actions { margin-top: 20px; display: flex; justify-content: flex-end; }

/* Spinner */
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Results */
.results-section { margin-top: 8px; }
.results-header { margin-bottom: 28px; }
.results-title    { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.results-filename { font-size: 1rem; font-weight: 400; color: var(--text-secondary); }
.results-subtitle { color: var(--text-secondary); font-size: 0.9rem; }

.bantos-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 20px;
}

.result-category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.result-category-card:hover { box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }

.result-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-elevated));
  border-bottom: 1px solid var(--border);
}
.result-category-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 12px;
  flex-shrink: 0;
}
.rcat-icon   { font-size: 1.1rem; }
.rcat-letter { display: none; }
.result-category-info { flex: 1; }
.rcat-label  { font-size: 0.95rem; font-weight: 700; color: var(--accent); margin: 0; }
.rcat-desc   { font-size: 0.78rem; color: var(--text-muted); }
.rcat-count  { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); background: var(--bg-hover); padding: 4px 10px; border-radius: 100px; }

.no-insights {
  padding: 24px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.87rem;
  font-style: italic;
}

.insights-list { padding: 8px 0; }
.insight-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.insight-item:last-child { border-bottom: none; }
.insight-item:hover { background: var(--bg-hover); }
.insight-index {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--bg-hover);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}
.insight-body { flex: 1; min-width: 0; }
.insight-quote {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 8px;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
.insight-explanation { font-size: 0.84rem; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; }
.insight-score { display: flex; align-items: center; gap: 8px; }
.insight-score .score-label { font-size: 0.72rem; }
.insight-score .score-num   { font-size: 0.75rem; }

/* ═══════════════════════════════════════════════════════
   INTEGRATIONS
   ═══════════════════════════════════════════════════════ */
.integrations-main { padding: 48px 0 80px; }

.coming-soon-banner {
  text-align: center;
  padding: 52px 24px;
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(37,99,235,0.08));
  border: 1px dashed rgba(124,58,237,0.3);
  border-radius: var(--radius-xl);
  margin-bottom: 40px;
}
.coming-soon-icon { font-size: 2.8rem; margin-bottom: 16px; }
.coming-soon-banner h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.coming-soon-banner p  { color: var(--text-secondary); max-width: 520px; margin: 0 auto; line-height: 1.7; }

.integrations-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.integration-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  opacity: 0.7;
  transition: all var(--transition);
}
.integration-card--soon:hover { opacity: 0.9; transform: translateY(-2px); }
.int-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.int-icon  { font-size: 1.6rem; }
.int-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(124,58,237,0.15);
  color: #c4b5fd;
  border-radius: 100px;
}
.integration-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.integration-card p  { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.5; }

.integrations-cta { text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.link { color: var(--accent-purple); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: #a78bfa; }

/* ═══════════════════════════════════════════════════════
   ERROR PAGE
   ═══════════════════════════════════════════════════════ */
.error-main { padding: 80px 0; }
.error-container { text-align: center; max-width: 480px; margin: 0 auto; }
.error-code { font-size: 7rem; font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 16px; }
.error-title   { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
.error-message { color: var(--text-secondary); margin-bottom: 32px; }

/* ═══════════════════════════════════════════════════════
   HISTORY SECTION
   ═══════════════════════════════════════════════════════ */
.history-section { border-top: 1px solid var(--border); margin-top: 60px; padding-top: 40px; }
.history-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 24px; color: var(--text-primary); }
.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-item { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: all var(--transition); }
.history-item:hover { border-color: var(--border-strong); }
.history-summary { display: flex; align-items: center; gap: 16px; padding: 20px; cursor: pointer; list-style: none; user-select: none; }
.history-summary::-webkit-details-marker { display: none; }
.history-icon { font-size: 1.2rem; }
.history-name { flex: 1; font-weight: 600; font-size: 0.95rem; }
.history-date { font-size: 0.85rem; color: var(--text-muted); }
.history-arrow { font-size: 0.7rem; color: var(--text-muted); transition: transform var(--transition); }
.history-item[open] .history-arrow { transform: rotate(90deg); }
.history-item[open] { border-color: var(--accent-purple); box-shadow: var(--shadow-sm); }
.history-results { padding: 0 20px 20px; border-top: 1px solid var(--border); margin-top: 4px; display: grid; gap: 16px; }
.history-category { background: var(--bg-elevated); border-radius: var(--radius-sm); border-left: 3px solid var(--accent); padding: 16px; }
.hcat-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.95rem; color: var(--accent); }
.hcat-icon { font-size: 1.1rem; }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer { border-top: 1px solid var(--border); padding: 24px 0; }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-brand { font-weight: 700; font-size: 0.95rem; }
.footer-copy  { font-size: 0.82rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  .nav-links .nav-link:not(.active) { display: none; }
  .hero { padding: 80px 0 60px; }
  .bantos-results-grid { grid-template-columns: 1fr; }
  .upload-zone { padding: 32px 16px; }
  .cta-inner { padding: 40px 20px; }
  .footer-inner { justify-content: center; text-align: center; }
}
