/* ==========================================================================
   Slotty House — Homepage Styles
   Matches the Lovable React/Tailwind reference
   ========================================================================== */

/* ---------- Homepage container ---------- */
.sh-homepage {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 16px;
  padding-top: 64px;
}

@media (min-width: 1024px) {
  .sh-homepage {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.sh-homepage img {
  display: block;
  max-width: 100%;
}

.sh-homepage a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Section spacing ---------- */
.sh-section {
  margin-bottom: 32px;
}

.sh-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--fg);
  margin-bottom: 16px;
}

.sh-section-subtitle {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-bottom: 24px;
  max-width: 48rem;
}

.sh-section-center {
  text-align: center;
  margin-bottom: 32px;
}

.sh-section-center .sh-section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.sh-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* ==========================================================================
   1. HERO / WELCOME SECTION
   ========================================================================== */
.sh-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .sh-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 0;
  }
}

.sh-hero-bg-scattered {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 40% at 50% 30%, hsl(152 50% 14% / 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 60% 30% at 30% 50%, hsl(152 40% 12% / 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 70% 45%, hsl(152 45% 13% / 0.3) 0%, transparent 60%);
}

.sh-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.sh-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .sh-hero-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
}

.sh-hero-copy {
  flex: 1;
}

.sh-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 12px;
}

@media (min-width: 1024px) {
  .sh-hero-title {
    font-size: 2.25rem;
  }
}

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

.sh-hero-desc {
  font-size: 1rem;
  color: var(--muted-fg);
  line-height: 1.6;
  max-width: 42rem;
}

/* Featured game card */
.sh-hero-card-col {
  width: 100%;
  flex-shrink: 0;
  margin-top: 16px;
}

@media (min-width: 1024px) {
  .sh-hero-card-col {
    width: 280px;
    margin-top: 0;
  }
}

.sh-featured-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.sh-featured-tag {
  display: inline-block;
  background: linear-gradient(to right, hsl(43,80%,55%), hsl(45,90%,65%), hsl(40,75%,50%));
  padding: 4px 10px;
}

.sh-featured-tag span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.625rem;
  color: hsl(0,0%,10%);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sh-featured-img {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.sh-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-featured-body {
  padding: 12px;
}

.sh-featured-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sh-featured-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--fg);
}

.sh-featured-rtp {
  font-size: 0.625rem;
  color: var(--muted-fg);
}

.sh-featured-actions {
  display: flex;
  gap: 6px;
}

.sh-featured-actions .sh-btn {
  flex: 1;
}

/* ==========================================================================
   BUTTONS (homepage-specific variants; base .sh-btn is in cpt.css)
   ========================================================================== */
.sh-btn--sm {
  padding: 6px 12px;
  font-size: 0.6875rem;
}

.sh-btn--outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--fg);
}

.sh-btn--outline:hover {
  border-color: hsla(152, 69%, 41%, 0.5);
  color: var(--primary);
}

/* ==========================================================================
   2. GAME CATEGORIES
   ========================================================================== */
.sh-cat-grid {
  display: grid;
  gap: 12px;
}

.sh-cat-grid--4 {
  grid-template-columns: repeat(2, 1fr);
}

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

.sh-cat-grid--6 {
  grid-template-columns: repeat(3, 1fr);
}

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

.sh-cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.sh-cat-card--tall {
  aspect-ratio: 4 / 3;
}

@media (min-width: 640px) {
  .sh-cat-card--tall {
    aspect-ratio: 16 / 9;
  }
}

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

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

.sh-cat-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Casino grid + card + button styles are now in cpt.css (universal) */

/* ==========================================================================
   4. CASINO REVIEWS
   ========================================================================== */
.sh-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sh-review-card {
  display: flex;
  gap: 16px;
  background: hsla(220, 15%, 8%, 0.3);
  border: 1px solid var(--border-color);
  padding: 16px;
  transition: border-color 0.3s;
}

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

