/* ==========================================================================
   CULTURA TRINACIONAL — Ciclo de descoberta (etapa 2)
   Atalhos de tempo, fileiras temáticas, "Você também pode gostar",
   chamada do modo Descobrir e a página Descobrir/Salvos.
   Só usa variáveis do tema (funciona no claro e no escuro).
   ========================================================================== */

/* ---- Atalhos de tempo (Home) ---- */
.disc-shortcuts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 20px 14px;
  margin: -4px -20px 0;
  scrollbar-width: none;
}
.disc-shortcuts::-webkit-scrollbar { display: none; }
.disc-shortcuts[hidden] { display: none; }
.disc-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font: 700 13.5px/1 var(--font-base);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.disc-chip b {
  min-width: 22px;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  color: var(--brand-cyan);
  font-size: 11.5px;
  text-align: center;
}
.disc-chip:active { transform: scale(.96); }
.disc-chip:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 2px; }
.disc-chip[aria-pressed="true"] {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
}
.disc-chip[aria-pressed="true"] b { background: rgba(255,255,255,.22); color: #fff; }

/* ---- Fileiras temáticas ---- */
.disc-rail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(135deg, var(--country-argentina), var(--country-brasil) 50%, var(--country-paraguai));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-cyan) 15%, transparent);
}
.disc-rail .section-head h2 { font-size: 20px; }

/* ---- Chamada do modo Descobrir (Home) ---- */
.disc-cta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin: 34px 0 6px;
  padding: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(120deg, #1d4ed8 0%, #0e7490 55%, #15803d 100%);
  box-shadow: var(--shadow-card);
  isolation: isolate;
}
.disc-cta[hidden] { display: none; }
.disc-cta::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.22), transparent);
  z-index: -1;
}
.disc-cta strong { display: block; font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.disc-cta span { font-size: 13.5px; opacity: .9; line-height: 1.4; }
.disc-cta .disc-cta-cards { position: relative; width: 74px; height: 64px; }
.disc-cta .disc-cta-cards i {
  position: absolute;
  inset: 4px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.disc-cta .disc-cta-cards i:nth-child(1) { transform: rotate(-12deg) translateX(-10px); opacity: .55; }
.disc-cta .disc-cta-cards i:nth-child(2) { transform: rotate(8deg) translateX(10px); opacity: .75; }
.disc-cta .disc-cta-cards i:nth-child(3) {
  background: rgba(255,255,255,.98) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e11d48'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.disc-cta:active { transform: scale(.99); }
@media (hover: hover) { .disc-cta:hover .disc-cta-cards i:nth-child(3) { transform: translateY(-3px); } }

/* ---- "Você também pode gostar" (evento) ---- */
.related-events { margin: 34px 0 10px; }
.related-events[hidden] { display: none; }
.related-events .section-head h2 { font-size: 20px; font-weight: 800; }

/* ==========================================================================
   Página Descobrir / Salvos
   ========================================================================== */
.disc-page { padding-top: 14px; padding-bottom: 40px; }
.disc-page h1 { font-size: 24px; font-weight: 800; margin-bottom: 2px; }
.disc-page .disc-sub { color: var(--text-secondary); font-size: 13.5px; margin-bottom: 12px; }

.disc-tabs {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}
.disc-tabs button {
  min-height: 38px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--text-secondary);
  font: 700 14px var(--font-base);
  cursor: pointer;
}
.disc-tabs button[aria-selected="true"] { background: var(--brand-gradient); color: #fff; }
.disc-tabs button:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 2px; }
.disc-tabs .count { margin-left: 4px; opacity: .85; }

.disc-panel[hidden] { display: none; }

/* Pilha de cards */
.disc-stack {
  position: relative;
  width: min(100%, 420px);
  /* Cabe na tela do celular junto com abas, botões e a barra inferior */
  height: clamp(230px, calc(100dvh - 360px), 560px);
  margin: 0 auto;
  touch-action: pan-y;
  user-select: none;
}
.disc-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  border: 1px solid var(--border-subtle);
  transform-origin: 50% 110%;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .35s;
  will-change: transform;
}
.disc-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.disc-card .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,8,18,0) 35%, rgba(4,8,18,.92) 100%);
}
.disc-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; color: #fff; }
.disc-card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.disc-card .chips span {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.disc-card .chips .free { background: rgba(34,197,94,.85); }
.disc-card h2 { font-size: 24px; font-weight: 800; line-height: 1.15; margin-bottom: 8px; text-wrap: balance; }
.disc-card .row { font-size: 14px; opacity: .92; margin-top: 3px; }
.disc-card[data-depth="1"] { transform: translateY(14px) scale(.95); opacity: .85; }
.disc-card[data-depth="2"] { transform: translateY(28px) scale(.9); opacity: .6; }
.disc-card[data-depth="3"] { transform: translateY(28px) scale(.9); opacity: 0; }
.disc-card.dragging { transition: none; }
.disc-card .stamp {
  position: absolute;
  top: 22px;
  padding: 6px 14px;
  border: 3px solid;
  border-radius: 10px;
  font: 800 18px var(--font-base);
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: 0;
  background: rgba(4,8,18,.35);
}
.disc-card .stamp.save { left: 20px; color: #4ade80; transform: rotate(-12deg); }
.disc-card .stamp.skip { right: 20px; color: #f87171; transform: rotate(12deg); }

.disc-actions { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 40px 0 6px; }
.disc-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform .15s;
  color: var(--text-secondary);
}
.disc-btn svg { width: 26px; height: 26px; }
.disc-btn.skip { color: #f87171; }
.disc-btn.save { width: 72px; height: 72px; color: #fff; background: linear-gradient(135deg, #e11d48, #f97316); border-color: transparent; }
.disc-btn.info { width: 50px; height: 50px; }
.disc-btn:active { transform: scale(.92); }
.disc-btn:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 3px; }
.disc-progress { text-align: center; color: var(--text-muted); font-size: 13px; }
.disc-hint { text-align: center; color: var(--text-muted); font-size: 12.5px; margin-top: 4px; }

.disc-done {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.disc-done h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.disc-done p { color: var(--text-secondary); margin-bottom: 18px; }
.disc-done .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.disc-saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.disc-saved-grid .event-card { flex: none; }

@media (prefers-reduced-motion: reduce) {
  .disc-card, .disc-chip, .disc-btn { transition: none; }
}

/* Telas baixas (maioria dos celulares): título só para leitor de tela, card ocupa o espaço livre */
@media (max-height: 820px) and (max-width: 899px) {
  .disc-page h1, .disc-page .disc-sub {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .disc-hint { display: none; }
  .disc-stack { height: clamp(230px, calc(100dvh - var(--header-height, 84px) - var(--mobile-nav-height, 68px) - 210px), 560px); }
  .disc-btn { width: 54px; height: 54px; }
  .disc-btn.save { width: 64px; height: 64px; }
  .disc-btn.info { width: 44px; height: 44px; }
  .disc-actions { margin: 36px 0 4px; }
}
