/* Bostock Slider Pro — CSS profissional, leve e sem dependências
   Efeitos: Ken Burns, Fade, Slide, parallax suave, overlay, thumbnails, autoplay bar
*/

.bostock-slider {
  position: relative;
  isolation: isolate;
  background: #0a0a0b;
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  overflow: hidden;
  border-radius: 24px;
  --accent: #fcd34d;
  --accent-2: #f59e0b;
}

.bostock-slider * { box-sizing: border-box; }

/* Viewport */
.bostock-viewport {
  position: relative;
  height: min(86svh, 860px);
  min-height: 560px;
}

/* Slides - efeito padrão (fade) */
.bostock-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms cubic-bezier(.22,.61,.36,1), transform 900ms cubic-bezier(.22,.61,.36,1);
  transform: scale(1.01);
  pointer-events: none;
}
.bostock-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Efeito Slide (deslizar) */
.bostock-slider[data-efeito="slide"] .bostock-slide {
  transform: translateX(100%);
  transition: transform 800ms cubic-bezier(.22,.61,.36,1), opacity 800ms ease;
}
.bostock-slider[data-efeito="slide"] .bostock-slide.is-active {
  transform: translateX(0);
  opacity: 1;
}
.bostock-slider[data-efeito="slide"] .bostock-slide[data-direction="prev"] {
  transform: translateX(-100%);
}

/* Mídia */
.bostock-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.bostock-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* Efeito Ken Burns */
.bostock-slider[data-efeito="kenburns"] .bostock-slide.is-active .bostock-media img {
  animation: bostock-kenburns 14s ease-in-out infinite;
}
@keyframes bostock-kenburns {
  0% { transform: scale(1.05) translate3d(0,0,0); }
  50% { transform: scale(1.12) translate3d(1%, -1%, 0); }
  100% { transform: scale(1.05) translate3d(0,0,0); }
}

/* Overlays */
.bostock-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.55) 40%, rgba(0,0,0,.15) 75%, rgba(0,0,0,0)),
    radial-gradient(ellipse at top, transparent 30%, rgba(0,0,0,.65) 100%);
  mix-blend-mode: multiply;
}

/* Conteúdo */
.bostock-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: clamp(20px, 4vw, 48px);
}
.bostock-inner { max-width: 820px; }

.bostock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff3c4;
  border: 1px solid rgba(252,211,77,.35);
  background: rgba(252,211,77,.12);
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  margin-bottom: 10px;
}
.bostock-badge::before{
  content:"";
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px 2px rgba(252,211,77,.7);
}

.bostock-meta {
  display: inline-block;
  font-size: 12px;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  margin-left: 8px;
}

.bostock-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.02em;
  font-size: clamp(36px, 6vw, 72px);
  margin: 14px 0 10px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}

.bostock-location {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 15px;
  color: rgba(255,255,255,.88);
  margin: 12px 0 22px;
}

/* Ações */
.bostock-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.bostock-price {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 12px 18px;
}
.bostock-price span {
  display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6);
}
.bostock-price strong {
  font-family: 'Fraunces', serif; font-size: 26px; line-height: 1; letter-spacing: -.01em; color: #fff;
}

.bostock-btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.bostock-btn.primary {
  background: #fff; color: #111;
  box-shadow: 0 10px 30px -10px rgba(255,255,255,.35);
}
.bostock-btn.primary:hover { box-shadow: 0 12px 40px -10px rgba(255,255,255,.5); transform: translateY(-1px); }
.bostock-btn.ghost {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(10px);
}
.bostock-btn.ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }

/* Contador grande */
.bostock-counter {
  position: absolute; right: 24px; top: 20px;
  font-family: 'Fraunces', serif;
  font-size: 110px; line-height: 1;
  color: rgba(255,255,255,.07);
  pointer-events: none;
  user-select: none;
}

/* Navegação */
.bostock-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 6;
  width: 48px; height: 48px; border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: #fff;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.bostock-nav:hover { background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.3); }
.bostock-nav.prev { left: 16px; }
.bostock-nav.next { right: 16px; }

/* Barra de progresso */
.bostock-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: rgba(255,255,255,.12);
  z-index: 5;
}
.bostock-progress > span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #fcd34d, #fbbf24, #fcd34d);
  transition: width linear;
}

/* Thumbnails */
.bostock-thumbs {
  position: absolute;
  left: 0; right: 0; bottom: 76px;
  display: flex; justify-content: center; gap: 10px;
  padding: 0 16px;
  z-index: 6;
}
.bostock-thumb {
  width: 96px; height: 64px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: #000;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  padding: 0;
}
.bostock-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.bostock-thumb:hover img { transform: scale(1.06); }
.bostock-thumb.is-active {
  border-color: rgba(252,211,77,.7);
  box-shadow: 0 0 0 2px rgba(252,211,77,.35);
  transform: scale(1.03);
}

/* Dots e contador */
.bostock-dots {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  z-index: 6;
}
.bostock-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: rgba(255,255,255,.35);
  border: 0; margin-right: 9px; cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.bostock-dot.is-active { width: 28px; background: var(--accent); }
.bostock-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,.7);
  font-size: 13px; letter-spacing: .04em;
  display: flex; align-items: center; gap: 8px;
}
.bostock-count .sep { opacity: .35; }
.bostock-count .total { opacity: .55; }

/* Responsivo */
@media (max-width: 900px) {
  .bostock-counter { display: none; }
  .bostock-thumbs { bottom: 88px; }
  .bostock-title { font-size: clamp(30px, 8vw, 48px); }
}
@media (max-width: 600px) {
  .bostock-thumbs { overflow-x: auto; }
  .bostock-thumb { flex: 0 0 auto; }
}