/* WorldSpeakers — tokens de design e overrides do Tailwind CDN */

:root {
  --ws-bg: #000000;
  --ws-bg-card: #0a0a0a;
  --ws-bg-elev: #141414;
  --ws-border: #262626;
  --ws-text: #ffffff;
  --ws-text-muted: #a3a3a3;
  --ws-orange: #e85d2f;
  --ws-orange-soft: #f4a37e;
  --ws-indigo: #2d3561;
  --ws-indigo-soft: #5661a8;
  --ws-gradient: linear-gradient(135deg, #e85d2f 0%, #2d3561 100%);
  --ws-gradient-soft: linear-gradient(135deg, rgba(232, 93, 47, 0.15) 0%, rgba(45, 53, 97, 0.15) 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--ws-bg);
  color: var(--ws-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-display {
  font-family: 'Archivo Black', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

/* Gradiente de marca */
.bg-brand-gradient {
  background: var(--ws-gradient);
}

.bg-brand-gradient-soft {
  background: var(--ws-gradient-soft);
}

.text-brand-gradient {
  background: var(--ws-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.border-brand-gradient {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--ws-bg), var(--ws-bg)) padding-box,
    var(--ws-gradient) border-box;
}

/* Reset pra btn funcionar em <a> ou <button> sem estilos nativos */
button.btn-primary,
button.btn-secondary {
  border: 0;
  cursor: pointer;
  font: inherit;
}

/* CTA principal */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--ws-gradient);
  color: #fff;
  border-radius: 9999px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 40px -10px rgba(232, 93, 47, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px -10px rgba(232, 93, 47, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: transparent;
  color: #fff;
  border: 1px solid var(--ws-border);
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--ws-orange);
  color: var(--ws-orange-soft);
}

/* Cards */
.card {
  background: var(--ws-bg-card);
  border: 1px solid var(--ws-border);
  border-radius: 1rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: rgba(232, 93, 47, 0.4);
}

.card-elev {
  background: var(--ws-bg-elev);
}

/* Glow decorativo pro hero */
.hero-glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
  opacity: 0.35;
}

.hero-glow-orange {
  top: -10%;
  left: -10%;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, var(--ws-orange) 0%, transparent 70%);
}

.hero-glow-indigo {
  bottom: -20%;
  right: -10%;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, var(--ws-indigo) 0%, transparent 70%);
}

/* Níveis da jornada — tratamento visual */
.level-card {
  background: var(--ws-bg-card);
  border: 1px solid var(--ws-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.level-emoji {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.875rem;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.level-card.is-past .level-emoji {
  filter: grayscale(1) brightness(0.65);
}

.level-card.is-active .level-emoji {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 12px rgba(232, 93, 47, 0.5));
}

.level-card.is-soft .level-emoji,
.level-card.is-locked .level-emoji {
  filter: grayscale(0.6) brightness(0.85);
}

.level-card.is-past {
  opacity: 0.35;
  border-style: dashed;
}

.level-card.is-active {
  border-color: var(--ws-orange);
  background: linear-gradient(180deg, rgba(232, 93, 47, 0.08) 0%, rgba(10, 10, 10, 1) 100%);
  box-shadow: 0 0 40px -10px rgba(232, 93, 47, 0.3);
}

.level-card.is-locked {
  position: relative;
  opacity: 0.55;
}

.level-card.is-locked::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(45, 53, 97, 0.05) 10px,
    rgba(45, 53, 97, 0.05) 20px
  );
  pointer-events: none;
}

.level-card.is-soft {
  opacity: 0.5;
  border-style: dotted;
}

/* Animações de scroll */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Divider com gradiente */
.brand-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ws-orange), var(--ws-indigo), transparent);
  opacity: 0.4;
}

/* YouTube lazy thumb */
.yt-lazy {
  position: relative;
  aspect-ratio: 9/16;
  background: var(--ws-bg-card);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--ws-border);
}

.yt-lazy img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.yt-lazy:hover img {
  transform: scale(1.05);
}

.yt-lazy .yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.yt-lazy:hover .yt-play {
  background: rgba(0, 0, 0, 0.1);
}

.yt-lazy .yt-play-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: var(--ws-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Placeholder da foto */
.photo-placeholder {
  background:
    radial-gradient(circle at 30% 20%, rgba(232, 93, 47, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(45, 53, 97, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  border: 1px dashed rgba(232, 93, 47, 0.3);
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--ws-text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 2rem;
  min-height: 440px;
}

/* Foto real da Lua — mesma caixa, pronta pra receber imagem */
.photo-lua {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 440px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  box-shadow: 0 20px 60px -15px rgba(232, 93, 47, 0.35);
}

.photo-lua img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-lua::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

.photo-lua--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(232, 93, 47, 0.25) 0%, transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(45, 53, 97, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, #1f1f1f 0%, #0a0a0a 100%);
  border: 1px dashed rgba(232, 93, 47, 0.4);
  box-shadow: 0 20px 60px -15px rgba(232, 93, 47, 0.25);
}

.photo-lua--empty::before {
  content: 'Foto da Lua';
  color: rgba(244, 163, 126, 0.7);
  font-family: 'Archivo Black', sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  z-index: 1;
}

/* Scrollbar sutil */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--ws-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--ws-border);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ws-orange);
}
