/*
 * Paleta Expo Summit Campo Bom (sobrepor tema inwink / South Summit):
 * --expo-accent: #c9e70f | --expo-primary: #3d0976 | --expo-surface: #f0f6ff
 * Carregar por último (depois de expo-spa-overrides.css).
 */

html.expo-summit-site {
  --expo-primary: #3d0976;
  --expo-primary-hover: #320764;
  --expo-primary-soft: rgba(61, 9, 118, 0.08);
  --expo-accent: #c9e70f;
  --expo-accent-soft: rgba(201, 231, 15, 0.35);
  --expo-accent-hover: #b8d410;
  --expo-surface: #f0f6ff;
  --expo-surface-raised: #ffffff;
  --expo-surface-alt: #dfeaf8;
  --expo-text: #2f0a63;
  --expo-text-muted: rgba(47, 10, 99, 0.72);
  --expo-border: rgba(61, 9, 118, 0.14);
  --expo-border-strong: rgba(61, 9, 118, 0.22);
  --expo-radius-lg: 20px;
  --expo-radius-card: 24px;
  --expo-shadow-header: 0 2px 24px rgba(61, 9, 118, 0.07);
  --expo-shadow-card: 0 14px 48px rgba(61, 9, 118, 0.09);
  --expo-shadow-btn: 0 8px 28px rgba(61, 9, 118, 0.22);
  --expo-ease: cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Âncoras (#inicio, #programacao, …): rolagem suave a partir do menu e de outros links internos */
  scroll-behavior: smooth;
}

html.expo-summit-site,
html.expo-summit-site body {
  background-color: var(--expo-surface) !important;
  color: var(--expo-text) !important;
}

html.expo-summit-site #root {
  background-color: var(--expo-surface);
}

/* Blocos de tema (secções) */
html.expo-summit-site .bloctheme-5e65b858-9872-f011-8dca-0022488a3cad.bloc-defaultbg {
  background-color: var(--expo-surface) !important;
  color: var(--expo-text) !important;
}

html.expo-summit-site .bloctheme-5e65b858-9872-f011-8dca-0022488a3cad.bloc-extralightbg {
  background-color: var(--expo-surface-alt) !important;
  color: var(--expo-text) !important;
}

/* Tipografia de conteúdo */
html.expo-summit-site .expo-main h1,
html.expo-summit-site .expo-main h2,
html.expo-summit-site .expo-main h3,
html.expo-summit-site .expo-main h4 {
  color: var(--expo-primary) !important;
  letter-spacing: -0.02em;
}

html.expo-summit-site .expo-main .description,
html.expo-summit-site .expo-main .description p {
  color: var(--expo-text-muted);
  line-height: 1.6;
}

