/*
  Paris Fortune - Neon Casino Theme (pf-* namespace)
  CSS updated: centered hero text with unified width, pf-offers side padding, pf-card 1fr/1fr on desktop, single-card aside spans full row, multi-card badge only on first, first card highlighted, refined mobile behaviors.

  Fonts in HTML: 'Oxanium' (headings) + 'Manrope' (body)
*/

/* ============================
   1) Design Tokens
============================= */
:root {
  --pf-bg: #070a12; /* Deep night */
  --pf-bg-2: #0b0f1a; /* Slightly lighter */
  --pf-surface: #0f1424; /* Panel background */
  --pf-surface-2: #121a30;

  --pf-text: #e8f0ff; /* Primary text */
  --pf-text-dim: #c7d2ee; /* Secondary text (slightly brighter for clarity) */
  --pf-text-muted: #8ea0c7; /* Muted */

  --pf-cyan: #00e5ff; /* Neon cyan */
  --pf-magenta: #ff00e6; /* Neon magenta */
  --pf-lime: #a8ff00; /* Neon lime */
  --pf-gold: #ffd24d; /* Gold (coins) */
  --pf-red: #ff3b3b; /* Alert */

  --pf-grad-1: linear-gradient(135deg, var(--pf-cyan), var(--pf-magenta));
  --pf-grad-2: linear-gradient(135deg, #1b2a52, #0d1b3d 60%, #1a1a2e);
  --pf-grad-coin: linear-gradient(135deg, #ffe58a, #ffd24d, #ffae00);

  /* Toned-down, crisper glows */
  --pf-ring: 0 0 0 0.14rem rgba(0, 229, 255, 0.5),
    0 0 0 0.24rem rgba(255, 0, 230, 0.28);
  --pf-shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.32);
  --pf-glow-cyan: 0 0 12px rgba(0, 229, 255, 0.32),
    0 0 22px rgba(0, 229, 255, 0.16);
  --pf-glow-magenta: 0 0 12px rgba(255, 0, 230, 0.3),
    0 0 22px rgba(255, 0, 230, 0.14);
}

/* Reduced motion safety */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================
   2) Base / Reset
============================= */
* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--pf-text);
  background: radial-gradient(
      1000px 700px at -10% 20%,
      rgba(255, 0, 230, 0.07),
      transparent 50%
    ),
    var(--pf-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
img[loading="lazy"] {
  content-visibility: auto;
}
svg {
  display: block;
}

h1,
h2,
h3 {
  font-family: "Oxanium", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.3px;
  margin: 0 0 0.5rem;
}
h1 {
  font-weight: 800;
  line-height: 1.1;
}
h2 {
  font-weight: 700;
  line-height: 1.15;
}
h3 {
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin: 0;
}

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

.a11y-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.a11y-skip:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: #000;
  color: #fff;
  border-radius: 12px;
  box-shadow: var(--pf-glow-cyan);
  z-index: 9999;
}

:focus-visible {
  outline: none;
  box-shadow: var(--pf-ring);
}

/* Links */
a {
  color: var(--pf-cyan);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Unstyled list helper */
.unstyle {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ============================
   3) Hero
============================= */
.pf-hero {
  position: relative;
  padding: 80px 0 30px;
  background: radial-gradient(
      900px 500px at 25% -10%,
      rgba(168, 255, 0, 0.1),
      transparent 60%
    ),
    radial-gradient(
      800px 400px at 110% 10%,
      rgba(0, 229, 255, 0.08),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(10, 14, 26, 0.5), rgba(10, 14, 26, 0));
}
.pf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 0 2px,
    transparent 2px 6px
  );
}
/* Centered text and unified width */
.pf-hero .container {
  text-align: center;
}
.pf-hero__title-wrap,
.pf-hero__intro {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.pf-hero__title-wrap {
  margin-bottom: 14px;
}

.main-heading {
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  background: var(--pf-grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.24),
    0 0 20px rgba(255, 0, 230, 0.16);
}

.pf-hero__intro {
  color: var(--pf-text-dim);
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
  margin: 0 auto 24px;
}

/* Feature chips */
.pf-feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 20px;
}
.pf-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  position: relative;
  z-index: 0;
  color: var(--pf-text);
}
.pf-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 1px;
  background: var(--pf-grad-1);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.pf-feature img {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.4));
}
.pf-feature span {
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .pf-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .pf-feature-list {
    grid-template-columns: 1fr;
  }
}

