/* ==========================================================================
   Slotty House — CPT Styles
   Author Box + Casino Grid (shortcode)
   Matches the Lovable/React reference design 1:1
   ========================================================================== */

/* ---------- Fonts (same as homepage, safe to duplicate import) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ---------- Variables (mirrors homepage.css) ---------- */
:root {
  --bg: hsl(220, 20%, 4%);
  --fg: hsl(0, 0%, 98%);
  --card-bg: hsl(220, 15%, 8%);
  --card-fg: hsl(0, 0%, 98%);
  --primary: hsl(152, 69%, 41%);
  --primary-fg: hsl(0, 0%, 98%);
  --secondary: hsl(220, 15%, 12%);
  --muted: hsl(220, 15%, 12%);
  --muted-fg: hsl(220, 10%, 50%);
  --border-color: hsl(220, 15%, 15%);
  --gold: hsl(45, 100%, 51%);
  --gold-light: hsl(48, 100%, 60%);
  --gold-dark: hsl(40, 100%, 40%);

  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}


/* =====================================================================
   AUTHOR BOX
   ===================================================================== */

.sh-author-box {
  margin-top: 3rem;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  overflow: hidden;
}

.sh-author-box-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: hsla(152, 69%, 41%, 0.08);
  border-bottom: 1px solid var(--border-color);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sh-author-box-header svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sh-author-box-body {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
}

.sh-author-box-avatar-col {
  flex-shrink: 0;
}

.sh-author-box-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid hsla(152, 69%, 41%, 0.2);
  object-fit: cover;
}

.sh-author-box-info {
  flex: 1;
  min-width: 0;
}

.sh-author-box-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}

.sh-author-box-role {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: 0.125rem;
}

.sh-author-box-bio {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  line-height: 1.65;
  margin-top: 0.75rem;
}

.sh-author-box-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

.sh-author-box-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  background: hsla(152, 69%, 41%, 0.1);
  color: var(--primary);
  border: 1px solid hsla(152, 69%, 41%, 0.2);
}

.sh-author-box-socials {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

.sh-author-box-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--muted);
  color: var(--muted-fg);
  transition: background 0.2s, color 0.2s;
}

.sh-author-box-socials a:hover {
  background: hsla(152, 69%, 41%, 0.2);
  color: var(--primary);
}

.sh-author-box-socials svg {
  width: 14px;
  height: 14px;
}

/* Mobile: stack layout */
@media (max-width: 639px) {
  .sh-author-box-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sh-author-box-avatar {
    width: 64px;
    height: 64px;
  }

  .sh-author-box-tags {
    justify-content: center;
  }

  .sh-author-box-socials {
    justify-content: center;
  }
}


/* =====================================================================
   CASINO GRID — [casino_grid] SHORTCODE (universal, all pages)
   ===================================================================== */

/* ── Button base (used by casino grid + slot/game hero) ──────── */
.sh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
}

.sh-btn--gold {
  background: linear-gradient(to right, hsl(43,80%,55%), hsl(45,90%,65%), hsl(40,75%,50%));
  color: hsl(0,0%,10%) !important;
}

.sh-btn--gold:hover {
  filter: brightness(1.1);
}

.sh-btn--full {
  width: 100%;
}

/* ── Star icon ───────────────────────────────────────────────── */
.sh-star-icon {
  width: 12px;
  height: 12px;
  color: var(--primary);
}

/* ── Highlight (green text) ──────────────────────────────────── */
.sh-highlight {
  color: var(--primary) !important;
}

/* ── Casino Grid ─────────────────────────────────────────────── */
.sh-casino-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

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

/* ── Casino Card ─────────────────────────────────────────────── */
.sh-casino-card {
  background: var(--card-bg);
  border: 1px solid hsla(220, 15%, 15%, 0.5);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
}

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

.sh-casino-badge {
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  padding: 4px 8px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sh-casino-badge--empty {
  background: transparent;
}

.sh-casino-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 0;
  margin-bottom: 16px;
}

.sh-casino-logo {
  width: 48px;
  height: 48px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.sh-casino-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.sh-casino-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
}

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

.sh-casino-bonus {
  padding: 0 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.sh-casino-details {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  font-size: 0.875rem;
  margin-bottom: 8px;
  color: var(--muted-fg);
}

.sh-casino-details strong {
  color: var(--fg);
  font-weight: 500;
}

.sh-casino-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-bottom: 16px;
}

.sh-casino-license {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--fg);
  font-weight: 500;
}

.sh-casino-license svg {
  color: var(--primary);
}

.sh-casino-card .sh-btn {
  margin: 0 20px;
  width: calc(100% - 40px);
}

.sh-casino-tc {
  font-size: 0.75rem;
  color: var(--muted-fg);
  text-align: center;
  padding: 12px 20px 20px;
}

/* Legacy [top_casinos] shortcode grid (older markup) */
.sh-casinos-grid-wrap {
  margin: 2rem 0;
}

.sh-casinos-grid-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
}

.sh-casinos-grid {
  display: grid;
  gap: 1rem;
}

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

@media (max-width: 1023px) {
  .sh-casinos-grid--cols-3,
  .sh-casinos-grid--cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .sh-casinos-grid--cols-2,
  .sh-casinos-grid--cols-3,
  .sh-casinos-grid--cols-4 {
    grid-template-columns: 1fr;
  }
}


/* =====================================================================
   SINGLE POST — Content Area base styling
   (ensures posts look good on the dark theme)
   ===================================================================== */

.entry-content,
.post-content {
  font-family: var(--font-body);
  color: var(--fg);
  line-height: 1.7;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: var(--font-display);
  color: var(--fg);
  font-weight: 700;
}

.entry-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: hsla(152, 69%, 41%, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.entry-content a:hover {
  text-decoration-color: var(--primary);
}


/* =====================================================================
   SINGLE POST LAYOUT
   ===================================================================== */

.sh-single {
  padding-top: 5rem; /* clear fixed navbar */
  min-height: 100vh;
}

.sh-single-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.sh-article-header {
  margin-bottom: 2rem;
}

.sh-article-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .sh-article-title {
    font-size: 2.5rem;
  }
}

.sh-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--muted-fg);
}

.sh-article-meta a {
  color: var(--primary);
  text-decoration: none;
}

.sh-article-meta a:hover {
  text-decoration: underline;
}

.sh-article-thumb {
  margin-bottom: 2rem;
  border-radius: 0;
  overflow: hidden;
}

.sh-article-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.sh-article-content {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted-fg);
}

.sh-article-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.sh-article-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.sh-article-content p {
  margin-bottom: 1.25rem;
}

.sh-article-content ul,
.sh-article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.sh-article-content li {
  margin-bottom: 0.5rem;
}

.sh-article-content img {
  max-width: 100%;
  height: auto;
}

.sh-article-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: hsla(152, 69%, 41%, 0.05);
  color: var(--fg);
  font-style: italic;
}

.sh-article-content code {
  background: var(--muted);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.875em;
}

.sh-article-content pre {
  background: var(--muted);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.sh-article-content pre code {
  background: transparent;
  padding: 0;
}