html.expo-summit-site .expo-main .description a {
  color: var(--expo-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s var(--expo-ease), text-decoration-color 0.15s var(--expo-ease);
}

html.expo-summit-site .expo-main .description a:hover {
  color: var(--expo-primary-hover);
  text-decoration-color: var(--expo-accent);
}

/* Pré-título (badge) — lima suave + contorno roxo */
html.expo-summit-site .expo-main .bloc-title .pretitle {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--expo-accent-soft);
  border: 1px solid var(--expo-border);
  color: var(--expo-primary) !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* Ritmo vertical entre secções */
html.expo-summit-site .expo-section {
  padding-block: clamp(2.5rem, 5.5vw, 4.25rem);
}

/* Hero — leve profundidade sem competir com o conteúdo */
html.expo-summit-site .expo-hero {
  position: relative;
  z-index: 1;
  overflow: visible;
  background-image: linear-gradient(
    165deg,
    var(--expo-surface-raised) 0%,
    var(--expo-surface) 42%,
    color-mix(in srgb, var(--expo-surface-alt) 55%, var(--expo-surface)) 100%
  ) !important;
}

/* Hero — imagem: sombra mais marcada + hover com leve zoom (ficheiro: hero-expo-summit-placeholder.jpg) */
html.expo-summit-site .expo-hero__figure {
  display: block;
  position: relative;
  overflow: visible;
  border-radius: var(--expo-radius-lg);
}

html.expo-summit-site .expo-hero__figure img {
  border-radius: var(--expo-radius-lg);
  box-shadow:
    0 24px 56px rgba(61, 9, 118, 0.2),
    0 8px 24px rgba(61, 9, 118, 0.12),
    0 0 0 1px rgba(61, 9, 118, 0.06);
  transition: transform 0.35s var(--expo-ease), box-shadow 0.35s var(--expo-ease);
}

@media (hover: hover) and (pointer: fine) {
  /*
   * Zoom ultrapassa a caixa da secção; sem z-index alto o header fixo e a secção seguinte pintam por cima.
   * :has() limita o empilhamento extra ao hover na figura (não em todo o hero).
   */
  html.expo-summit-site .expo-hero:has(.expo-hero__figure:hover) {
    z-index: 100001;
  }

  html.expo-summit-site .expo-hero__figure:hover img {
    transform: scale(1.035);
    box-shadow:
      0 32px 72px rgba(61, 9, 118, 0.26),
      0 12px 32px rgba(61, 9, 118, 0.14),
      0 0 0 1px rgba(61, 9, 118, 0.08);
  }
}

/* Botões: primário roxo (alto contraste em #f0f6ff) */
html.expo-summit-site .expo-main .bloc-actions a[role="button"]:not(.lightbtn) {
  background: var(--expo-primary) !important;
  color: #ffffff !important;
  border: 2px solid transparent !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  box-shadow: var(--expo-shadow-btn);
  transition: background 0.18s var(--expo-ease), box-shadow 0.18s var(--expo-ease), transform 0.12s var(--expo-ease);
}

html.expo-summit-site .expo-main .bloc-actions a[role="button"]:not(.lightbtn):hover {
  background: var(--expo-primary-hover) !important;
  box-shadow: 0 10px 36px rgba(61, 9, 118, 0.28);
  transform: translateY(-1px);
}

html.expo-summit-site .expo-main .bloc-actions a[role="button"]:not(.lightbtn):active {
  transform: translateY(0);
}

/* Secundário — contorno roxo; hover realça lima */
html.expo-summit-site .expo-main .bloc-actions a.lightbtn {
  background: transparent !important;
  color: var(--expo-primary) !important;
  border: 2px solid var(--expo-border-strong) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  transition: border-color 0.18s var(--expo-ease), color 0.18s var(--expo-ease), background 0.18s var(--expo-ease);
}

html.expo-summit-site .expo-main .bloc-actions a.lightbtn:hover {
  border-color: var(--expo-accent) !important;
  background: rgba(201, 231, 15, 0.12) !important;
  color: var(--expo-primary-hover) !important;
}

/* —— Header —— */
html.expo-summit-site .expo-app-header-surface {
  background-color: color-mix(in srgb, var(--expo-surface-raised) 88%, transparent) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--expo-text) !important;
  box-shadow: var(--expo-shadow-header) !important;
  border-bottom: 1px solid var(--expo-border);
}

@supports not (background: color-mix(in srgb, white 50%, black)) {
  html.expo-summit-site .expo-app-header-surface {
    background-color: rgba(255, 255, 255, 0.92) !important;
  }
}

html.expo-summit-site .app-header .pagetitle-content {
  color: var(--expo-primary) !important;
  font-weight: 600;
}

html.expo-summit-site .app-header .iconlink.headline:not(.lightbtn) span {
  color: var(--expo-text);
  transition: color 0.15s var(--expo-ease);
}

html.expo-summit-site .app-header .menuitem .iconlink.headline:not(.lightbtn):hover span,
html.expo-summit-site .app-header .menuitem .iconlink.headline:not(.lightbtn):focus-visible span {
  color: var(--expo-primary);
}

/* CTA do menu — lima (marca) sobre texto roxo */
html.expo-summit-site .app-header .lightbtn {
  background: var(--expo-accent) !important;
  color: var(--expo-primary) !important;
  border: 2px solid transparent !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 18px rgba(201, 231, 15, 0.35);
  transition: filter 0.15s var(--expo-ease), transform 0.12s var(--expo-ease), box-shadow 0.15s var(--expo-ease);
}

html.expo-summit-site .app-header .lightbtn:hover {
  filter: brightness(1.03);
  box-shadow: 0 6px 22px rgba(201, 231, 15, 0.5);
  transform: translateY(-1px);
}

/* —— Cards de programação (sobre design-system-session-card) —— */
html.expo-summit-site article.itemcontent.clickable.card {
  background: var(--expo-surface-raised) !important;
  border: 1px solid var(--expo-border) !important;
  border-radius: var(--expo-radius-card) !important;
  box-shadow: var(--expo-shadow-card) !important;
  transition: box-shadow 0.2s var(--expo-ease), border-color 0.2s var(--expo-ease), transform 0.15s var(--expo-ease);
}