.sh-review-img {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  overflow: hidden;
}

.sh-review-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-review-body {
  flex: 1;
  min-width: 0;
}

.sh-review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.sh-review-top h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg);
}

.sh-review-provider {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.sh-review-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
  margin-left: auto;
}

.sh-review-rtp {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-bottom: 8px;
}

.sh-review-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sh-review-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sh-review-tags span {
  font-size: 0.6875rem;
  padding: 2px 8px;
  background: hsla(220, 15%, 12%, 0.5);
  border: 1px solid var(--border-color);
  color: var(--muted-fg);
}

/* Mobile: stack review cards */
@media (max-width: 639px) {
  .sh-review-card {
    flex-direction: column;
  }
  .sh-review-img {
    width: 100%;
    height: 120px;
  }
}

/* ==========================================================================
   5. STRATEGY GUIDES
   ========================================================================== */
.sh-guides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .sh-guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.sh-guide-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: border-color 0.3s;
}

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

.sh-guide-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.sh-guide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-guide-body {
  padding: 12px;
}

.sh-guide-cat {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.sh-guide-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 8px;
}

.sh-guide-meta {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

/* ==========================================================================
   6. GAME TYPES EXPLAINER
   ========================================================================== */
.sh-explainer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .sh-explainer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sh-explainer-card {
  background: hsla(220, 15%, 8%, 0.3);
  border: 1px solid var(--border-color);
  padding: 20px;
  transition: border-color 0.3s;
}

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

.sh-explainer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sh-explainer-header h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--fg);
}

.sh-explainer-header h3 a:hover {
  color: var(--primary);
}

.sh-explainer-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.sh-explainer-link:hover {
  text-decoration: underline;
}

.sh-explainer-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sh-explainer-text p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.7;
}

/* ==========================================================================
   7. BONUS TYPES
   ========================================================================== */
.sh-bonus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .sh-bonus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.sh-bonus-card {
  display: block;
  background: hsla(220, 15%, 8%, 0.3);
  border: 1px solid var(--border-color);
  padding: 16px;
  transition: border-color 0.3s;
}

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

.sh-bonus-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--fg);
  margin-bottom: 4px;
  transition: color 0.2s;
}

.sh-bonus-card:hover h3 {
  color: var(--primary);
}

.sh-bonus-card p {
  font-size: 0.75rem;
  color: var(--muted-fg);
  line-height: 1.5;
}

/* ==========================================================================
   8. PROVIDER SPOTLIGHT
   ========================================================================== */
.sh-provider-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.sh-provider-card {
  background: hsla(220, 15%, 8%, 0.3);
  border: 1px solid var(--border-color);
  padding: 20px;
  transition: border-color 0.3s;
}

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

.sh-provider-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sh-provider-header h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--fg);
}

.sh-provider-header h3 a:hover {
  color: var(--primary);
}

.sh-provider-specialty {
  font-size: 0.75rem;
  color: var(--primary);
  display: block;
  margin-top: 2px;
}

/* ==========================================================================
   9. RESPONSIBLE GAMING
   ========================================================================== */
.sh-rg-box {
  background: linear-gradient(135deg, hsla(220, 15%, 8%, 0.5), hsla(220, 15%, 8%, 0.3));
  border: 1px solid var(--border-color);
  padding: 24px;
}

@media (min-width: 1024px) {
  .sh-rg-box {
    padding: 32px;
  }
}

.sh-rg-prose {
  margin-bottom: 24px;
}

.sh-rg-prose p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 12px;
}