/* ============================
   4) Offers Grid with auto behavior
============================= */
.pf-offers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 24px 20px 10px;
}
/* If there are at least 2 cards, switch to 2 columns */
.pf-offers:has(.pf-card:nth-child(2)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* On mobile, always collapse to 1 column (except special single-card case below) */
@media (max-width: 920px) {
  .pf-offers {
    grid-template-columns: 1fr !important;
  }
}

/* Card redesign */
.pf-card {
  --b: 1.2px; /* border size */
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50/50 on desktop */
  gap: 16px;
  background: var(--pf-surface);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--pf-shadow-soft);
  isolation: isolate;
  overflow: visible;
}
.pf-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: var(--b);
  background: linear-gradient(
    120deg,
    rgba(0, 229, 255, 0.45),
    rgba(255, 0, 230, 0.38),
    rgba(168, 255, 0, 0.35)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: blur(0.4px);
}
/* Highlight first card with distinct border */
.pf-offers .pf-card:first-child::before {
  background: linear-gradient(
    120deg,
    var(--pf-gold),
    rgba(0, 229, 255, 0.38),
    rgba(255, 0, 230, 0.3)
  );
  padding: 1.6px;
}
.pf-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  z-index: -2;
  background: radial-gradient(
      800px 300px at 10% -40%,
      rgba(0, 229, 255, 0.13),
      transparent 60%
    ),
    radial-gradient(
      700px 250px at 110% 120%,
      rgba(255, 0, 230, 0.12),
      transparent 65%
    );
  opacity: 0.9;
}

.pf-card--premium {
  background: linear-gradient(
    180deg,
    rgba(18, 26, 48, 0.94),
    rgba(16, 22, 38, 0.92)
  );
}

/* Aside */
.pf-card__aside {
  display: grid;
  align-content: start;
  gap: 14px;
}
/* Single-card: aside spans full row and distributes content evenly on desktop */
/* Single-card (desktop): keep everything in one row; aside does not span full width */
@media (min-width: 921px) {
  .pf-offers:not(:has(.pf-card:nth-child(2))) .pf-card {
    grid-template-columns: 1fr 280px;
    align-items: center;
  }
  .pf-offers:not(:has(.pf-card:nth-child(2))) .pf-card__aside {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
  }
  .pf-offers:not(:has(.pf-card:nth-child(2))) .pf-card__main {
    align-self: center;
    justify-self: center;
    width: 280px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    justify-items: center;
  }
}

.pf-card__badge {
  position: absolute;
  left: 60px;
  top: 0;
  transform: translateY(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--pf-bg);
  color: var(--pf-text);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.pf-card__badge span {
  position: relative;
  z-index: 1;
}
/* Show badge only on first card when multiple cards exist */
.pf-offers:has(.pf-card:nth-child(2))
  .pf-card:not(:first-child)
  .pf-card__badge {
  display: none;
}

/* New standalone order chip */
.pf-card__order {
  position: absolute;
  top: 0;
  left: 20px;
  z-index: 2;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Oxanium", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--pf-bg-2);
  background: var(--pf-grad-1);
  border-radius: 50%;
  box-shadow: var(--pf-glow-cyan);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pf-card__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 14px;
  min-height: 72px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pf-card__logo-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--pf-glow-cyan);
}
.pf-card__logo {
  width: clamp(140px, 18vw, 220px);
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

/* Ratings / Votes */
.pf-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(auto, 1fr));
  gap: 12px;
  width: 100%;
}
.pf-card__rating,
.pf-card__votes,
.pf-card__withdraw,
.pf-card__rtp {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 10px 12px;
}
.pf-card__rating h3 span {
  font-size: 1.15rem;
  color: var(--pf-gold);
  text-shadow: 0 0 8px rgba(255, 210, 77, 0.32);
}
.pf-card__rating p {
  color: var(--pf-text-muted);
  margin-top: 6px;
}

.stars {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
}
.star {
  width: 12px;
  height: 12px;
  background: var(--pf-grad-coin);
  border-radius: 2px;
  box-shadow: 0 0 9px rgba(255, 210, 77, 0.35),
    0 0 16px rgba(255, 210, 77, 0.18);
  transform: rotate(45deg);
}

