/* ═══════════════════════════════════════════════════════════════
   SLOT CATEGORY PAGES
   - Category listing (e.g. /slot-themes/)
   - Individual category (e.g. /egyptian-slots/)
   ═══════════════════════════════════════════════════════════════ */

/* ── Page wrapper ────────────────────────────────────────────── */
.sh-catpage {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 16px 48px;
}


/* ── Hero Section (shared by listing + individual) ───────────── */
.sh-cat-hero {
  position: relative;
  overflow: hidden;
  height: 160px;
}

.sh-cat-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-cat-hero-overlay-v {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    hsla(220, 20%, 4%, 0.8) 50%,
    hsla(220, 20%, 4%, 0.4) 100%
  );
}

.sh-cat-hero-overlay-h {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsla(220, 20%, 4%, 0.7), transparent);
}

.sh-cat-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 16px 24px;
  max-width: 1152px;
  margin: 0 auto;
}

.sh-cat-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted-fg);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
  width: fit-content;
}

.sh-cat-hero-back:hover {
  color: var(--primary);
}

.sh-cat-hero-back svg {
  width: 14px;
  height: 14px;
}

.sh-cat-hero-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.sh-cat-hero-title .sh-hl {
  color: var(--primary);
}

.sh-cat-hero-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted-fg);
  max-width: 640px;
  margin: 0;
  line-height: 1.5;
}


/* ── Category Listing Grid (theme boxes) ─────────────────────── */
.sh-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 24px 0 48px;
}

.sh-cat-card {
  position: relative;
  height: 112px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 1px solid hsla(220, 15%, 15%, 0.5);
  text-decoration: none;
  transition: border-color 0.3s;
}

.sh-cat-card:hover {
  border-color: hsla(152, 69%, 41%, 0.5);
}

.sh-cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(0, 0%, 0%, 0.8), hsla(0, 0%, 0%, 0.3) 50%, transparent);
}

.sh-cat-card-name {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  padding: 0 8px 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}


/* ── Slot Game Cards Grid (individual category page) ─────────── */
.sh-slotgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 0 48px;
}

.sh-slotgrid-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  margin: 32px 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sh-slotcard {
  background: hsla(220, 15%, 8%, 0.5);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
}

.sh-slotcard:hover {
  border-color: hsla(220, 15%, 15%, 0.8);
}

/* Image area */
.sh-slotcard-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.sh-slotcard-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-slotcard-img-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 33%;
  background: linear-gradient(to top, var(--card-bg), transparent);
}

/* Hover overlay with buttons */
.sh-slotcard-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  background: hsla(220, 20%, 4%, 0.4);
  backdrop-filter: blur(2px);
}

.sh-slotcard:hover .sh-slotcard-hover {
  opacity: 1;
}

.sh-slotcard-hover-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 80%;
}

.sh-slotcard-btn-play {
  width: 100%;
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  background: hsl(45, 90%, 50%);
  color: hsl(220, 20%, 4%);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.sh-slotcard-btn-play:hover {
  background: hsl(45, 90%, 55%);
}

.sh-slotcard-btn-review {
  width: 100%;
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s;
}

.sh-slotcard-btn-review:hover {
  background: hsla(220, 15%, 15%, 0.3);
}

.sh-slotcard-btn-review svg {
  width: 12px;
  height: 12px;
}

/* Card info area */
.sh-slotcard-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sh-slotcard-name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sh-slotcard-provider {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--muted-fg);
}

.sh-slotcard-meta {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--muted-fg);
}


/* ── Content Section (article + tables) ──────────────────────── */
.sh-cat-content {
  margin-bottom: 40px;
}

.sh-cat-article {
  font-family: var(--font-body);
}

.sh-cat-article h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--fg);
  margin: 32px 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sh-cat-article h2:first-child {
  margin-top: 0;
}

.sh-cat-article h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin: 28px 0 16px;
}

.sh-cat-article p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-fg);
  margin: 0 0 16px;
}

.sh-cat-article ul,
.sh-cat-article ol {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-fg);
  margin: 0 0 16px;
  padding-left: 24px;
}

.sh-cat-article li {
  margin-bottom: 6px;
}

.sh-cat-article strong {
  color: var(--fg);
}

/* Tables in content */
.sh-cat-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  margin: 0 0 24px;
  overflow: hidden;
}

.sh-cat-article thead tr {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
}

.sh-cat-article th {
  text-align: left;
  padding: 12px;
  font-weight: 600;
  color: var(--fg);
}

.sh-cat-article td {
  padding: 12px;
  color: var(--muted-fg);
  border-bottom: 1px solid hsla(220, 15%, 15%, 0.5);
}

.sh-cat-article tbody tr:nth-child(even) {
  background: hsla(220, 15%, 8%, 0.3);
}

.sh-cat-article td.sh-td-primary {
  color: var(--primary);
  font-weight: 500;
}

.sh-cat-article td.sh-td-gold {
  color: hsl(45, 90%, 60%);
  font-weight: 500;
}

.sh-cat-article td.sh-td-name {
  color: var(--fg);
  font-weight: 500;
}

.sh-cat-article .sh-table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
}


/* ── FAQ Section ─────────────────────────────────────────────── */
.sh-cat-faq {
  background: hsla(220, 15%, 8%, 0.3);
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 40px;
}

.sh-cat-faq-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}


/* ── Responsive ──────────────────────────────────────────────── */
@media (min-width: 480px) {
  .sh-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sh-slotgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) {
  .sh-cat-hero {
    height: 180px;
  }
  .sh-cat-hero-title {
    font-size: 2rem;
  }
  .sh-cat-card {
    height: 128px;
  }
  .sh-cat-grid {
    gap: 16px;
  }
}

@media (min-width: 768px) {
  .sh-cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .sh-slotgrid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .sh-catpage {
    padding: 0 24px 64px;
  }
  .sh-cat-hero-inner {
    padding: 0 24px 24px;
  }
  .sh-cat-hero-title {
    font-size: 2.5rem;
  }
  .sh-cat-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .sh-slotgrid {
    grid-template-columns: repeat(5, 1fr);
  }
  .sh-cat-faq {
    padding: 32px;
  }

  /* Individual page hero is taller */
  .sh-cat-hero--tall {
    height: 220px;
  }
}
