/* ===== ZonHitFlux — Social Casino Stylesheet ===== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0a1628;
  --primary-light: #122844;
  --secondary: #1a3050;
  --accent: #d4af37;
  --accent-bright: #f0c850;
  --accent-dark: #a8861f;
  --success: #2ecc71;
  --warning: #f39c12;
  --error: #e74c3c;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e8e8e8;
  --neutral-300: #d0d0d0;
  --neutral-400: #a0a0a0;
  --neutral-500: #707070;
  --neutral-600: #505050;
  --neutral-700: #383838;
  --neutral-800: #1e1e1e;
  --neutral-900: #0e0e0e;
  --text-light: #e8e8e8;
  --text-muted: #a0b0c0;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-gold: 0 4px 30px rgba(212,175,55,0.25);
  --transition: 0.3s ease;
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--primary);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-bright); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.flex-grow { flex: 1 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.logo-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { height: 44px; width: auto; }
.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  color: var(--text-light);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.main-nav a:hover { background: rgba(212, 175, 55, 0.12); color: var(--accent); }
.main-nav a.active { color: var(--accent); background: rgba(212, 175, 55, 0.1); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--primary);
    border-bottom: 1px solid rgba(212,175,55,0.15);
    padding: 16px 20px;
    gap: 2px;
    transform: translateY(-120%);
    transition: transform var(--transition);
    z-index: 999;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { width: 100%; padding: 12px 14px; }
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 0 60px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--accent);
}
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  color: var(--primary);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 35px rgba(212,175,55,0.4);
  color: var(--primary);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-secondary:hover {
  background: rgba(212,175,55,0.1);
  color: var(--accent-bright);
}
.btn-large { padding: 16px 48px; font-size: 1.1rem; }
.btn-small { padding: 8px 20px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--primary-light);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,0.4);
  box-shadow: var(--shadow-gold);
}
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 800;
}
.feature-card h3 { color: var(--accent); margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Section headers */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { color: var(--accent); margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Game Preview on Home */
.game-preview {
  background: var(--primary-light);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.game-preview h3 { color: var(--accent); margin-bottom: 12px; }
.game-preview p { color: var(--text-muted); margin-bottom: 24px; }
.game-preview .game-cta-img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

/* FAQ */
.faq-item {
  background: var(--primary-light);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
  font-family: var(--font);
}
.faq-question:hover { color: var(--accent); }
.faq-question .faq-icon { font-size: 1.3rem; color: var(--accent); transition: transform var(--transition); }
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--text-muted);
  padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 18px; }

/* Content Pages */
.page-hero {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
  text-align: center;
  padding: 50px 0 40px;
  border-bottom: 1px solid rgba(212,175,55,0.1);
}
.page-hero h1 { color: var(--accent); margin-bottom: 10px; }
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.content-section { padding: 50px 0; }
.content-section h2 {
  color: var(--accent);
  margin-bottom: 16px;
  margin-top: 36px;
  font-size: 1.5rem;
}
.content-section h2:first-child { margin-top: 0; }
.content-section p {
  margin-bottom: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}
.content-section ul, .content-section ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.content-section li { margin-bottom: 8px; color: var(--text-muted); line-height: 1.7; }
.content-section strong { color: var(--text-light); }

.content-card {
  background: var(--primary-light);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius);
  padding: 36px;
}
@media (max-width: 600px) {
  .content-card { padding: 24px 20px; }
}

/* Contact Form */
.contact-form { max-width: 560px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.9rem;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--text-light);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color var(--transition);
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}
.form-status.success { display: block; background: rgba(46,204,113,0.15); color: var(--success); border: 1px solid rgba(46,204,113,0.3); }

