/* Digital College · link da bio · mobile-first */

:root {
  color-scheme: dark;
  --bg: #0b0709;
  --surface: #16161c;
  --surface-2: #1d1d25;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .2);
  --text: #f6f5f9;
  --muted: #c6c5d1;
  --brand: #ab226d;
  --pink: #ec147d;
  --pink-soft: #ffa6d3;
  --lime: #c6ef9b;
  --periwinkle: #b3bbff;
  --wa: #6ee59a;
  --radius: 20px;
  --gutter: 16px;
  --column: 480px;
  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Fundo em degradê: camada fixa (funciona no iOS, ao contrário de background-attachment: fixed) */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(232, 21, 122, .28), transparent 60%),
    radial-gradient(70% 45% at 0% 58%, rgba(124, 58, 237, .15), transparent 70%),
    radial-gradient(80% 40% at 50% 110%, rgba(232, 21, 122, .22), transparent 70%);
}

img, svg { display: block; max-width: 100%; }
a { position: relative; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed; top: -80px; left: 16px; z-index: 100;
  padding: 12px 16px; border-radius: 10px;
  background: #fff; color: #000; font-weight: 700;
}
.skip:focus { top: 12px; }

.shell {
  width: min(var(--column), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Topo */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 76px;
}
.logo { width: 120px; height: auto; }
.site-link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 4px;
  color: var(--muted); font-size: 13px; font-weight: 600; text-align: right;
  transition: color .2s;
}
.site-link:hover { color: #fff; }

/* Navegação sticky (segmentada no celular) */
.subnav {
  position: sticky; top: 0; z-index: 30; isolation: isolate;
  display: flex; gap: 8px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 10px var(--gutter);
}
.subnav::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: -1;
  width: 100vw; transform: translateX(-50%);
  background: rgba(11, 7, 9, .8);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .2s;
}
.subnav.is-stuck::before { opacity: 1; }
.subnav a {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: #e7e6ee;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.subnav a:hover { border-color: var(--pink); }
.subnav a[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Grid principal */
.main-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 12px; }
.right-column { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  padding: 22px 18px;
}

.kicker {
  font: 600 12px/1.4 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--pink-soft);
}
h1, h2 {
  margin: 10px 0 8px;
  font-size: clamp(22px, 5.6vw, 28px);
  line-height: 1.2; letter-spacing: -.02em; font-weight: 800;
}
h1 { font-size: clamp(26px, 7.4vw, 34px); line-height: 1.12; letter-spacing: -.03em; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Unidades */
.campuses { display: grid; gap: 10px; margin-top: 20px; container-type: inline-size; }
.campus {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  min-height: 68px; padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  transition: transform .2s, border-color .2s, background .2s;
}
.campus:hover { border-color: var(--pink); background: #24242d; transform: translateY(-1px); }
.campus:active { transform: scale(.985); }
.campus-icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(236, 20, 125, .14);
  color: var(--pink-soft);
}
.campus strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.campus small { display: flex; align-items: center; margin-top: 2px; color: var(--muted); font-size: 12px; }
.wa-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(110, 229, 154, .12);
  color: var(--wa);
  font-size: 12px; font-weight: 700; white-space: nowrap;
  transition: background .2s;
}
.campus:hover .wa-chip { background: rgba(110, 229, 154, .22); }
.wa-label { display: none; }

/* Rótulo "WhatsApp" só quando a lista tem espaço */
@container (min-width: 400px) {
  .wa-chip { width: auto; padding: 0 16px; }
  .wa-label { display: inline; }
}

.live-dot {
  display: inline-block; flex: none;
  width: 7px; height: 7px; margin-right: 7px;
  border-radius: 50%;
  background: #ff5252;
  animation: pulse 1.8s ease-out infinite;
}

