:root {
  --neon-red: #ff3333;
  --neon-cyan: #00ffff;
  --neon-yellow: #ffff00;
  --neon-blue: #00e5ff;
}

body {
  font-family: 'Orbitron', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: #000 url('/wp-content/themes/promptifi-core/assets/assets/promptninja-background.png') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  color: white;
  overflow-x: hidden;
  position: relative;
}

/* Header */
header.widgetwheel-header {
  width: 100%;
  padding: 2rem 1rem;
  background-color: rgba(17, 17, 17, 0.85);
  border: 4px double var(--neon-yellow);
  text-align: center;
  box-shadow: 0 0 20px var(--neon-yellow);
  position: relative;
  z-index: 2;
  overflow: hidden;
  animation: strobeHeader 2s infinite;
}

.widgetwheel-title {
  font-size: 3.2rem;
  color: var(--neon-yellow);
  text-shadow: 0 0 10px var(--neon-yellow);
  margin: 0;
}

.prompt-ninja-text {
  font-size: 1.6rem;
  color: var(--neon-red);
  text-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red);
  position: absolute;
  left: -100%;
  top: 75%;
  transform: translateY(-50%);
  white-space: nowrap;
  animation: swipeIn 2s forwards 1.5s;
}

/* Widget Area */
.ninja-widget-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  z-index: 2;
  position: relative;
  padding: 0 1rem;
}

.ninja-widget {
  background: rgba(0, 0, 0, 0.85);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
  font-family: 'Press Start 2P', monospace;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.tracker {
  background: rgba(0, 0, 0, 0.85);
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid var(--neon-yellow);
  box-shadow: 0 0 12px var(--neon-yellow);
  font-family: 'Press Start 2P', monospace;
  color: var(--neon-yellow);
  width: auto;
  text-align: center;
}

/* Fix for inline 0/4000 */
.ninja-line {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}
.ninja-line .label,
.ninja-line .value {
  display: inline-block;
  white-space: nowrap;
}

.ninja-widget input {
  width: 220px;
  padding: 0.4rem;
  background: #111;
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
  margin-bottom: 1rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  text-align: center;
}

.ninja-widget button {
  background: var(--neon-red);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 10px var(--neon-red);
  font-family: 'Press Start 2P', monospace;
}

.ninja-widget button:hover {
  background: var(--neon-yellow);
  color: black;
  box-shadow: 0 0 20px var(--neon-yellow);
}

#ninjaResult img {
  margin-top: 1rem;
  width: 240px;
  height: 240px;
  image-rendering: pixelated;
  border: 3px solid var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-cyan);
}

/* Description Section */
.prompt-ninja-intro {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  border: 3px solid var(--neon-yellow);
  box-shadow: 0 0 15px var(--neon-yellow);
  animation: slideInLeft 1.5s ease-out forwards;
  opacity: 0;
  transform: translateX(-100px);
}

.prompt-ninja-intro h1 {
  color: var(--neon-red);
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  text-align: center;
  text-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red);
  margin-bottom: 1.5rem;
}

.prompt-ninja-intro p,
.prompt-ninja-intro li {
  color: var(--neon-yellow);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  text-shadow: 0 0 5px var(--neon-yellow);
}

.prompt-ninja-intro ul {
  padding-left: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Home Button Wrapper */
.home-button-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 3rem 0 4rem 0;
}

/* Home Button */
.home-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  padding: 1rem 2rem;
  font-weight: bold;
  border-radius: 10px;
  border: 3px solid var(--neon-yellow);
  background: var(--neon-blue);
  color: #0e1a2b;
  box-shadow: 0 0 20px var(--neon-yellow);
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}
.home-button:hover {
  background: var(--neon-yellow);
  color: #000;
  box-shadow: 0 0 35px var(--neon-blue);
}
.home-button span.emoji {
  font-size: 2rem;
  line-height: 1;
}

/* Animations */
@keyframes strobeHeader {
  0%, 17%, 19%, 21%, 23%, 25%, 100% { opacity: 1; }
  18%, 20%, 22%, 24% { opacity: 0.2; }
}

@keyframes swipeIn {
  0% { left: -100%; }
  100% { left: 50%; transform: translateX(-50%) translateY(-50%); }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Fixes */
@media (max-width: 768px) {
  header.widgetwheel-header {
    padding: 1rem;
  }

  .widgetwheel-title {
    font-size: 1.8rem;
  }

  .prompt-ninja-text {
    font-size: 1rem;
    top: 70%;
    text-shadow: none;
  }

  .prompt-ninja-intro {
    padding: 1rem;
  }

  .prompt-ninja-intro h1 {
    font-size: 1.2rem;
    text-shadow: 0 0 5px var(--neon-red);
  }

  .prompt-ninja-intro p,
  .prompt-ninja-intro li {
    font-size: 0.75rem;
    text-shadow: none;
  }
}
