/* ========================================
   YSB66 Page-Specific Styles
   Minimal overrides only
   ======================================== */

/* Home page specific */
.home-hero {
  background: linear-gradient(135deg, var(--ysb-accent) 0%, var(--ysb-primary) 100%);
  color: var(--ysb-white);
  padding: var(--space-2xl) 0;
}

.home-hero h1,
.home-hero p {
  color: var(--ysb-white);
}

/* Slot review page specific */
.slot-hero {
  text-align: center;
  padding: var(--space-xl) 0;
}

.slot-hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .slot-hero-content {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.slot-hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.slot-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.slot-hero-info {
  background-color: var(--ysb-white);
  padding: var(--space-lg);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--ysb-border);
}

.slot-hero-info h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
  color: var(--ysb-text);
}

.slot-highlights {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.slot-highlights li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--ysb-border);
  color: var(--ysb-text);
}

.slot-highlights li:last-child {
  border-bottom: none;
}

.slot-highlights strong {
  color: var(--ysb-primary);
  margin-right: var(--space-xs);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.fact-item {
  background-color: var(--ysb-white);
  padding: var(--space-md);
  border-radius: 8px;
  border: 1px solid var(--ysb-border);
  text-align: center;
}

.fact-label {
  font-size: var(--font-size-xs);
  color: var(--ysb-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.fact-value {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--ysb-primary);
}

/* How to Play steps */
.how-to-play {
  counter-reset: step-counter;
}

.step {
  counter-increment: step-counter;
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
  position: relative;
}

.step::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background-color: var(--ysb-primary);
  color: var(--ysb-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-base);
}

.step-title {
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--ysb-text);
}

.step-text {
  color: var(--ysb-muted);
}

/* Athlete profile specific */
.athlete-hero {
  text-align: center;
  padding: var(--space-xl) 0;
}

.athlete-image {
  width: 100%;
  max-width: 400px;
  margin: 0 auto var(--space-lg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.snapshot-card {
  background-color: var(--ysb-white);
  padding: var(--space-md);
  border-radius: 8px;
  border: 1px solid var(--ysb-border);
}

.snapshot-label {
  font-size: var(--font-size-xs);
  color: var(--ysb-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.snapshot-value {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--ysb-text);
}

.timeline {
  margin: var(--space-xl) 0;
}

.timeline-item {
  padding-left: var(--space-xl);
  border-left: 2px solid var(--ysb-border);
  margin-bottom: var(--space-lg);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 12px;
  height: 12px;
  background-color: var(--ysb-gold);
  border-radius: 50%;
}

.timeline-year {
  font-weight: 700;
  color: var(--ysb-gold-dark);
  margin-bottom: var(--space-xs);
}

.timeline-event {
  color: var(--ysb-text);
}

/* Live casino editorial style */
.editorial-section {
  padding: var(--space-xl) 0;
}

.editorial-section h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-lg);
}

.editorial-section p {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

/* Promotions banner grid */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

/* SEO content blocks */
.seo-content {
  margin: var(--space-xl) 0;
  padding: var(--space-xl);
  background-color: var(--ysb-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.seo-content h2 {
  color: var(--ysb-primary);
  margin-bottom: var(--space-md);
}

.seo-content p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

/* ========================================
   Blog — simple layout, site color tokens only
   ======================================== */

:root {
  --blog-sidebar-width: 300px;
  /* Offset below fixed header when sidebar is sticky */
  --blog-sticky-top: 5rem;
}

.blog-section {
  padding-block: var(--space-xl) var(--space-2xl);
  background: var(--ysb-bg);
  overflow: visible;
}

.blog-section--article {
  padding-top: var(--space-sm);
}

/* Blog article top — breadcrumbs + hero share site container width */
.blog-article-top-wrap {
  position: relative;
  background: var(--ysb-bg);
  overflow: hidden;
}

.blog-article-top-wrap::before,
.blog-article-top-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.blog-article-top-wrap::before {
  top: -6rem;
  right: -4rem;
  width: min(28rem, 55vw);
  height: min(28rem, 55vw);
  background: radial-gradient(circle,
      color-mix(in srgb, var(--ysb-primary) 18%, transparent) 0%,
      transparent 68%);
}

.blog-article-top-wrap::after {
  bottom: -8rem;
  left: -6rem;
  width: min(24rem, 48vw);
  height: min(24rem, 48vw);
  background: radial-gradient(circle,
      color-mix(in srgb, var(--ysb-gold) 14%, transparent) 0%,
      transparent 70%);
}

.blog-article-top {
  position: relative;
  z-index: 1;
  padding-block: 0.5rem var(--space-xl);
}

.blog-article-top__breadcrumbs {
  padding-block: 0.625rem 0.75rem;
  margin: 0;
}

.blog-article-page .blog-article-top__breadcrumbs .breadcrumbs-item:last-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.blog-article-page .blog-article-top__breadcrumbs .breadcrumbs-current {
  display: block;
  color: var(--ysb-primary-dark);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Single post header */
.blog-article-head {
  position: relative;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.blog-article-head__card {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--ysb-white);
  border: 1px solid var(--ysb-border);
  border-radius: 1.25rem;
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--ysb-text) 4%, transparent),
    0 16px 48px color-mix(in srgb, var(--ysb-primary) 10%, transparent);
  overflow: hidden;
}

.blog-article-head__card::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg,
      var(--ysb-primary) 0%,
      var(--ysb-accent) 45%,
      var(--ysb-gold) 100%);
}

.blog-article-head__grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .blog-article-head__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
    min-height: min(22rem, 52vh);
  }
}

