/*
  Casinos SHMA — Global Styles (BEM + CSS Variables)
  Palette tuned for higher clarity and subtle, tasteful color accents.
*/

:root {
  /* Palette */
  --color-bg: #0b0f1a;
  --color-surface: #16213e; /* brighter surface */
  --color-elev: #1b2a4e; /* elevated panels (brighter) */
  --color-primary: #36d6a8; /* teal accent */
  --color-primary-2: #22c79a;
  --color-attn: #ffd166; /* warm gold for ratings */
  --color-attn-2: #ffb703; /* deeper gold */
  --color-text: #eef3fb;
  --color-text-dim: #c5d1e6;
  --color-border: #3a4a70; /* clearer border */
  --color-border-hi: #4a5f8f; /* highlighted border */
  --color-success: #5eead4;
  --color-danger: #ff6b6b;

  /* Typography */
  --font-base: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, Noto Sans, sans-serif;
  --font-display: "Poppins", var(--font-base);
  --fs-1: clamp(2.2rem, 1.6rem + 2vw, 3rem);
  --fs-2: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-3: 1.125rem;
  --fs-4: 0.9375rem;

  /* Layout */
  --container: 1200px;
  --radius-1: 14px;
  --radius-2: 10px;
  --radius-3: 8px;
  --radius-round: 999px;
  --space-1: 6px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;

  /* Effects */
  --shadow-1: 0 8px 24px rgba(0, 0, 0, 0.22);
  --shadow-2: 0 12px 36px rgba(0, 0, 0, 0.3);
  --focus: 0 0 0 3px rgba(54, 214, 168, 0.35);
  --speed-fast: 120ms;
  --speed: 200ms;
  --speed-slow: 380ms;
}

/* Reset / Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: radial-gradient(1200px 600px at 12% -8%, #1a2a4d, transparent 60%),
    radial-gradient(1100px 520px at 88% 0%, #15264a, transparent 60%),
    radial-gradient(
      900px 400px at 100% 100%,
      rgba(54, 214, 168, 0.08),
      transparent 70%
    ),
    var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.muted {
  color: var(--color-text-dim);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(11, 15, 26, 0.7);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand__logo {
  inline-size: 34px;
  block-size: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary), #64ffd6);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
}
.site-nav {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.site-nav__link {
  color: var(--color-text-dim);
  font-size: var(--fs-4);
  padding: 10px 12px;
  border-radius: 8px;
  position: relative;
  transition: color var(--speed), background var(--speed);
}
.site-nav__link:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    transparent
  );
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity var(--speed), transform var(--speed);
}
.site-nav__link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 70px;
  border-radius: var(--radius-round);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform var(--speed-fast) ease, background var(--speed),
    box-shadow var(--speed), border-color var(--speed);
}
.btn--primary {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-2)
  );
  color: #061a13;
  border-color: rgba(255, 255, 255, 0.18);
  background-size: 200% 200%;
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
  background-position: right center;
}

/* Burger */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--speed), border-color var(--speed);
}
.burger:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-border-hi);
}
.burger__lines {
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: background var(--speed-fast);
}
.burger__lines::before,
.burger__lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--speed), top var(--speed), opacity var(--speed);
}
.burger__lines::before {
  top: -7px;
}
.burger__lines::after {
  top: 7px;
}
.burger[aria-expanded="true"] .burger__lines {
  background: transparent;
}
.burger[aria-expanded="true"] .burger__lines::before {
  top: 0;
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] .burger__lines::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Nav Panel */
@media (max-width: 960px) {
  .burger {
    display: inline-flex;
  }
  .site-nav {
    position: fixed;
    inset: 68px 12px auto 12px;
    background: var(--color-elev);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow-2);
    transform-origin: top right;
    transform: scale(0.98) translateY(-6px);
    opacity: 0;
    pointer-events: none;
    display: grid;
    gap: 6px;
  }
  .site-nav--open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav__link {
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
  }
  .site-nav__link:hover {
    border-color: var(--color-border-hi);
    background: rgba(255, 255, 255, 0.04);
  }
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--color-primary);
  color: #05150f;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 2000;
}

/* Hero */
.hero {
  padding: var(--space-7) 0 var(--space-6);
  background: linear-gradient(
    to bottom,
    rgba(21, 28, 47, 0.5),
    rgba(21, 28, 47, 0.1) 60%,
    transparent
  );
  border-bottom: 1px solid var(--color-border);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  text-align: center;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-1);
  line-height: 1.2;
  margin: 0 0 var(--space-4);
  letter-spacing: 0.4px;
}
.hero__desc {
  color: var(--color-text-dim);
  font-size: var(--fs-3);
  margin: 0 0 var(--space-4);
}
.hero__aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.hero__note {
  font-size: 0.9rem;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );
  padding: var(--space-3);
  border-radius: var(--radius-2);
  animation: subtleFloat 6s ease-in-out infinite;
}

/* Payments row */
.payments {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}
.payments__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-round);
  color: var(--color-text-dim);
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.payments__logo {
  width: 60px;
  height: 24px;
  object-fit: contain;
  filter: saturate(1.05) contrast(1.08);
  transition: transform var(--speed), filter var(--speed);
}
.payments__item:hover .payments__logo {
  transform: translateY(-1px) scale(1.04);
  filter: saturate(1.1) contrast(1.1) brightness(1.05);
}