/* Footer */
.site-footer {
  background: var(--neutral-900);
  border-top: 1px solid rgba(212,175,55,0.1);
  padding: 40px 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
.footer-brand h3 { color: var(--accent); margin-bottom: 12px; font-size: 1.2rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 300px; }
.footer-links h4 { color: var(--text-light); margin-bottom: 12px; font-size: 0.95rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  text-align: center;
  color: var(--neutral-500);
  font-size: 0.85rem;
}
.footer-disclaimer {
  background: rgba(212,175,55,0.05);
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--neutral-900);
  border-top: 2px solid var(--accent);
  padding: 20px;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-text { font-size: 0.85rem; color: var(--text-muted); flex: 1; min-width: 250px; }
.cookie-text a { text-decoration: underline; }
.cookie-buttons { display: flex; gap: 12px; flex-shrink: 0; }
@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; text-align: center; }
}

/* Game Page */
.game-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 16px;
}
.game-header {
  text-align: center;
  margin-bottom: 24px;
}
.game-header h2 { color: var(--accent); margin-bottom: 6px; }
.game-header p { color: var(--text-muted); font-size: 0.9rem; }

.slot-machine {
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-gold);
}
.slot-display {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--neutral-900);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  min-height: 300px;
}
.reel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  padding: 8px;
}
.reel-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  transition: transform 0.1s linear;
}
.reel-symbol img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.reel-symbol.spinning {
  filter: blur(2px);
}
.reel-symbol.win {
  animation: winPulse 0.6s ease infinite alternate;
}
@keyframes winPulse {
  0% { background: rgba(212,175,55,0.15); box-shadow: 0 0 10px rgba(212,175,55,0.3); }
  100% { background: rgba(212,175,55,0.35); box-shadow: 0 0 25px rgba(212,175,55,0.6); }
}

.game-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.control-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
.bet-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bet-control label { font-size: 0.85rem; color: var(--text-muted); }
.bet-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bet-btn:hover { background: rgba(212,175,55,0.15); }
.bet-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 50px;
  text-align: center;
}
.spin-btn {
  width: 100%;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.spin-btn:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 6px 30px rgba(212,175,55,0.5);
}
.spin-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.spin-btn.spinning {
  animation: spinGlow 1s ease infinite alternate;
}
@keyframes spinGlow {
  0% { box-shadow: 0 0 15px rgba(212,175,55,0.3); }
  100% { box-shadow: 0 0 35px rgba(212,175,55,0.6); }
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.stat-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.stat-value { font-size: 1.2rem; font-weight: 700; color: var(--accent); }

.game-message {
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-weight: 600;
  font-size: 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.game-message.win {
  background: rgba(46,204,113,0.15);
  color: var(--success);
  border: 1px solid rgba(46,204,113,0.3);
  animation: winFade 0.5s ease;
}
.game-message.jackpot {
  background: rgba(212,175,55,0.2);
  color: var(--accent-bright);
  border: 1px solid var(--accent);
  font-size: 1.3rem;
  animation: jackpotFlash 0.5s ease 3;
}
.game-message.info {
  color: var(--text-muted);
}
.game-message.lose {
  color: var(--text-muted);
}
@keyframes winFade {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes jackpotFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.paytable {
  margin-top: 30px;
  background: var(--primary-light);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius);
  padding: 24px;
}
.paytable h3 { color: var(--accent); margin-bottom: 16px; text-align: center; }
.paytable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.paytable-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.paytable-item img { width: 36px; height: 36px; }
.paytable-item .pay-info { font-size: 0.8rem; }
.paytable-item .pay-name { color: var(--text-light); font-weight: 600; }
.paytable-item .pay-mult { color: var(--accent); }

/* Responsive Game */
@media (max-width: 500px) {
  .reel-symbol { height: 70px; }
  .reel-symbol img { width: 52px; height: 52px; }
  .slot-display { min-height: 250px; padding: 10px; }
  .stat-value { font-size: 1rem; }
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 50px 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}
.cta-section h2 { color: var(--accent); margin-bottom: 16px; }
.cta-section p { color: var(--text-muted); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 20px; }
