/* ==========================================================================
   Slotty House — Global Styles (Header, Footer, Navigation)
   Loaded on every page.
   ========================================================================== */

@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');

/* ---------- CSS Custom Properties ---------- */
: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%);
  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ---------- Base Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

/* ---------- Heading defaults ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--muted);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ---------- Sharp Corners (Lovable design system) ---------- */
*,
*::before,
*::after {
  border-radius: 0 !important;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.sh-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: hsla(220, 15%, 8%, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid hsla(220, 15%, 15%, 0.5);
}

/* Push navbar down when WP admin bar is showing */
.admin-bar .sh-navbar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .sh-navbar {
    top: 46px;
  }
}

.sh-navbar-inner {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 16px;
  position: relative;
}

@media (min-width: 1024px) {
  .sh-navbar-inner {
    padding: 0 24px;
  }
}

/* ---- Logo ---- */
.sh-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  left: 16px;
  z-index: 10;
}

@media (min-width: 1024px) {
  .sh-logo-link {
    left: 24px;
  }
}

.sh-logo-img {
  width: 56px;
  height: 56px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.sh-logo-link:hover .sh-logo-img {
  transform: scale(1.05);
  box-shadow: 0 0 20px hsla(152, 69%, 41%, 0.5);
}

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

.sh-logo-text {
  display: none;
  align-items: baseline;
  gap: 4px;
}

@media (min-width: 640px) {
  .sh-logo-text {
    display: flex;
  }
}

.sh-logo-slotty {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: var(--fg);
  transition: color 0.3s;
}

.sh-logo-link:hover .sh-logo-slotty {
  color: var(--primary);
}

.sh-logo-house {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: var(--primary);
}

/* ---- Desktop Nav ---- */
.sh-desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .sh-desktop-nav {
    display: flex;
  }
}

/* Plain nav links */
.sh-nav-link {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--muted-fg);
  transition: color 0.3s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sh-nav-link:hover {
  color: var(--fg);
}

/* ---- Dropdown triggers ---- */
.sh-nav-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--muted-fg);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sh-nav-trigger:hover {
  color: var(--fg);
}

.sh-chevron-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.15s;
  flex-shrink: 0;
}

.sh-nav-dropdown.is-open .sh-nav-trigger .sh-chevron-icon {
  transform: rotate(180deg);
}

/* ---- Mega menu panels ---- */
.sh-nav-dropdown {
  position: relative;  /* panels positioned relative to their trigger */
}

.sh-mega-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding-top: 8px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.sh-nav-dropdown.is-open .sh-mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Slots 4-col: align to left edge of trigger (too wide to center) */
.sh-mega-panel--4col {
  left: 0;
  transform: translateY(-4px);
}

.sh-nav-dropdown.is-open .sh-mega-panel--4col {
  transform: translateY(0);
}

/* Shared panel box styling */
.sh-mega-panel--4col,
.sh-mega-panel--2col,
.sh-mega-panel--single {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 0 1px hsla(220, 15%, 15%, 0.3);
  padding: 24px;
}

/* 4-column: Slots */
.sh-mega-panel--4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  min-width: 720px;
  max-width: 820px;
}

/* 2-column: Casino Games */
.sh-mega-panel--2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  min-width: 420px;
  max-width: 520px;
}

/* Single column: Live Games, Bonuses, Game Providers */
.sh-mega-panel--single {
  min-width: 240px;
  max-width: 280px;
}

/* Links inside single-column panels (no .sh-mega-col wrapper) */
.sh-mega-panel--single ul {
  display: flex;
  flex-direction: column;
}

.sh-mega-panel--single ul li a {
  display: block;
  font-size: 0.875rem;
  color: var(--fg);
  padding: 6px 8px;
  transition: background 0.2s, color 0.2s;
}

.sh-mega-panel--single ul li a:hover {
  background: var(--primary);
  color: var(--primary-fg);
}

.sh-mega-heading {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid hsla(220, 15%, 15%, 0.5);
  transition: color 0.2s;
}

.sh-mega-heading:hover {
  color: hsla(152, 69%, 41%, 0.8);
}

.sh-mega-col ul {
  display: flex;
  flex-direction: column;
}

.sh-mega-col ul li a {
  display: block;
  font-size: 0.875rem;
  color: var(--fg);
  padding: 6px 8px;
  transition: background 0.2s, color 0.2s;
}

.sh-mega-col ul li a:hover {
  background: var(--primary);
  color: var(--primary-fg);
}

.sh-mega-viewall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 12px;
  border: 1px solid hsla(152, 69%, 41%, 0.4);
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}

.sh-mega-viewall:hover {
  background: var(--primary);
  color: var(--primary-fg);
}

