/* DIGICLAW HTML5 GENERATOR - COMPLETE CSS REPLACEMENT */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', monospace;
  background: #000;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* DIGICLAW Background Image */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://i.postimg.cc/PxwY4ZnK/Lucid-Realism-prompt-A-hyperrealistic-futuristic-claw-machine-0-1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  filter: brightness(0.8);
}

/* Dark overlay for better contrast */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: -1;
}

/* Main container */
.container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

/* Title styling */
h1 {
  font-size: 3em;
  color: #00ffff;
  text-shadow: 0 0 30px #00ffff, 0 0 60px #00ffff;
  margin-bottom: 30px;
  text-align: center;
  animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from { text-shadow: 0 0 30px #00ffff, 0 0 60px #00ffff; }
  to { text-shadow: 0 0 40px #00ffff, 0 0 80px #00ff88; }
}

/* Info text */
.info {
  color: #00ffff;
  font-size: 0.9em;
  margin-bottom: 40px;
  text-align: center;
  opacity: 0.8;
}

/* Arcade-style buttons */
button {
  position: relative;
  background: linear-gradient(135deg, #00ffff 0%, #0088ff 100%);
  border: 3px solid #00ffff;
  color: #000;
  text-transform: uppercase;
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 1.2em;
  padding: 20px 40px;
  margin: 10px;
  border-radius: 15px;
  box-shadow: 
    0 0 40px rgba(0,255,255,0.6),
    inset 0 0 20px rgba(0,255,255,0.3),
    0 10px 20px rgba(0,0,0,0.5);
  transition: all 0.3s;
  cursor: pointer;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  transform: rotate(45deg);
  transition: all 0.6s;
  opacity: 0;
}

button:hover::before {
  animation: buttonShine 0.6s ease-out;
}

@keyframes buttonShine {
  0% { transform: rotate(45deg) translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: rotate(45deg) translateY(100%); opacity: 0; }
}

button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 0 60px rgba(0,255,255,0.8),
    inset 0 0 30px rgba(0,255,255,0.5),
    0 15px 30px rgba(0,0,0,0.6);
  border-color: #00ff88;
  background: linear-gradient(135deg, #00ff88 0%, #00ffff 100%);
}

button:active {
  transform: translateY(0) scale(0.98);
}

/* Generate button special styling */
#generateBtn {
  position: relative;
  font-size: 1.4em;
  padding: 25px 50px;
}

#generateBtn::after {
  content: '€2 PER PLAY';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8em;
  color: #00ff88;
  text-shadow: 0 0 15px #00ff88;
  animation: pricePulse 2s infinite;
}

@keyframes pricePulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* Show saved button */
#showSavedBtn {
  background: linear-gradient(135deg, #ff00ff 0%, #8800ff 100%);
  border-color: #ff00ff;
}

#showSavedBtn:hover {
  background: linear-gradient(135deg, #ff88ff 0%, #ff00ff 100%);
  box-shadow: 
    0 0 60px rgba(255,0,255,0.8),
    inset 0 0 30px rgba(255,0,255,0.5),
    0 15px 30px rgba(0,0,0,0.6);
}

/* Animated claw area overlay */
.claw-animation {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 400px;
  pointer-events: none;
  z-index: 5;
}

.claw-animation::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(0,255,255,0.3) 0%, transparent 50%);
  animation: clawMove 6s ease-in-out infinite;
}

@keyframes clawMove {
  0%, 100% { transform: translateY(0) scale(1); }
  25% { transform: translateY(20px) scale(1.05); }
  50% { transform: translateY(40px) scale(1); }
  75% { transform: translateY(20px) scale(0.95); }
}

/* DIGICLAW neon sign glow */
.neon-sign {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  height: 80px;
  pointer-events: none;
  z-index: 5;
}

.neon-sign::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0,255,255,0.4) 0%, transparent 70%);
  animation: neonFlicker 3s infinite;
}

@keyframes neonFlicker {
  0%, 100% { opacity: 1; filter: blur(1px); }
  10% { opacity: 0.8; filter: blur(2px); }
  20% { opacity: 1; filter: blur(1px); }
  30% { opacity: 0.9; filter: blur(1.5px); }
  80% { opacity: 1; filter: blur(1px); }
  90% { opacity: 0.7; filter: blur(2px); }
}

/* Prize area floating effect */
.prize-glow {
  position: fixed;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 250px;
  pointer-events: none;
  z-index: 5;
}

.prize-glow::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,0,255,0.2) 0%, transparent 60%);
  animation: prizeFloat 8s ease-in-out infinite;
}

@keyframes prizeFloat {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.6; }
  25% { transform: rotate(5deg) scale(1.1); opacity: 0.8; }
  50% { transform: rotate(-3deg) scale(1.05); opacity: 0.7; }
  75% { transform: rotate(2deg) scale(0.95); opacity: 0.9; }
}

/* Floor reflection */
.floor-reflection {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0,255,255,0.1) 0%, transparent 40%);
  pointer-events: none;
  z-index: 4;
  opacity: 0.5;
}

/* Payment modal (hidden by default) */
.payment-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.95);
  border: 3px solid #00ffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 0 60px rgba(0,255,255,0.8);
  z-index: 1000;
  text-align: center;
}

.payment-modal.active {
  display: block;
  animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* CPT branding */
.cpt-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,0.8);
  border: 2px solid #00ffff;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.9em;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
  z-index: 100;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2em; }
  button { 
    font-size: 1em; 
    padding: 15px 30px;
  }
  #generateBtn::after { top: -25px; font-size: 0.7em; }
}

/* Loading state */
.loading::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 4px solid transparent;
  border-top-color: #00ffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success flash */
.success-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0,255,255,0.8) 0%, transparent 70%);
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  animation: successFlash 0.6s ease-out;
}

@keyframes successFlash {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}