.blog-article-head__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
}

@media (min-width: 768px) {
  .blog-article-head__content {
    padding: var(--space-xl) var(--space-xl) var(--space-xl) var(--space-2xl);
  }
}

.blog-article-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: var(--font-size-sm);
  color: var(--ysb-muted);
  margin: 0 0 var(--space-md);
  line-height: 1.4;
}

.blog-article-head__category {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ysb-primary-dark);
  background: color-mix(in srgb, var(--ysb-primary) 12%, var(--ysb-white));
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ysb-primary) 24%, transparent);
}

.blog-article-head__meta-sep {
  color: color-mix(in srgb, var(--ysb-muted) 55%, var(--ysb-border));
  user-select: none;
}

.blog-article-head__date {
  font-variant-numeric: tabular-nums;
}

.blog-article-head__title {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 700;
  color: var(--ysb-text);
  line-height: 1.18;
  margin: 0 0 var(--space-md);
  letter-spacing: -0.03em;
}

.blog-article-head__lead {
  font-size: clamp(var(--font-size-base), 1.6vw, calc(var(--font-size-base) * 1.1));
  line-height: 1.65;
  color: color-mix(in srgb, var(--ysb-text) 68%, var(--ysb-muted));
  margin: 0 0 var(--space-lg);
}

.blog-article-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: auto;
}

.blog-article-head__actions .btn {
  min-width: 8.5rem;
}

.blog-article-head__figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  min-height: 12rem;
  background: color-mix(in srgb, var(--ysb-primary) 6%, var(--ysb-bg));
}

@media (min-width: 768px) {
  .blog-article-head__figure {
    min-height: 100%;
  }

  .blog-article-head__figure::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3rem;
    background: linear-gradient(90deg,
        var(--ysb-white) 0%,
        transparent 100%);
    z-index: 1;
    pointer-events: none;
  }
}

.blog-article-head__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
}

@media (max-width: 767px) {
  .blog-article-head__image {
    max-height: min(16rem, 42vw);
  }
}

.blog-article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 1024px) {
  .blog-article-layout {
    grid-template-columns: minmax(0, 1fr) var(--blog-sidebar-width);
    gap: var(--space-xl);
  }
}

.blog-article-layout__main {
  min-width: 0;
}

.blog-article-layout__sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--blog-sticky-top));
  align-self: start;
  height: fit-content;
  z-index: 1;
}

/* Blog listing page — uses shared .card, .grid; title link in card header */
.blog-listing-page .blog-list-meta {
  font-size: var(--font-size-xs);
  color: var(--ysb-muted);
  margin-bottom: var(--space-xs);
}

.blog-listing-page .blog-list-title-link {
  color: inherit;
  text-decoration: none;
}

.blog-listing-page .blog-list-title-link:hover {
  color: var(--ysb-primary);
}

.blog-pagination {
  margin-top: var(--space-xl);
}