html.expo-summit-site article.itemcontent.clickable.card:hover {
  border-color: var(--expo-border-strong) !important;
  box-shadow: 0 18px 56px rgba(61, 9, 118, 0.12);
  transform: translateY(-2px);
}

html.expo-summit-site article.itemcontent.clickable.card a.title-container {
  border-right-color: var(--expo-border) !important;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--expo-surface) 40%, var(--expo-surface-raised)) 0%,
    var(--expo-surface-raised) 100%
  ) !important;
}

html.expo-summit-site article.itemcontent.clickable.card a.title-container .title,
html.expo-summit-site article.itemcontent.clickable.card a.title-container .fieldtext {
  color: var(--expo-primary) !important;
}

html.expo-summit-site article.itemcontent.clickable.card .info .day,
html.expo-summit-site article.itemcontent.clickable.card .info .time,
html.expo-summit-site article.itemcontent.clickable.card .info .roomName,
html.expo-summit-site article.itemcontent.clickable.card .info .fieldtext {
  color: var(--expo-text) !important;
}

html.expo-summit-site article.itemcontent.clickable.card .info i.icon {
  color: var(--expo-primary) !important;
  opacity: 0.55 !important;
}

html.expo-summit-site article.itemcontent.clickable.card .sessionitemspeakers .fieldtext {
  color: var(--expo-text-muted) !important;
  line-height: 1.5;
}

html.expo-summit-site article.itemcontent.clickable.card .sessionitemeventthemes .sessioneventthemeitem,
html.expo-summit-site article.itemcontent.clickable.card .sessionitemeventthemes .sessioneventthemeitem * {
  background: var(--expo-accent-soft) !important;
  border: 1px solid var(--expo-border-strong) !important;
  color: var(--expo-primary) !important;
}

@media (max-width: 599px) {
  html.expo-summit-site article.itemcontent.clickable.card a.title-container {
    border-bottom-color: var(--expo-border) !important;
  }
}

/* Figuras (sobre / local) */
html.expo-summit-site .expo-sobre-figure img,
html.expo-summit-site .expo-local-maplink img {
  border-radius: var(--expo-radius-lg);
}

html.expo-summit-site .expo-local-maplink {
  border-radius: var(--expo-radius-lg);
  overflow: hidden;
  border: 1px solid var(--expo-border);
  transition: box-shadow 0.2s var(--expo-ease), transform 0.2s var(--expo-ease), border-color 0.2s var(--expo-ease);
}

html.expo-summit-site .expo-local-maplink:hover {
  border-color: var(--expo-border-strong);
  box-shadow: var(--expo-shadow-card);
  transform: translateY(-2px);
}

html.expo-summit-site .expo-sobre-caption,
html.expo-summit-site .expo-local-note {
  color: var(--expo-text-muted);
}

/* Rodapé */
html.expo-summit-site .expo-footer {
  border-top: 1px solid var(--expo-border);
}

html.expo-summit-site .expo-footer .expo-footer__inner p {
  color: var(--expo-text-muted);
}

html.expo-summit-site .expo-footer .headline {
  color: var(--expo-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s var(--expo-ease);
}

html.expo-summit-site .expo-footer .headline:hover {
  color: var(--expo-accent-hover);
  text-decoration: underline;
  text-decoration-color: var(--expo-primary);
  text-underline-offset: 0.25em;
}

/* Acessibilidade: foco visível consistente */
html.expo-summit-site a:focus-visible,
html.expo-summit-site .lng:focus-visible {
  outline: 3px solid var(--expo-accent);
  outline-offset: 2px;
}

html.expo-summit-site .app-header .lightbtn:focus-visible {
  outline-color: var(--expo-primary);
}

/* Reduz movimento (preferência do sistema) */
@media (prefers-reduced-motion: reduce) {
  html.expo-summit-site {
    scroll-behavior: auto;
  }

  html.expo-summit-site a,
  html.expo-summit-site article.itemcontent.clickable.card,
  html.expo-summit-site .expo-local-maplink,
  html.expo-summit-site .expo-hero__figure img {
    transition: none !important;
  }

  html.expo-summit-site .expo-hero:has(.expo-hero__figure:hover) {
    z-index: 1;
  }

  html.expo-summit-site .expo-main .bloc-actions a[role="button"]:not(.lightbtn):hover,
  html.expo-summit-site .app-header .lightbtn:hover,
  html.expo-summit-site article.itemcontent.clickable.card:hover,
  html.expo-summit-site .expo-local-maplink:hover,
  html.expo-summit-site .expo-hero__figure:hover img {
    transform: none;
  }
}