/* ---- Hamburger ---- */
.sh-hamburger {
  position: absolute;
  right: 16px;
  padding: 8px;
  color: var(--fg);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

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

.sh-hamburger svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 1024px) {
  .sh-hamburger {
    display: none;
  }
}

/* ---- Mobile Menu ---- */
.sh-mobile-menu {
  display: none;
  padding: 16px 0;
  border-top: 1px solid hsla(220, 15%, 15%, 0.5);
}

@media (min-width: 1024px) {
  .sh-mobile-menu {
    display: none !important;
  }
}

.sh-mobile-menu.is-open {
  display: block;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: hsla(220, 15%, 8%, 0.98);
}

.sh-mobile-divider {
  height: 1px;
  background: hsla(220, 15%, 15%, 0.5);
  margin: 8px 0;
}

/* Mobile section triggers */
.sh-mobile-section-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  font-family: var(--font-body);
}

.sh-mobile-section-trigger:hover {
  color: var(--fg);
}

.sh-mobile-section-trigger .sh-chevron-icon {
  transition: transform 0.2s;
}

.sh-mobile-section-trigger.is-open .sh-chevron-icon {
  transform: rotate(180deg);
}

/* Mobile section body — hidden by default */
.sh-mobile-section-body {
  display: none;
  padding: 0 8px;
}

.sh-mobile-section-body.is-open {
  display: block;
}

.sh-mobile-section-body > a {
  display: block;
  padding: 8px 16px;
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: background 0.2s;
}

.sh-mobile-section-body > a:hover {
  background: hsla(220, 15%, 12%, 0.3);
}

/* Mobile group (nested accordion) */
.sh-mobile-group-trigger {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
  font-family: var(--font-body);
}

.sh-mobile-group-trigger:hover {
  color: var(--fg);
}

.sh-mobile-group-body {
  display: none;
  padding-left: 16px;
}

.sh-mobile-group-body.is-open {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sh-mobile-group-body a {
  display: block;
  padding: 8px 16px;
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: background 0.2s;
}

.sh-mobile-group-body a:hover {
  background: hsla(220, 15%, 12%, 0.3);
}

/* Mobile plain links */
.sh-mobile-plain-link {
  display: block;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: background 0.2s, color 0.2s;
}

.sh-mobile-plain-link:hover {
  background: hsla(220, 15%, 12%, 0.3);
  color: var(--fg);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.sh-footer {
  background: hsla(220, 15%, 12%, 0.3);
  border-top: 1px solid var(--border-color);
  margin-top: 48px;
}

.sh-footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 48px 16px;
}

@media (min-width: 1024px) {
  .sh-footer-inner {
    padding: 48px 24px;
  }
}

/* Footer inner: on desktop, brand floats left, links fill right */
@media (min-width: 1024px) {
  .sh-footer-inner {
    display: flex;
    gap: 48px;
  }
}

/* Brand column */
.sh-footer-brand {
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .sh-footer-brand {
    width: 260px;
    flex-shrink: 0;
    margin-bottom: 0;
  }
}

/* Links grid: 2 cols on mobile, 3 on tablet, 5 on desktop */
.sh-footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 768px) {
  .sh-footer-links-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .sh-footer-links-grid {
    flex: 1;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
  }
}

/* Legal column spans full width on mobile (2 cols) */
.sh-footer-col--legal {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .sh-footer-col--legal {
    grid-column: auto;
  }
}

/* On mobile, legal links display in 2-col sub-grid */
@media (max-width: 639px) {
  .sh-footer-col--legal ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Footer brand */
.sh-footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.sh-footer-logo:hover .sh-logo-slotty {
  color: var(--primary);
}

.sh-footer-logo-img {
  width: 48px;
  height: 48px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.sh-footer-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.75;
  margin-bottom: 24px;
}

/* Social icons */
.sh-footer-social {
  display: flex;
  gap: 12px;
}

.sh-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: hsla(220, 15%, 12%, 0.5);
  border: 1px solid var(--border-color);
  color: var(--fg);
  transition: border-color 0.2s, color 0.2s;
}

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

/* Footer columns */
.sh-footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.sh-footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sh-footer-col ul li a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}

.sh-footer-col ul li a:hover {
  color: var(--primary);
}

/* Footer bottom bar */
.sh-footer-bottom {
  border-top: 1px solid var(--border-color);
}

.sh-footer-bottom-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

@media (min-width: 640px) {
  .sh-footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .sh-footer-bottom-inner {
    padding: 20px 24px;
  }
}

.sh-footer-disclaimer {
  text-align: center;
  font-size: 0.75rem;
}
