/* ===========================================================================
   Tema SUNSET — crepusculo / por do sol em chave DARK quente para o LaTec
   (CAV/UDESC). Fundo roxo-escuro com superficies SOLIDAS, gradiente quente
   laranja -> rosa -> violeta como destaque, glow morno sutil. Titulos 'Sora'
   (peso 600), corpo Inter. Reveste as MESMAS paginas do site (mesmo vocabulario
   de classes do tema institucional/midnight).
   Sensacao: por do sol vibrante, noturno e quente.
   =========================================================================== */
:root {
  --bg: #1a1025;
  --bg-2: #1a1025;
  --surface: #241634;
  --surface-2: #2e1d42;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .18);
  --text: #f3e9f5;
  --muted: #b09ec0;
  --primary: #f97316;
  --primary-d: #ec4899;
  --accent: #a855f7;
  --accent-d: #9333ea;
  --cyan: #38bdf8;
  --violet: #a855f7;
  --grad: linear-gradient(120deg, #f97316, #ec4899, #a855f7);
  --grad-soft: rgba(236, 72, 153, .14);
  --radius: 16px;
  --shadow: 0 18px 46px -22px rgba(0, 0, 0, .78);
  --glow: 0 12px 34px -14px rgba(236, 72, 153, .55);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Sora', 'Space Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.62; }

/* Crepusculo: halos radiais quentes (laranja/rosa/violeta) ao fundo */
.aurora-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 560px at 82% -10%, rgba(249, 115, 22, .22), transparent 60%),
    radial-gradient(820px 540px at 14% 8%, rgba(236, 72, 153, .18), transparent 62%),
    radial-gradient(760px 520px at 50% 112%, rgba(168, 85, 247, .16), transparent 64%);
}

a { color: var(--primary-d); text-decoration: none; }
a:hover { color: var(--primary); text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.16; letter-spacing: -.01em; color: #fbeef7; }

.container-l { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--primary-d); font-weight: 700; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); font-weight: 700; }