.study-note {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.study-note span { margin-right: 8px; color: var(--pink); }

/* Eventos */
.experiences > .muted { margin-top: 2px; }

.event-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.event-filters button {
  min-height: 44px; padding: 0 16px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.event-filters button:hover { border-color: var(--pink); color: #fff; }
.event-filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.count {
  min-width: 22px; padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 12px; line-height: 1.5; text-align: center;
}

.event-list { display: grid; gap: 14px; margin-top: 16px; }
.event-list > li[hidden] { display: none; }

.event-card {
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.event-card:hover { transform: translateY(-2px); border-color: rgba(236, 20, 125, .6); box-shadow: 0 14px 40px rgba(236, 20, 125, .16); }
[data-category="plus"] .event-card:hover { border-color: rgba(198, 239, 155, .6); box-shadow: 0 14px 40px rgba(198, 239, 155, .12); }
[data-category="ntdc"] .event-card:hover { border-color: rgba(179, 187, 255, .6); box-shadow: 0 14px 40px rgba(179, 187, 255, .12); }

.event-art {
  position: relative;
  background: #1b1320;
  overflow: hidden;
}
.event-art--word { aspect-ratio: 356 / 183; }
.event-art img { width: 100%; height: auto; }
.art-word {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 30px; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(135deg, #ab226d, #5b1040);
}
.art-word > span { color: #ffd1e8; }

.card-body { display: flex; flex: 1; flex-direction: column; padding: 16px 16px 4px; }
.tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(236, 20, 125, .14);
  color: var(--pink-soft);
  font: 700 12px/1.4 var(--mono);
  letter-spacing: .06em; text-transform: uppercase;
}
[data-category="plus"] .tag { background: rgba(198, 239, 155, .12); color: var(--lime); }
[data-category="ntdc"] .tag { background: rgba(179, 187, 255, .12); color: var(--periwinkle); }

.card-body h3 {
  margin: 12px 0 14px;
  font-size: 16px; line-height: 1.35; font-weight: 700;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden;
}
.card-action {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px;
  border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 700;
}
.go {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transition: background .2s;
}
.event-card:hover .go { background: var(--brand); }

.empty { margin-top: 20px; padding: 28px 18px; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--muted); text-align: center; }

/* Comunidade */
.community { display: grid; gap: 16px; }
.support {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border-radius: 999px;
  background: var(--lime);
  color: #17210f;
  font-size: 14px; font-weight: 800;
  transition: background .2s, transform .2s;
}
.support:hover { background: #ddffb7; }
.support:active { transform: scale(.98); }

/* Unidade / franquia */
.franchise {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 18px;
  margin-top: 28px; padding: 24px 20px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #ab226d 0%, #7a1650 55%, #4a0f33 100%);
  transition: transform .25s, box-shadow .25s;
}
.franchise::after {
  content: ">_";
  position: absolute; right: -8px; bottom: -34px; z-index: -1;
  font: 800 150px/1 var(--mono);
  color: rgba(255, 255, 255, .07);
}
.franchise:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(171, 34, 109, .35); }
.franchise small { display: block; font: 600 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #ffd1e8; }
.franchise strong { display: block; max-width: 24ch; margin-top: 8px; font-size: clamp(19px, 5vw, 26px); line-height: 1.25; letter-spacing: -.02em; font-weight: 800; }
.franchise-cta {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border-radius: 999px;
  background: #fff; color: #4a0f33;
  font-size: 14px; font-weight: 800;
}

/* Rodapé */
footer {
  display: flex; flex-wrap: wrap; gap: 14px 24px;
  align-items: center; justify-content: space-between;
  margin-top: 28px;
  padding: 24px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.footer-dot { margin: 0 6px; color: var(--pink); }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-inline: -10px; }
footer nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-inline: 10px; transition: color .2s; }
footer nav a:hover { color: #fff; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 82, 82, .6); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(255, 82, 82, 0); }
}

@media (min-width: 480px) {
  .logo { width: 136px; }
  .panel { padding: 26px 24px; }
}

@media (min-width: 640px) {
  .topbar { min-height: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
