/* =========================================================
   Aussie Casinos — minimal, fast-loading template
   ========================================================= */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #1a1f2e;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }

:root {
  --c-bg:        #ffffff;
  --c-bg-soft:   #f7f8fa;
  --c-text:      #1a1f2e;
  --c-text-soft: #5b6473;
  --c-border:    #e6e8ec;
  --c-primary:   #18a55a;   /* high-CTR green for "Play" buttons */
  --c-primary-d: #138a4a;
  --c-accent:    #c8102e;   /* AU red for ranks / highlights */
  --c-gold:      #f5b800;   /* stars / bonuses */
  --radius:      10px;
  --shadow-1:    0 1px 2px rgba(20, 25, 40, 0.04), 0 1px 3px rgba(20, 25, 40, 0.06);
  --shadow-2:    0 6px 18px rgba(20, 25, 40, 0.10);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3 { margin: 0 0 .5em; color: var(--c-text); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
.section-title { font-size: clamp(1.4rem, 1rem + 1.4vw, 1.9rem); margin-bottom: .25em; }
.section-sub { color: var(--c-text-soft); margin: 0 0 28px; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.logo img { height: 36px; width: auto; }
.top-nav { display: flex; gap: 24px; }
.top-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--c-text-soft);
  transition: color .15s ease;
}
.top-nav a:hover { color: var(--c-accent); }

/* --- Hero --- */
.hero {
  padding: 48px 0 32px;
  text-align: center;
  background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--c-border);
}
.hero h1 { max-width: 800px; margin: 0 auto .6em; }
.hero-sub { max-width: 680px; margin: 0 auto 24px; color: var(--c-text-soft); font-size: 1.05rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  color: var(--c-text);
}
.badge img { display: inline-block; color: var(--c-primary); }

/* --- Casino ranking grid --- */
.ranking { padding: 56px 0; }
.casino-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.casino-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: var(--shadow-1);
}
.casino-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: #d4d8df;
}
.rank-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.casino-card:nth-child(1) .rank-badge { background: #f5b800; color: #2a1c00; }
.casino-card:nth-child(2) .rank-badge { background: #b8becb; color: #1a1f2e; }
.casino-card:nth-child(3) .rank-badge { background: #cd7f32; color: #fff; }

.casino-logo {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #f3f4f7;
}
.casino-logo img { width: 100%; height: 100%; object-fit: cover; }

.casino-name {
  font-size: 1.1rem;
  margin: 0 0 6px;
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--c-text-soft);
  margin-bottom: 12px;
}
.stars { color: var(--c-gold); letter-spacing: 1px; }
.rating-num { font-weight: 700; color: var(--c-text); }

.bonus {
  width: 100%;
  background: #fff8e6;
  border: 1px dashed #f5c34a;
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 14px;
}
.bonus-amount {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #8a5a00;
  line-height: 1.1;
}
.bonus-label {
  display: block;
  font-size: 0.85rem;
  color: #8a5a00;
  margin-top: 2px;
}

.features {
  width: 100%;
  text-align: left;
  margin-bottom: 16px;
}
.features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.875rem;
  color: var(--c-text-soft);
}
.features img { color: var(--c-primary); flex-shrink: 0; }

/* --- Buttons (all <a>) --- */
.btn {
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 2px 0 var(--c-primary-d);
}
.btn-primary:hover {
  background: var(--c-primary-d);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 165, 90, 0.35);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--c-text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-secondary:hover { color: var(--c-accent); }

/* --- Games slider --- */
.games {
  padding: 56px 0;
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.games-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.slider-controls { display: flex; gap: 8px; }
.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--c-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
  transition: background .15s ease, border-color .15s ease;
}
.slider-btn:hover { background: var(--c-text); color: #fff; border-color: var(--c-text); }
.slider-btn:hover img { filter: invert(1); }

.slider {
  overflow: hidden;
  position: relative;
}
.slider-track {
  display: flex;
  gap: 16px;
  transition: transform .35s ease;
  will-change: transform;
}
.game-card {
  flex: 0 0 calc((100% - 32px) / 3);  /* 3 visible by default */
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-border);
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.game-name {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.game-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-2);
}

/* --- SEO text block --- */
.seo-block {
  padding: 56px 0;
}
.seo-content {
  max-width: 820px;
  margin: 0 auto;
  color: var(--c-text-soft);
  font-size: 1rem;
  line-height: 1.7;
}
.seo-content h2,
.seo-content h3 {
  color: var(--c-text);
  margin-top: 1.5em;
}
.seo-content p { margin: 0 0 1em; }

/* --- Footer --- */
.site-footer {
  background: #0e1320;
  color: #c4c9d4;
  padding: 40px 0 24px;
  font-size: 0.9rem;
}
.site-footer .logo img { filter: brightness(0) invert(1); }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid #1f2536;
  margin-bottom: 24px;
}
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: #c4c9d4; transition: color .15s ease; }
.footer-nav a:hover { color: #fff; }
.disclaimer p { margin: 0 0 12px; line-height: 1.6; }
.disclaimer a { color: #fff; text-decoration: underline; }
.copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #8a93a3;
  padding-top: 14px;
  border-top: 1px solid #1f2536;
}
.copyright span {
  background: #c8102e;
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
}

/* --- Sticky bottom banner --- */
.sticky-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  background: #ffffff;
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 20px rgba(20, 25, 40, 0.10);
  padding: 12px 0;
  transform: translateY(100%);
  transition: transform .25s ease;
}
.sticky-banner.is-visible { transform: translateY(0); }
.sticky-banner.is-hidden { display: none; }
.sticky-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.sticky-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.sticky-text {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.sticky-text strong { display: block; font-size: 0.95rem; color: var(--c-text); }
.sticky-text span { display: block; font-size: 0.85rem; color: var(--c-text-soft); }
.sticky-cta {
  width: auto !important;
  padding: 10px 22px;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.sticky-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f1f4;
  color: var(--c-text-soft);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sticky-close:hover { background: #e0e2e7; color: var(--c-text); }

/* --- Responsive --- */
@media (max-width: 960px) {
  .casino-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .game-card { flex: 0 0 calc((100% - 16px) / 2); } /* 2 visible */
  .top-nav { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding: 36px 0 24px; }
  .ranking, .games, .seo-block { padding: 40px 0; }
  .casino-grid { grid-template-columns: 1fr; }
  .game-card { flex: 0 0 calc((100% - 16px) / 2); } /* still 2 visible on mobile */
  .games-head { align-items: flex-start; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sticky-inner { padding: 0 44px 0 12px; gap: 10px; }
  .sticky-text strong { font-size: 0.88rem; }
  .sticky-text span { font-size: 0.78rem; }
  .sticky-cta { padding: 9px 16px; font-size: 0.88rem; }
  .sticky-logo { width: 38px; height: 38px; }
}

@media (max-width: 380px) {
  .game-card { flex: 0 0 100%; } /* 1 per view on tiny screens */
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