.blog-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: var(--space-xs) var(--space-sm);
  border: 2px solid var(--ysb-border);
  border-radius: 8px;
  background: var(--ysb-white);
  color: var(--ysb-text);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--transition-base), color var(--transition-base), background-color var(--transition-base);
}

.blog-pagination__link:hover,
.blog-pagination__link:focus-visible {
  border-color: var(--ysb-primary);
  color: var(--ysb-primary);
  outline: none;
}

.blog-pagination__link.is-current {
  background: var(--ysb-primary);
  border-color: var(--ysb-primary);
  color: var(--ysb-white);
  cursor: default;
}

.blog-pagination__link.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.blog-pagination__prev,
.blog-pagination__next {
  min-width: auto;
  padding-inline: var(--space-md);
}

.blog-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  color: var(--ysb-muted);
}

/* Sidebar */
.sidebar-card {
  background: var(--ysb-white);
  border: 1px solid var(--ysb-border);
  border-left: 3px solid var(--ysb-primary);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
}

.sidebar-card:last-child {
  margin-bottom: 0;
}

.sidebar-card__title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--ysb-text);
  margin: 0 0 var(--space-xs);
}

.recent-posts__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent-posts__item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--ysb-border);
}

.recent-posts__item:first-child {
  padding-top: 0;
}

.recent-posts__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-posts__category {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--ysb-muted);
  margin-bottom: 2px;
}

.recent-posts__link {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--ysb-text);
  line-height: 1.35;
  text-decoration: none;
}

.recent-posts__link:hover {
  color: var(--ysb-primary);
}

.recent-posts__empty {
  font-size: var(--font-size-sm);
  color: var(--ysb-muted);
}

.sidebar-card--cta {
  text-align: center;
  padding: var(--space-md);
}

.sidebar-card--cta .sidebar-card__text {
  font-size: var(--font-size-sm);
  color: var(--ysb-muted);
  margin: 0 0 var(--space-md);
  line-height: 1.5;
}

.btn-blog-cta {
  display: inline-block;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--ysb-white);
  background: var(--ysb-primary);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), transform var(--transition-base);
}

.btn-blog-cta:hover {
  background: var(--ysb-primary-dark);
  color: var(--ysb-white);
}

/* Article layout spacing */
.blog-article-layout {
  padding-bottom: var(--space-2xl);
}

.blog-article-layout__main .article-prose {
  max-width: none;
  margin: 0;
}

/* Prose in posts */
.blog-article-page .article-prose {
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--ysb-text);
}

.blog-article-page .article-prose>h2 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin: var(--space-xl) 0 var(--space-sm);
  color: var(--ysb-text);
}

.blog-article-page .article-prose>h2:first-of-type {
  margin-top: 0;
}

.blog-article-page .article-prose>h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin: var(--space-lg) 0 var(--space-xs);
  color: var(--ysb-text);
}

.blog-article-page .article-prose>p {
  margin: 0 0 var(--space-md);
}

/* Table of contents */
.article-prose .toc-nav {
  margin: 0 0 var(--space-lg);
  padding: var(--space-md);
  background: var(--ysb-white);
  border: 1px solid var(--ysb-border);
  border-left: 3px solid var(--ysb-primary);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.article-prose .toc-nav h2 {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ysb-text);
  margin: 0 0 var(--space-sm);
}

.article-prose .toc-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc-step;
}

.article-prose .toc-nav ol li {
  counter-increment: toc-step;
  position: relative;
  padding: var(--space-xs) 0 var(--space-xs) 1.75rem;
  border-bottom: 1px solid var(--ysb-border);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.article-prose .toc-nav ol li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-prose .toc-nav ol li::before {
  content: counter(toc-step);
  position: absolute;
  left: 0;
  top: var(--space-xs);
  width: 1.125rem;
  height: 1.125rem;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.125rem;
  color: var(--ysb-white);
  background: var(--ysb-primary);
  border-radius: 3px;
  text-align: center;
}

.article-prose .toc-nav a {
  color: var(--ysb-primary-dark);
  font-weight: 500;
  text-decoration: none;
}

.article-prose .toc-nav a:hover {
  color: var(--ysb-primary);
  text-decoration: underline;
}