/* Offers */
.offers {
  padding: var(--space-6) 0;
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-2);
  margin: 0 0 var(--space-4);
  position: relative;
}
.section__title::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 10px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    rgba(255, 255, 255, 0)
  );
  border-radius: 2px;
}
.offers__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.card {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-1);
  box-shadow: var(--shadow-1);
  transition: transform var(--speed), box-shadow var(--speed),
    border-color var(--speed);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(54, 214, 168, 0.35),
    rgba(255, 255, 255, 0.06)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
  background-size: 200% 200%;
  animation: cardBorder 12s ease infinite;
}
.card > * {
  position: relative;
  z-index: 1;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--color-border-hi);
}
.card__logo {
  width: 100%;
  height: 168px;
  object-fit: contain;
  background: #0d1425;
  border-radius: 10px;
  padding: 8px;
  border: 1px solid var(--color-border);
}
.card__name {
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--color-text-dim);
  font-size: 0.95rem;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-round);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rating__value {
  font-weight: 700;
  color: var(--color-attn);
}
.rating__stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.rating__star {
  width: 16px;
  height: 16px;
  fill: url(#starGradient);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}
.card__cta {
  display: grid;
  gap: 10px;
  justify-items: end;
  position: relative;
  z-index: 2;
}
.card__bonus {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Card body + flag */
.card__body {
  display: grid;
  gap: 10px;
  align-content: center;
  text-align: center;
}
.card__flag {
  position: absolute;
  top: -20px;
  left: 10px;
  padding: 6px 10px;
  border-radius: var(--radius-round);
  background: linear-gradient(135deg, var(--color-attn), var(--color-attn-2));
  color: #1b1200;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-1);
  animation: flagPulse 3.5s ease-in-out infinite;
}
@keyframes flagPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.5px);
  }
}

/* Card payments duplication */
.card__payments {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.card__pay-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
  filter: saturate(1.05) contrast(1.08);
  border-radius: var(--radius-3);
  background: rgba(255, 255, 255, 0.03);
  padding: 1px;
  border: 1px solid var(--color-border);
  transition: transform var(--speed), filter var(--speed);
}
.card__payments:hover .card__pay-logo {
  transform: translateY(-1px) scale(1.03);
  filter: saturate(1.1) contrast(1.1) brightness(1.05);
}

/* Content sections */
.content {
  padding: var(--space-4) 0;
}
.content-section {
  border: 1px solid var(--color-border-hi);
  background: linear-gradient(
    180deg,
    rgba(18, 25, 44, 0.65),
    rgba(18, 25, 44, 0.4)
  );
  border-radius: var(--radius-1);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-2);
}
.content-section h2 {
  font-family: var(--font-display);
  margin-top: 0;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
}
.content-section h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}
.content-section p,
.content-section li {
  color: var(--color-text-dim);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: #0b111f;
  padding: var(--space-6) 0 var(--space-5);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  text-align: center;
}
.footer__logos {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}
.footer__logo {
  height: 40px;
  width: auto;
  filter: grayscale(0.1) brightness(1.1);
  opacity: 0.9;
  transition: opacity var(--speed), transform var(--speed);
}
.footer__logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.footer__links {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a {
  color: var(--color-text-dim);
}
.legal {
  color: var(--color-text-dim);
  font-size: 0.85rem;
  margin-top: var(--space-4);
}

/* Animations */
@keyframes subtleFloat {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0px);
  }
}
@keyframes cardBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__aside {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 960px) {
  .roulette {
    display: none;
  }
  /* Cards stack on mobile: content in a column */
  .card {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .card__cta {
    justify-items: start;
  }
  .card__meta,
  .card__body {
    text-align: left;
    justify-content: flex-start;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .btn {
    width: 100%;
    padding: 10px 0px;
  }
  .hero__desc {
    font-size: 0.9rem;
    margin: 0 0 var(--space-1);
    text-align: center;
  }
  .hero__title {
    margin: 0 0 var(--space-1);
    font-size: 1.8rem;
    text-align: center;
  }
  .payments {
    gap: var(--space-1);
    justify-content: center;
  }
  .muted-hidden {
    display: none;
  }
  .card {
    gap: var(--space-1);
    padding: 18px;
  }
  .card__meta {
    justify-content: center;
    gap: 6px 10px;
    font-size: 0.85rem;
  }
  .card__name {
    text-align: center;
  }
  .card__bonus {
    width: 100%;
    text-align: center;
  }
  .card__payments {
    justify-content: center;
  }
  .badge {
    padding: 4px;
    font-size: 0.85rem;
  }
  .card__bonus strong {
    display: block;
  }
  .card__flag {
    font-size: 0.7rem;
    padding: 4px;
    top: -10px;
  }
  .card__logo {
    height: 110px;
  }
  .payments__item {
    gap: 0;
    padding: 0;
  }
  .hero {
    padding: var(--space-4) 0 var(--space-3);
  }
  .offers {
    padding: var(--space-3) 0;
  }
  .content {
    padding: var(--space-3) 0;
  }
  .content-section {
    padding: var(--space-3);
  }
}
.link {
  color: var(--color-primary);
  font-weight: 600;
  position: relative;
}
.link:hover {
  color: var(--color-primary-2);
}

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