/* Spinning Monkey blog — hero carousel + post cards. Loaded only on the
   Blog Feed page template and single posts. Uses the brand tokens from
   site.css (--bg, --panel, --line, --accent, --accent-2, --accent-3, etc). */

.sb-btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.sb-btn:hover { transform: translateY(-1px); }
.sb-btn-light { background: #fff; color: var(--bg) !important; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.sb-btn-light:hover { background: var(--accent-3); }

/* ------------------------------------------------------------ hero slider */
.sb-hero {
  position: relative;
  margin: 2rem 0;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.sb-slides { position: relative; min-height: clamp(380px, 52vw, 520px); background: var(--panel-strong); }
.sb-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}
.sb-slide.is-active { opacity: 1; pointer-events: auto; }
.sb-slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 17, 28, 0.92) 0%, rgba(8, 17, 28, 0.4) 55%, rgba(8, 17, 28, 0.05) 100%);
}
.sb-slide-sponsored { background-color: var(--panel-strong); background-position: center; }
.sb-slide-sponsored .sb-slide-scrim {
  background: linear-gradient(90deg, rgba(8, 17, 28, 0.98) 0%, rgba(8, 17, 28, 0.88) 34%, rgba(8, 17, 28, 0.2) 64%, rgba(8, 17, 28, 0.05) 100%);
}
.sb-slide-sponsored .sb-slide-inner { max-width: 520px; }
.sb-pill-page { background: rgba(43, 179, 255, 0.18); color: var(--accent); }
.sb-hero-disclosure {
  max-width: 62ch;
  margin: .9rem 0 0;
  color: rgba(255, 255, 255, .58);
  font-size: .72rem;
  line-height: 1.35;
}
.sb-slide-inner {
  position: relative;
  padding: clamp(1.4rem, 4vw, 3rem);
  max-width: 720px;
}
.sb-slide-title { margin: 0.7rem 0 0.5rem; }
.sb-slide-title a {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1;
  font-weight: 700;
}
.sb-slide-title a:hover { text-decoration: underline; text-decoration-color: var(--accent-3); }
.sb-slide-excerpt {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1rem;
  font-size: 1rem;
  max-width: 56ch;
}
.sb-slide-meta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.sb-slide-meta .sb-byline { color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; font-weight: 600; }

.sb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.sb-arrow:hover { background: rgba(255, 255, 255, 0.3); }
.sb-prev { left: 14px; }
.sb-next { right: 14px; }

.sb-dots {
  position: absolute;
  bottom: 16px;
  right: 22px;
  z-index: 5;
  display: flex;
  gap: 8px;
  max-width: calc(100% - 190px);
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 5px 1px;
}
.sb-slide-counter {
  position: absolute;
  left: 22px;
  bottom: 16px;
  z-index: 5;
  min-width: 58px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(8, 17, 28, .72);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(6px);
}
.sb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.sb-dot:hover { background: rgba(255, 255, 255, 0.7); }
.sb-dot.is-active {
  background: var(--accent-3);
  transform: scale(1.25);
  box-shadow: 0 0 0 3px rgba(100, 244, 200, 0.25);
}

@media (max-width: 640px) {
  .sb-arrow { display: none; }
  .sb-dots { left: 0; right: 0; bottom: 46px; justify-content: center; }
  .sb-slide-inner { padding-bottom: 72px; }
}

/* --------------------------------------------------------------- pills */
.sb-pill {
  display: inline-block;
  background: rgba(255, 183, 3, 0.16);
  color: var(--accent-2) !important;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  text-decoration: none;
}
.sb-pill:hover { background: var(--accent-2); color: var(--bg) !important; }
.sb-pill-sponsored { background: rgba(157, 0, 255, 0.18); color: #d9a6ff !important; }

/* ------------------------------------------------------------- post cards */
.sb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
  margin: 2rem 0;
}
.sb-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.sb-card:hover {
  transform: translateY(-4px);
  border-color: rgba(100, 244, 200, 0.4);
}
.sb-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel-strong);
}
.sb-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.sb-card:hover .sb-card-media img { transform: scale(1.05); }
.sb-card-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.55rem; }
.sb-card-title { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.sb-card-title a { color: var(--text); text-decoration: none; }
.sb-card-title a:hover { color: var(--accent-3); }
.sb-card-excerpt { margin: 0; color: var(--muted); font-size: 0.93rem; }
.sb-card-meta { margin-top: auto; padding-top: 0.4rem; }
.sb-byline { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