/* ---------- Navbar (chrome proprio do tema) ---------- */
.sun-nav { position: sticky; top: 0; z-index: 50; background: var(--surface); border-top: 3px solid transparent; border-image: var(--grad) 1; border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(255,255,255,.03), 0 12px 32px -24px rgba(0,0,0,.9); }
.sun-nav .container-l { display: flex; align-items: center; gap: 18px; height: 68px; }
.sun-brand { display: flex; align-items: center; gap: 10px; }
.sun-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.sun-links a { color: #d6c7e2; font-size: .92rem; font-weight: 500; padding: 8px 12px; border-radius: 9px; }
.sun-links a:hover { color: var(--primary); text-decoration: none; background: var(--surface-2); }
.sun-links a.active { color: var(--primary); font-weight: 700; box-shadow: inset 0 -2px 0 var(--primary-d); border-radius: 0; }
.sun-cta { margin-left: 10px; background: var(--grad); color: #fff !important; border: 1px solid transparent; padding: 7px 16px !important; border-radius: 10px; font-weight: 700 !important; }
.sun-cta:hover { filter: brightness(1.07); color: #fff !important; box-shadow: var(--glow); }
.sun-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border-strong); width: 42px; height: 42px; border-radius: 10px; font-size: 1.3rem; color: var(--text); }

/* ---------- Botoes ---------- */
.btn-a { display: inline-flex; align-items: center; gap: 9px; padding: 11px 22px; border-radius: 11px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: .16s; }
.btn-primary-a { background: var(--grad); color: #fff; border-color: transparent; }
.btn-primary-a:hover { filter: brightness(1.07); color: #fff; text-decoration: none; box-shadow: var(--glow); }
.btn-ghost-a { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost-a:hover { border-color: var(--primary-d); color: var(--primary); text-decoration: none; }

/* ---------- Secoes / hero ---------- */
.sec { padding: 72px 0; }
.sec-head { max-width: 720px; margin-bottom: 38px; }
.sec-head h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); margin: 10px 0 8px; }
.sec-head p { color: var(--muted); font-size: 1.04rem; margin: 0; }
.hero { padding: 78px 0 58px; background: linear-gradient(180deg, #241634, var(--bg)); border-bottom: 1px solid var(--border); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 14px 0; font-weight: 700; }
.hero .lead { font-size: clamp(1.04rem, 1.7vw, 1.24rem); color: #d6c7e2; max-width: 640px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 34px; }
.foco-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: .86rem; }
.chip i { color: var(--primary); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.stat { padding: 30px 18px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--font-head); font-size: 2.7rem; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--primary-d); }
.stat .lbl { color: var(--muted); font-size: .87rem; margin-top: 8px; }

/* ---------- Cards ---------- */
.card-a { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: .18s; height: 100%; box-shadow: var(--shadow); }
.card-a:hover { border-color: var(--border-strong); box-shadow: 0 24px 56px -22px rgba(0,0,0,.85), var(--glow); transform: translateY(-2px); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Pessoas ---------- */
.avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-strong); flex: none; }
.avatar-iniciais { display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff; background: var(--grad); }
.avatar-lg { width: 104px; height: 104px; border-radius: 50%; font-size: 2rem; }
.pessoa-card { display: flex; flex-direction: column; gap: 13px; }
.pessoa-card .nome { font-family: var(--font-head); font-weight: 600; font-size: 1.14rem; }
.pessoa-card .cargo { color: var(--primary); font-size: .84rem; font-weight: 600; }
.pessoa-meta { color: var(--muted); font-size: .9rem; }
.pessoa-links { display: flex; gap: 14px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }
.pessoa-links a { color: var(--muted); font-size: 1.1rem; }
.pessoa-links a:hover { color: var(--primary); }

/* ---------- Pesquisas ---------- */
.selo { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 8px; font-size: .75rem; font-weight: 600; border: 1px solid var(--border-strong); background: var(--surface-2); color: #e0d2ec; }
.selo-tese { background: rgba(168, 85, 247, .16); color: #c89bf7; border-color: rgba(168, 85, 247, .34); }
.selo-dissertacao { background: rgba(56, 189, 248, .14); color: #7dd3fc; border-color: rgba(56, 189, 248, .32); }
.status-andamento { background: rgba(56, 189, 248, .14); color: #7dd3fc; border-color: rgba(56, 189, 248, .32); }
.status-qualificada { background: rgba(249, 115, 22, .16); color: #fdba74; border-color: rgba(249, 115, 22, .34); }
.status-defendida { background: rgba(236, 72, 153, .16); color: #f9a8d4; border-color: rgba(236, 72, 153, .36); }
.pesquisa-card .titulo { font-family: var(--font-head); font-weight: 600; font-size: 1.16rem; margin: 12px 0 8px; line-height: 1.32; }
.pesquisa-card .resumo { color: #cbbcd9; font-size: .95rem; }
.palavras { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.palavra { font-size: .74rem; color: var(--muted); background: var(--surface-2); padding: 4px 10px; border-radius: 7px; }
.filtros { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.filtros a { padding: 7px 15px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .86rem; }
.filtros a:hover { text-decoration: none; border-color: var(--primary-d); color: var(--primary); }
.filtros a.on { background: var(--grad); color: #fff; border-color: transparent; font-weight: 700; }

/* ---------- Eventos / defesas ---------- */
.evento-card { overflow: hidden; padding: 0; }
.evento-foto { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--border); }
.evento-foto.ph { background: var(--surface-2); display: grid; place-items: center; font-size: 2.8rem; color: var(--primary); }
.evento-body { padding: 24px; }
.banca-list { list-style: none; padding: 0; margin: 10px 0 0; }
.banca-list li { color: #cbbcd9; font-size: .9rem; padding: 3px 0 3px 20px; position: relative; }
.banca-list li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--primary); font-size: .8rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.tl-item { position: relative; margin-bottom: 26px; }
.tl-item::before { content: ""; position: absolute; left: -29px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary-d); }
.tl-date { font-size: .8rem; color: var(--primary); font-weight: 700; }
.tl-card { margin-top: 8px; }
.tl-kind { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--muted); margin-bottom: 6px; }
.tl-title { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; }
.tl-foto { width: 100%; max-height: 280px; object-fit: cover; border-radius: 10px; margin-top: 12px; border: 1px solid var(--border); }

/* ---------- Projetos ---------- */
.projeto-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.projeto-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-bottom: 1px solid var(--border); }
.projeto-img.ph { background: var(--surface-2); display: grid; place-items: center; font-size: 2.6rem; color: var(--primary); }
.projeto-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.projeto-body .titulo { font-family: var(--font-head); font-weight: 600; font-size: 1.14rem; }
.techs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tech { font-size: .72rem; color: var(--primary); background: var(--grad-soft); border: 1px solid rgba(236, 72, 153, .3); padding: 3px 9px; border-radius: 7px; }
.projeto-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }

/* ---------- Sobre / institucional ---------- */
.prosa p { color: #d6c7e2; font-size: 1.08rem; margin-bottom: 18px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item i { color: var(--primary); font-size: 1.35rem; margin-top: 2px; }
.info-item .k { font-size: .77rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.info-item .v { font-weight: 600; }

/* ---------- Util ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty i { font-size: 2.6rem; color: var(--border-strong); display: block; margin-bottom: 12px; }
.reveal { opacity: 0; transform: translateY(14px); transition: .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .info-grid { grid-template-columns: 1fr; }
  .sun-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); padding: 12px; gap: 2px; border-bottom: 1px solid var(--border-strong); box-shadow: 0 18px 36px -18px rgba(0,0,0,.85); }
  .sun-links.open { display: flex; }
  .sun-links a.active { box-shadow: inset 3px 0 0 var(--primary-d); border-radius: 9px; }
  .sun-cta { margin-left: 0; margin-top: 4px; text-align: center; justify-content: center; }
  .sun-toggle { display: inline-block; }
  .tema-dock .lbl { display: none; }
}
@media (max-width: 560px) { .grid-3, .grid-4, .grid-2, .stats { grid-template-columns: 1fr; } .stat { border-right: none; border-bottom: 1px solid var(--border); } .stat:last-child { border-bottom: none; } .sec { padding: 52px 0; } }