.sh-rg-tips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .sh-rg-tips {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sh-rg-tips {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sh-rg-tip {
  background: hsla(220, 20%, 4%, 0.5);
  border: 1px solid var(--border-color);
  padding: 16px;
}

.sh-rg-tip h3 {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--fg);
  margin-bottom: 4px;
}

.sh-rg-tip p {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.sh-rg-footer {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.7;
}

.sh-rg-footer a {
  color: var(--primary);
}

.sh-rg-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   10. GLOSSARY
   ========================================================================== */
.sh-glossary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

@media (min-width: 1024px) {
  .sh-glossary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sh-glossary-card {
  background: hsla(220, 15%, 8%, 0.3);
  border: 1px solid var(--border-color);
  padding: 16px;
  transition: border-color 0.3s;
}

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

.sh-glossary-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--fg);
  margin-bottom: 4px;
}

.sh-glossary-card p {
  font-size: 0.75rem;
  color: var(--muted-fg);
  line-height: 1.5;
}

/* ==========================================================================
   11. FAQ
   ========================================================================== */
.sh-faq-box {
  background: hsla(220, 15%, 8%, 0.3);
  border: 1px solid var(--border-color);
  padding: 24px;
}

@media (min-width: 1024px) {
  .sh-faq-box {
    padding: 32px;
  }
}

.sh-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sh-faq-item {
  border: 1px solid var(--border-color);
  padding: 0 16px;
  background: hsla(220, 20%, 4%, 0.5);
}

.sh-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  font-family: var(--font-body);
  transition: color 0.2s;
}

.sh-faq-question:hover {
  color: var(--primary);
}

.sh-faq-question .sh-chevron-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--muted-fg);
}

.sh-faq-item.is-open .sh-faq-question .sh-chevron-icon {
  transform: rotate(180deg);
}

.sh-faq-answer {
  display: none;
  padding-bottom: 16px;
}

.sh-faq-item.is-open .sh-faq-answer {
  display: block;
}

.sh-faq-answer p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 12px;
}

.sh-faq-answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   BUTTON VARIANTS (additional)
   ========================================================================== */

/* Primary (green) button */
.sh-btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.sh-btn--primary:hover {
  filter: brightness(0.9);
}

/* Extra-small button (for originals game rows) */
.sh-btn--xs {
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
}

/* ==========================================================================
   REVIEW CARD — Action Buttons
   ========================================================================== */
.sh-review-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .sh-review-card {
    align-items: center;
  }
  .sh-review-actions {
    padding: 0;
    padding-right: 16px;
    min-width: 120px;
  }
}

.sh-review-actions .sh-btn {
  white-space: nowrap;
  width: 100%;
}

/* ==========================================================================
   CASINO ORIGINALS SECTION
   ========================================================================== */
.sh-originals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

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

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

/* Card header */
.sh-originals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid hsla(220, 15%, 15%, 0.5);
  background: linear-gradient(to right, hsla(220, 15%, 12%, 0.3), transparent);
}

.sh-originals-casino {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sh-originals-logo {
  width: 48px;
  height: 48px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 4px;
}

.sh-originals-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sh-originals-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sh-originals-tag {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sh-originals-tagline {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-top: 2px;
}

/* Desktop visit button */
.sh-originals-visit {
  display: none;
}

@media (min-width: 640px) {
  .sh-originals-visit {
    display: inline-flex;
  }
}

/* Mobile visit button */
.sh-originals-visit-mobile {
  display: flex;
  margin: 0 16px 16px;
}

@media (min-width: 640px) {
  .sh-originals-visit-mobile {
    display: none;
  }
}

/* Games list */
.sh-originals-games {
  padding: 16px;
}

.sh-originals-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-fg);
  margin-bottom: 8px;
}

.sh-originals-game {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  transition: background 0.2s;
}

.sh-originals-game:hover {
  background: hsla(220, 15%, 12%, 0.4);
}

.sh-originals-thumb {
  width: 40px;
  height: 28px;
  overflow: hidden;
  flex-shrink: 0;
}

.sh-originals-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-originals-game span {
  flex: 1;
  font-size: 0.875rem;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sh-originals-game:hover span {
  color: var(--primary);
}

.sh-originals-game .sh-btn {
  flex-shrink: 0;
}
