/**
 * PrayStation V7 — ambientação geek/gamer por seção
 * Enriquecimento visual sem redesenhar a estrutura.
 */

/* ---- Shared section atmosphere ---- */
.section {
  position: relative;
  isolation: isolate;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.section-kicker {
  letter-spacing: 0.12em;
}

/* ---- Header: HUD bar feel ---- */
.site-header {
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
  box-shadow: 0 1px 0 rgba(124, 58, 237, 0.08);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.45), rgba(124, 58, 237, 0.45), transparent);
  pointer-events: none;
}

/* ---- About manifesto ---- */
/* ---- Hosts: framed cards ---- */
.host-card__media {
  position: relative;
  overflow: hidden;
}

.host-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: inset 0 0 40px rgba(124, 58, 237, 0.18);
  border-radius: inherit;
}

.host-card__media::after {
  content: "PLAYER";
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
  background: rgba(8, 6, 20, 0.75);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: var(--color-yellow);
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  letter-spacing: 0.06em;
}

/* ---- Pilot: poster frame ---- */
.pilot-thumb {
  position: relative;
}

.pilot-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 2px solid rgba(250, 204, 21, 0.35);
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

/* ---- Segments: game modules ---- */
.segment-card {
  position: relative;
  overflow: hidden;
}

.segment-card::before {
  content: "MODE";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--accent, var(--color-cyan)) 80%, #fff);
  opacity: 0.7;
}

.segment-card__icon {
  width: 3.25rem;
  height: 3.25rem;
}

/* ---- Showcase: media first on mobile ---- */
@media (max-width: 899px) {
  .split--showcase .split__media {
    order: -1;
  }
}

.showcase-media {
  min-height: 12rem;
}

.split__media img,
.showcase-media img {
  opacity: 1 !important;
}

/* ---- Pixel stage section ---- */
.section--pixel {
  background:
    radial-gradient(ellipse 50% 60% at 20% 40%, rgba(34, 211, 238, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 50% at 90% 20%, rgba(124, 58, 237, 0.14), transparent 50%),
    #0a0618;
}

.section--pixel .showcase-media {
  image-rendering: pixelated;
}

.section--pixel .showcase-media img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ---- Store loot tags ---- */
.store-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.store-card__cat::before {
  content: "LOOT";
  font-family: var(--font-pixel);
  font-size: 0.38rem;
  letter-spacing: 0.06em;
  color: var(--color-yellow);
  padding: 0.15rem 0.35rem;
  border: 1px solid rgba(250, 204, 21, 0.4);
  border-radius: 0.2rem;
  background: rgba(250, 204, 21, 0.08);
}

.section--store {
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(124, 58, 237, 0.12), transparent 55%),
    linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.06));
}

/* ---- Participate: mission path ---- */
.section--participate {
  background:
    radial-gradient(ellipse 40% 50% at 0% 50%, rgba(34, 211, 238, 0.08), transparent 55%);
}

.steps {
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  left: 1.55rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--color-cyan), var(--color-purple), var(--color-yellow));
  opacity: 0.35;
  border-radius: 2px;
}

.step {
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.06), transparent 40%),
    var(--color-surface);
}

.step::before {
  content: "M" counter(step);
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  color: var(--color-cyan);
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.1);
  top: 1.15rem;
}

.step h3::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.45rem;
  border-radius: 1px;
  background: var(--color-yellow);
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.6);
  vertical-align: middle;
}

/* ---- Agenda: mission unlocked ---- */
.section--agenda {
  background:
    radial-gradient(ellipse 55% 50% at 80% 30%, rgba(37, 99, 235, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(124, 58, 237, 0.1), transparent 50%);
}

.agenda-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.12);
}

.agenda-card::before {
  content: "MISSION UNLOCKED";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  letter-spacing: 0.06em;
  color: var(--color-yellow);
  opacity: 0.85;
}

.countdown__cell {
  background: rgba(8, 6, 20, 0.65);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.35rem;
}

.countdown__value {
  font-family: var(--font-pixel);
  font-size: clamp(0.7rem, 2.5vw, 0.95rem);
  color: var(--color-cyan);
}

/* ---- Sponsors band ---- */
.section--sponsors {
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.06), transparent 40%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(34, 211, 238, 0.06), transparent 50%);
}

.sponsors-logos--official {
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(8, 6, 20, 0.45);
  box-shadow: inset 0 0 40px rgba(124, 58, 237, 0.08);
}

/* ---- FAQ terminal ---- */
.section--faq {
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(124, 58, 237, 0.08), transparent 55%);
}

.faq-item {
  border-color: rgba(34, 211, 238, 0.16);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.05), transparent 30%),
    var(--color-surface);
}

/* ---- Universo gallery polish ---- */
.carousel__slide {
  position: relative;
}

.carousel__badge {
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  letter-spacing: 0.06em;
}

/* ---- Footer end-of-stage ---- */
.site-footer {
  position: relative;
  border-top: 1px solid rgba(34, 211, 238, 0.18);
  background:
    linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.1)),
    var(--color-background);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-cyan) 0 6px,
    transparent 6px 12px,
    var(--color-purple) 12px 18px,
    transparent 18px 24px
  );
  opacity: 0.55;
}

.footer-continue {
  margin-top: var(--space-4);
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--color-cyan);
  text-decoration: none;
  display: block;
  opacity: 0.85;
  transition: opacity var(--transition-fast) ease, color var(--transition-fast) ease;
}

.footer-continue:hover {
  opacity: 1;
  color: var(--color-yellow);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .pillar-card:hover {
    transform: none;
  }
}

[data-theme="light"] .section::before {
  opacity: 0.25;
}

[data-theme="light"] .about-visual {
  background: #e2e8f0;
}

[data-theme="light"] .countdown__value {
  color: var(--color-purple);
}

[data-theme="light"] .sponsors-logos--official {
  background: rgba(255, 255, 255, 0.7);
}
