/* ==========================================================================
   Theme: Noir — Black & white classic casino with gold accents. Sophisticated.
   Palette: Gold / Monochrome | Vibe: Cinematic, film noir detective aesthetic
   Inspired by: Cinema Noir (cinematic, film noir detective aesthetic)
   Applied to: casinoonlinestranierinonaams.it.com
   ========================================================================== */

:root {
  /* Primary palette */
  --color-primary:           #dc9e2a;
  --color-primary-light:     #e8b84b;
  --color-primary-dark:      #b07e1f;
  --color-secondary:         #a0a0a0;
  --color-secondary-light:   #c8c8c8;
  --color-accent:            #dc9e2a;
  --color-accent-dim:        rgba(220, 158, 42, 0.12);

  /* Backgrounds */
  --color-bg:                #0a0a0a;
  --color-bg-alt:            #0f0f0f;
  --color-surface:           #181818;
  --color-surface-hover:     #1e1e1e;
  --color-surface-border:    #333333;
  --color-surface-border-neon: #444444;

  /* Text */
  --color-text:              #d4d4d4;
  --color-text-secondary:    #a3a3a3;
  --color-text-muted:        #737373;
  --color-heading:           #f5f5f5;

  /* CTA */
  --color-cta:               #dc9e2a;
  --color-cta-hover:         #b07e1f;
  --color-cta-text:          #0a0a0a;
  --gradient-cta:            linear-gradient(135deg, #e8b84b 0%, #dc9e2a 100%);

  /* Gradients & effects */
  --gradient-hero:           linear-gradient(160deg, #0a0a0a 0%, #141414 50%, #1a1a1a 100%);
  --gradient-card:           linear-gradient(180deg, rgba(220, 158, 42, 0.06) 0%, rgba(0,0,0,0) 100%);
  --shadow-card:             0 2px 12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(220, 158, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-card-hover:       0 8px 32px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(220, 158, 42, 0.4), 0 0 20px rgba(220, 158, 42, 0.08);
  --shadow-glow:             0 0 20px rgba(220, 158, 42, 0.3);
  --shadow-glow-neon:        0 0 16px rgba(220, 158, 42, 0.4);
  --shadow-cta:              0 4px 24px rgba(220, 158, 42, 0.4), 0 0 40px rgba(220, 158, 42, 0.15);
  --border-electric:         1px solid rgba(220, 158, 42, 0.15);
  --border-neon:             1px solid rgba(220, 158, 42, 0.4);

  /* Border radius — sharp cinematic frames */
  --border-radius-sm:        0px;
  --border-radius-md:        0px;
  --border-radius-lg:        0px;
  --border-radius-xl:        0px;
  --border-radius-full:      9999px;

  /* Typography */
  --font-heading:            'Crimson Pro', Georgia, serif;
  --font-body:               'Crimson Pro', Georgia, serif;
  --font-mono:               'JetBrains Mono', 'Fira Code', monospace;
  --font-size-xs:            0.75rem;
  --font-size-sm:            0.875rem;
  --font-size-base:          1rem;
  --font-size-lg:            1.125rem;
  --font-size-xl:            1.25rem;
  --font-size-2xl:           1.5rem;
  --font-size-3xl:           1.875rem;
  --font-size-4xl:           2.25rem;
  --font-weight-normal:      400;
  --font-weight-medium:      500;
  --font-weight-semibold:    600;
  --font-weight-bold:        700;
  --font-weight-extrabold:   800;

  /* Spacing */
  --space-xs:                0.25rem;
  --space-sm:                0.5rem;
  --space-md:                1rem;
  --space-lg:                1.5rem;
  --space-xl:                2rem;
  --space-2xl:               3rem;
  --space-3xl:               4rem;

  /* Transitions */
  --transition-fast:         150ms ease;
  --transition-base:         250ms ease;
  --transition-slow:         400ms ease;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes noir-flicker {
  0%, 95%, 100% { opacity: 1; }
  96%           { opacity: 0.6; }
  97%           { opacity: 1; }
  98%           { opacity: 0.4; }
  99%           { opacity: 0.9; }
}

@keyframes noir-grain-drift {
  0%   { background-position: 0% 0%; }
  25%  { background-position: 50% 25%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 50% 75%; }
  100% { background-position: 0% 100%; }
}

/* --------------------------------------------------------------------------
   Utility classes
   -------------------------------------------------------------------------- */

.noir-vignette {
  position: relative;
}
.noir-vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.85), inset 0 0 40px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  border-radius: inherit;
}

.noir-film {
  position: relative;
}
.noir-film::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  animation: noir-grain-drift 8s steps(4) infinite;
  pointer-events: none;
  border-radius: inherit;
}

/* --------------------------------------------------------------------------
   Casino components
   -------------------------------------------------------------------------- */

.casino-card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}
.casino-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 158, 42, 0.5), transparent);
}
.casino-card:hover {
  border-color: rgba(220, 158, 42, 0.3);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--gradient-cta);
  color: var(--color-cta-text);
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  border: 1px solid rgba(220, 158, 42, 0.6);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-cta);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(220, 158, 42, 0.55), 0 0 60px rgba(220, 158, 42, 0.2);
  filter: brightness(1.1);
}
.cta-button:active {
  transform: translateY(0);
}

.bonus-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-accent-dim);
  color: var(--color-accent);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  border: 1px solid rgba(220, 158, 42, 0.3);
  border-radius: var(--border-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  box-shadow: 0 0 6px rgba(220, 158, 42, 0.15);
}

.rating-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-accent);
  font-size: var(--font-size-lg);
  filter: drop-shadow(0 0 4px rgba(220, 158, 42, 0.5));
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  :root {
    --font-size-3xl: 1.5rem;
    --font-size-4xl: 1.875rem;
    --space-2xl:     2rem;
    --space-3xl:     2.5rem;
  }
  .cta-button {
    width: 100%;
    justify-content: center;
  }
  .noir-film::before {
    animation-duration: 12s;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-2xl: 1.25rem;
    --font-size-3xl: 1.375rem;
    --space-xl:      1.5rem;
  }
}
