/* ccx.css — exclusive design system for Casino Cubiq (ccx namespace)
   New fonts, colors, components, and interactions */

/* Google Fonts: DM Sans (headings), Manrope (body) */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;700&family=Manrope:wght@400;600;700&display=swap");

:root {
  /* Color system: deep night + neon accents */
  --ccx-bg: #0d0b16;
  --ccx-surface: #15122a;
  --ccx-elev: #1a1840;
  --ccx-panel: #161533;
  --ccx-accent: #9d4edd; /* violet */
  --ccx-accent-2: #4cc9f0; /* electric cyan */
  --ccx-accent-3: #ff6b6b; /* coral for states */
  --ccx-text: #f3f5f7;
  --ccx-muted: #fff;
  --ccx-border: rgba(255, 255, 255, 0.08);
  --ccx-focus-ring: 0 0 0 3px rgba(76, 201, 240, 0.35);

  --ccx-radius-lg: 18px;
  --ccx-radius-md: 12px;
  --ccx-radius-sm: 8px;

  --ccx-gap: 20px;
  --ccx-shadow-1: 0 6px 18px rgba(0, 0, 0, 0.35);
  --ccx-shadow-2: 0 12px 34px rgba(0, 0, 0, 0.45);
}

/* Reset / base */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--ccx-text);
  background: var(--ccx-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}

/* Accessibility helpers */
.ccx-visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.ccx-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 9999;
  background: var(--ccx-accent-2);
  color: #07161c;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--ccx-radius-sm);
}
.ccx-skip:focus {
  left: 16px;
  top: 16px;
  box-shadow: var(--ccx-focus-ring);
  outline: none;
}

/* Layout container */
.ccx-container {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

/* Header */
.ccx-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--ccx-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  backdrop-filter: blur(5px);
}
.ccx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}
.ccx-brand {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  text-decoration: none;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.ccx-brand strong {
  color: var(--ccx-accent-2);
}
.ccx-brand span {
  color: var(--ccx-accent);
}
.ccx-brand img {
  height: 28px;
  width: auto;
  margin-right: 8px;
  display: inline-block;
}
.ccx-nav ul {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.ccx-nav a {
  color: var(--ccx-muted);
  font-weight: 700;
  padding: 8px 10px;
  border-radius: var(--ccx-radius-sm);
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}
.ccx-nav a:hover {
  color: var(--ccx-text);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}
.ccx-nav a:focus {
  outline: none;
  box-shadow: var(--ccx-focus-ring);
}

/* Hero */
.ccx-hero {
  padding: 42px 0;
}
.ccx-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.ccx-hero__title {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.7rem, 1.1rem + 2.9vw, 2.9rem);
  line-height: 1.05;
  margin: 0 0 12px;
}
.ccx-hero__title em {
  background: linear-gradient(90deg, var(--ccx-accent), var(--ccx-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}
.ccx-hero__desc {
  color: var(--ccx-muted);
  margin: 0 0 18px;
  max-width: none;
  width: 100%;
}

.ccx-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 18px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ccx-border);
  border-radius: 999px;
  padding: 10px 14px;
}
.ccx-pay__label {
  color: var(--ccx-muted);
  font-weight: 700;
  margin-right: 6px;
}
.ccx-pay img {
  width: 100px;
  height: 32px;
  background: rgba(0, 0, 0, 0.18);
  padding: 6px 8px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Buttons */
.ccx-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.ccx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--ccx-radius-md);
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.ccx-button:focus {
  outline: none;
  box-shadow: var(--ccx-focus-ring);
}
.ccx-button.is-primary {
  color: #0b0e10;
  background: linear-gradient(90deg, var(--ccx-accent), var(--ccx-accent-2));
  box-shadow: 0 10px 30px rgba(157, 78, 221, 0.25),
    0 8px 26px rgba(76, 201, 240, 0.18);
}
.ccx-button.is-primary:hover {
  transform: translateY(-4px) scale(1.02);
  filter: saturate(1.1);
}
.ccx-button.is-ghost {
  color: var(--ccx-text);
  background: transparent;
  border: 1px solid var(--ccx-border);
}
.ccx-button.is-ghost:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

/* Hiding unused header/actions/art per brief */
.ccx-actions {
  display: none !important;
}
.ccx-hero__art {
  display: none;
}

/* Hero artwork */
.ccx-hero__art img {
  width: 100%;
  height: auto;
  border-radius: var(--ccx-radius-md);
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.6));
}

/* Section titles */
.ccx-section-title {
  font-family: "DM Sans", sans-serif;
  color: var(--ccx-accent-2);
  font-size: 1.2rem;
  margin: 10px 0 20px;
}

/* Offer cards grid */
.ccx-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

/* Offer card */
.ccx-offer {
  position: relative;
  border: 1px solid var(--ccx-border);
  border-radius: var(--ccx-radius-lg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.02)
  );
  padding: 32px 16px;
  transition: transform 0.35s cubic-bezier(0.18, 0.98, 0.22, 1),
    box-shadow 0.35s, border-color 0.25s;
  box-shadow: var(--ccx-shadow-1);
}
.ccx-offer:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 16px 40px rgba(10, 6, 30, 0.5);
  border-color: rgba(157, 78, 221, 0.35);
}
.ccx-offer.is-featured {
  outline: 0;
  box-shadow: 0 0px 10px rgba(157, 78, 221, 0.25),
    0 0px 10px rgba(76, 201, 240, 0.15);
}