/* Withdraw / RTP */
.pf-card__withdraw h3,
.pf-card__rtp h3 {
  margin-top: 4px;
  font-size: 1.05rem;
}
.pf-card__withdraw p,
.pf-card__rtp p {
  color: var(--pf-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ico {
  width: 16px;
  height: 16px;
  display: inline-block;
}
.ico-win {
  background: radial-gradient(
    circle at 30% 30%,
    #fff,
    #ffd24d 40%,
    #ffae00 75%
  );
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 210, 77, 0.3);
}

/* Main area */
.pf-card__main {
  display: grid;
  align-content: center;
  text-align: center;
  gap: 10px;
}
.pf-card__subtitle {
  color: var(--pf-text-dim);
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  margin-bottom: 0;
}

.pf-card__offer {
  display: inline-block;
  font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: var(--pf-text);
  padding: 6px 10px;
  text-decoration: none;
  background: linear-gradient(
    90deg,
    rgba(255, 210, 77, 0.15),
    rgba(255, 210, 77, 0) 60%
  );
  border-radius: 12px;
}

.pf-card__cta {
  --btn-pulse: drop-shadow(0 0 10px rgba(0, 229, 255, 0.45));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #0a0f18;
  background: var(--pf-grad-1);
  border: none;
  box-shadow: 0 6px 16px rgba(0, 229, 255, 0.14);
  transition: transform 0.16s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.pf-card__cta:hover {
  transform: translateY(-2px) scale(1.005);
  filter: var(--btn-pulse);
  box-shadow: var(--pf-glow-cyan);
  text-decoration: none;
}
.pf-card__cta:active {
  transform: translateY(0);
}

/* Responsive for card */
@media (max-width: 920px) {
  /* For multi cards: aside on top full width and main centered below */
  .pf-offers:has(.pf-card:nth-child(2)) .pf-card {
    grid-template-columns: 1fr;
  }
  .pf-offers:has(.pf-card:nth-child(2)) .pf-card__aside {
    order: 1;
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .pf-offers:has(.pf-card:nth-child(2)) .pf-card__main {
    order: 2;
    text-align: center;
    justify-items: center;
  }

  /* Single-card: keep two columns so main stays beside logo, not below */
  .pf-offers:not(:has(.pf-card:nth-child(2))) .pf-card {
    grid-template-columns: 1fr;
    padding: 24px 10px 10px 10px;
  }
  .pf-offers:not(:has(.pf-card:nth-child(2))) .pf-card__aside {
    order: 1;
    grid-column: auto;
    display: grid;
    align-content: start;
    gap: 8px;
  }
  .pf-offers:not(:has(.pf-card:nth-child(2))) .pf-card__main {
    order: 2;
    justify-self: center;
    width: 300px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    justify-items: center;
    gap: 8px;
  }
}

/* ============================
   5) Info Sections
============================= */
.pf-info {
  padding: 18px 20px 60px;
}
.pf-section-heading {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin: 18px 0 12px;
}
.pf-section-text {
  color: var(--pf-text-dim);
  max-width: 900px;
}

.pf-info-list li {
  margin: 10px 0;
  color: var(--pf-text);
}
.pf-info-list strong {
  color: var(--pf-lime);
  text-shadow: 0 0 10px rgba(168, 255, 0, 0.18);
}

.section-link {
  color: var(--pf-gold);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 210, 77, 0.45);
  text-underline-offset: 2px;
}

.pf-sep {
  height: 1px;
  margin: 28px 0;
  background: linear-gradient(
    90deg,
    rgba(0, 229, 255, 0.18),
    rgba(255, 0, 230, 0.18)
  );
}

/* ============================
   6) Footer
============================= */
.pf-footer {
  background: linear-gradient(
    180deg,
    rgba(10, 14, 26, 0.2),
    rgba(10, 14, 26, 0.65)
  );
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 0;
}
.pf-footer__content {
  display: grid;
  gap: 16px;
}
.pf-footer__partners {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}
.pf-partner-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.pf-partner-logo:hover {
  transform: translateY(-2px);
  box-shadow: var(--pf-glow-magenta);
}
.pf-partner-logo img {
  max-height: 36px;
  width: auto;
}

.pf-footer__disclaimer {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px;
}
.pf-disclaimer-text {
  color: var(--pf-text-muted);
}

.pf-footer__nav {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 14px;
}
.pf-nav-link {
  color: var(--pf-text);
  opacity: 0.9;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.pf-nav-link:hover {
  opacity: 1;
  text-decoration: none;
  box-shadow: var(--pf-glow-cyan);
}

@media (max-width: 780px) {
  .pf-footer__partners {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pf-footer__nav {
    grid-auto-flow: row;
  }
}

/* ============================
   7) Micro-interactions / Animations
============================= */
@keyframes pf-glow-loop {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.28),
      0 0 18px rgba(255, 0, 230, 0.18);
  }
  50% {
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.45),
      0 0 26px rgba(255, 0, 230, 0.26);
  }
}

/* Hover lift for panels */
.pf-card:hover {
  transform: translateY(-2px);
  transition: transform 0.18s ease;
}

/* Stars shimmer */
@keyframes pf-shimmer {
  0% {
    opacity: 0.75;
    filter: drop-shadow(0 0 3px rgba(255, 210, 77, 0.22));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 7px rgba(255, 210, 77, 0.45));
  }
  100% {
    opacity: 0.75;
    filter: drop-shadow(0 0 3px rgba(255, 210, 77, 0.22));
  }
}
.stars .star:nth-child(odd) {
  animation: pf-shimmer 2.6s ease-in-out infinite;
}
.stars .star:nth-child(even) {
  animation: pf-shimmer 3.1s ease-in-out infinite;
}

/* ============================
   8) Utility classes
============================= */
.pf-hidden {
  display: none !important;
}
.pf-visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Small viewport tweaks */
@media (max-width: 580px) {
  .pf-hero {
    padding: 20px 0;
  }
  .pf-card {
    padding: 24px 10px 10px 10px;
  }
  .pf-feature-list {
    display: none;
  }
  .pf-hero__intro {
    margin: 0 auto;
    font-size: 0.9rem;
  }
  .main-heading {
    font-size: 24px;
  }
}
