/* =========================================
   LUCKY SPIN PALACE — COMMON STYLESHEET
   Used by all pages: index, about, contact,
   newsletter, unsubscribe, terms, privacy
   ========================================= */

:root {
  --bg-dark: #080510;
  --bg-card: #1a102b;
  --accent: #ff4fd8;       /* Neon Pink */
  --accent-2: #9b5cff;     /* Electric Violet */
  --accent-3: #d98cff;     /* Soft Violet Glow */
  --text-muted: #c9b6e4;
  --neon-glow:
    0 0 10px rgba(255, 79, 216, 0.7),
    0 0 20px rgba(155, 92, 255, 0.5);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

body {
  background: radial-gradient(circle at center, #1a102e 0, #05040a 70%);
  color: #fff;
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
}

/* --- Funky Background Animation --- */
#casino-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.text-glow-pink {
  text-shadow: 0 0 10px var(--accent);
  color: var(--accent);
}

.text-gold {
  color: var(--accent-3);
  text-shadow: 0 0 5px var(--accent-3);
}

.text-cyan {
  color: var(--accent-2);
  text-shadow: 0 0 5px var(--accent-2);
}

/* --- Navbar --- */
.navbar {
  background: rgba(5, 4, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--accent);
  box-shadow: var(--neon-glow);
}

.navbar-brand span {
  background: linear-gradient(90deg, var(--accent-3), var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  animation: hue-rotate 5s infinite linear;
}

.nav-link {
  color: #fff !important;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-2);
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent) !important;
}

/* --- Buttons --- */
.btn-neon-primary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-neon-primary:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent);
  transform: translateY(-2px);
}

.btn-neon-secondary {
  background: transparent;
  border: 2px solid var(--accent-3);
  color: var(--accent-3);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 0 5px var(--accent-3);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-neon-secondary:hover {
  background: var(--accent-3);
  color: #000;
  box-shadow: 0 0 20px var(--accent-3);
}

.btn-neon-cyan {
  border: 2px solid var(--accent-2);
  color: var(--accent-2);
  background: transparent;
  font-family: var(--font-display);
  text-transform: uppercase;
  box-shadow: 0 0 5px var(--accent-2);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-neon-cyan:hover {
  background: var(--accent-2);
  color: #000;
  box-shadow: 0 0 20px var(--accent-2);
}

/* --- Hero --- */
.hero {
  padding: 8rem 0 5rem;
  position: relative;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-bg-text {
  position: absolute;
  font-size: 15vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-family: var(--font-display);
}

/* --- Cards --- */
.game-card {
  background: rgba(18, 14, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 255, 0.3);
  border-color: var(--accent-2);
}

.game-card:hover::before {
  transform: scaleX(1);
}

.game-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--accent-3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  border: 1px solid var(--accent-3);
  z-index: 2;
}

/* --- Section Styling --- */
.section-header {
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
}

/* --- FAQ / Legal Accordion --- */
.accordion-item {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  border-radius: 10px !important;
  overflow: hidden;
}

.accordion-button {
  background: rgba(18, 14, 36, 0.6);
  color: #fff;
  font-family: var(--font-display);
}

.accordion-button:not(.collapsed) {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 15px var(--accent);
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-body {
  color: #fff;
}

/* --- Forms --- */
.form-control {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--accent-2);
  color: #fff;
  border-radius: 8px;
}

.form-control:focus {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-color: var(--accent-3);
  box-shadow: 0 0 10px var(--accent-3);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-label {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Modals --- */
.modal-content {
  background: #120e24;
  border: 2px solid var(--accent-3);
  color: #fff;
  box-shadow: 0 0 30px rgba(217, 140, 255, 0.3);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-success-icon {
  font-size: 4rem;
  color: var(--accent-3);
  text-shadow: 0 0 20px var(--accent-3);
}

/* --- Footer --- */
footer {
  border-top: 2px solid var(--accent);
  background: #000;
  position: relative;
  z-index: 2;
}

.hover-white:hover {
  color: #fff !important;
}

/* --- Animations --- */
@keyframes hue-rotate {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.floating {
  animation: float 4s ease-in-out infinite;
}

/* --- Page header (interior pages) --- */
.page-hero {
  padding: 9rem 0 4rem;
  position: relative;
  text-align: center;
}

.page-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 900;
}

.page-hero-subtitle {
  color: rgba(255, 255, 255, 0.6);
  max-width: 700px;
  margin: 0 auto;
}

/* --- Cursor pointer helper --- */
.cursor-pointer {
  cursor: pointer;
}

/* --- Word count helper --- */
#wordCount {
  font-size: 0.8rem;
  font-weight: 600;
}

/* --- Responsive tweaks --- */
@media (max-width: 576px) {
  .hero { padding: 7rem 0 3rem; }
  .page-hero { padding: 8rem 0 3rem; }
}