.ccx-offer__badge {
  position: absolute;
  left: 18px;
  top: -14px;
  background: linear-gradient(90deg, var(--ccx-accent-2), var(--ccx-accent));
  color: #051317;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.ccx-offer__row {
  display: flex;
  gap: 16px;
  align-items: center;
}
.ccx-offer__media {
  margin: 0;
  flex: 0 0 210px;
  display: grid;
  place-items: center;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.02)
    ),
    var(--ccx-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ccx-radius-md);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(76, 201, 240, 0.08);
}
.ccx-offer__logo {
  width: 160px;
  height: 100px;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55));
}

.ccx-offer__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ccx-offer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ccx-offer__title {
  display: none;
}

.ccx-chiprow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.ccx-chip {
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ccx-text);
}
.ccx-badgerow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ccx-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  color: #0c0f12;
}
.ccx-tag.is-violet {
  background: var(--ccx-accent);
  color: #130924;
}
.ccx-tag.is-cyan {
  background: var(--ccx-accent-2);
  color: #07161c;
}
.ccx-tag.is-coral {
  background: var(--ccx-accent-3);
  color: #2a0d0d;
}

.ccx-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ccx-star {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.ccx-offer__intro {
  margin: 6px 0;
  color: var(--ccx-muted);
  font-weight: 700;
  text-align: center;
}
.ccx-offer__intro strong {
  display: block;
  font-size: 1.4rem;
}
.ccx-offer__meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 10px;
  padding: 0;
  color: var(--ccx-muted);
}

.ccx-payrow {
  display: flex;
  gap: 10px;
  align-items: center;
  order: 2;
  margin-top: 8px;
  width: 100%;
  justify-content: space-evenly;
  flex-wrap: wrap;
}
.ccx-payrow img {
  width: 60px;
  height: 20px;
  border-radius: 8px;
  transition: filter 0.2s, transform 0.2s;
}
.ccx-payrow img:hover {
  transform: translateY(-4px) scale(1.02);
}
.ccs-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.ccx-offer__actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
  order: 1;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
}
.ccx-offer__actions .ccx-button {
  width: 100%;
}

/* Content sections */
.ccx-section {
  padding: 28px 0;
}
.ccx-title {
  font-family: "DM Sans", sans-serif;
  color: var(--ccx-accent-2);
  font-size: 1.22rem;
  margin: 0 0 12px;
}
.ccx-subtitle {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  margin: 14px 0 6px;
}
.ccx-text-muted {
  color: var(--ccx-muted);
}
.ccx-list {
  padding-left: 18px;
  color: var(--ccx-muted);
  margin: 12px 0 0;
}
.ccx-link {
  color: var(--ccx-accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ccx-link:hover {
  color: var(--ccx-accent);
}

/* Footer */
.ccx-footer {
  border-top: 1px solid var(--ccx-border);
  margin-top: 42px;
  padding: 34px 0;
  text-align: center;
}
.ccx-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  justify-items: center;
}
.ccx-footer__title {
  margin: 0 0 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 1.02rem;
}
.ccx-muted {
  color: var(--ccx-muted);
}
.ccx-footer__logos {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.ccx-footer__logo {
  height: 36px;
  width: auto;
  display: block;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 8px;
  border-radius: 8px;
  filter: brightness(1.05);
  transition: transform 0.18s ease;
}
.ccx-footer__logo:hover {
  transform: translateY(-4px);
}
.ccx-footer__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.ccx-footer__links a {
  color: var(--ccx-muted);
  text-decoration: none;
}
.ccx-legal {
  margin-top: 16px;
  color: var(--ccx-muted);
}

/* Sticky CTA (optional) */
.ccx-sticky {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 65;
}

/* Responsive */
@media (max-width: 980px) {
  .ccx-hero {
    padding: 24px 0;
  }
  .ccx-pay {
    border-radius: 12px;
    padding: 6px;
    margin: 0;
    gap: 6px;
  }
  .ccx-pay img {
    width: 23%;
  }
  .ccx-pay__label {
    display: none;
  }
  .ccx-hero__desc {
    margin: 0 0 10px;
    font-size: 0.85rem;
  }
  .ccx-hero__grid {
    grid-template-columns: 1fr;
  }
  .ccx-offer {
    padding: 24px 12px 12px;
  }
  .ccx-offer__badge {
    font-size: 0.7rem;
  }
  .ccx-nav ul {
    display: none;
  }
  .ccx-footer__grid {
    grid-template-columns: 1fr;
  }
  .ccx-offer__row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .ccx-offer__media {
    order: -1;
    width: 100%;
    flex: 0 0 100%;
  }
  .ccx-offer__intro,
  .ccx-offer__meta {
    margin: 0;
  }
  .ccx-offer__logo {
    width: 100%;
    object-fit: contain;
  }
  .ccx-offer__body {
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
  }
  .ccx-offer__meta {
    width: 48%;
    font-size: 0.9rem;
    gap: 6px;
  }
  .ccs-block {
    gap: 6px;
  }
  .ccs-block,
  .ccx-offer__intro,
  .ccx-offer__head {
    width: 48%;
  }
  .ccx-chiprow {
    width: 100%;
  }
  .ccx-offer__intro {
    font-size: 0.9rem;
  }
  .ccx-offer__intro strong {
    font-size: 1.2rem;
  }
  .ccx-payrow {
    gap: 6px;
  }
  .ccx-offer__head {
  }
  .ccx-chiprow,
  .ccx-offer__meta,
  .ccx-offer__actions,
  .ccx-payrow {
    align-items: center;
    text-align: center;
  }
  .ccx-offer__actions .ccx-button {
    width: 100%;
    max-width: 320px;
  }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
