/* ---- Definisikan Animasi Gradien yang Lambat & Mewah ---- */
@keyframes subtle-gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #ffffff;
  margin: 0;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  background-image: url('https://clickdrive.tech/storage/cgg/General HO/BG-Moon-Desktop.jpg');
  background-color: #000000;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* --- GAYA BARU: Border Gradien Ungu Tua Mewah --- */
.container {
  width: 100%;
  max-width: 1400px;
  padding: 24px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: 
    linear-gradient(rgba(15, 12, 22, 0.75), rgba(15, 12, 22, 0.75)) padding-box,
    linear-gradient(135deg, #240046, #3c096c, #5a189a, #3c096c, #240046) border-box;
  background-size: 300% 300%;
  animation: subtle-gradient-animation 15s ease-in-out infinite;
}

h1 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 2.5em;
  background: linear-gradient(135deg, #9d4edd, #5a189a, #c77dff);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: subtle-gradient-animation 10s ease-in-out infinite;
}

.form-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* --- GAYA BARU: Border Gradien Ungu Tua Mewah --- */
.input-group {
  padding: 20px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  border: 1px solid transparent;
  background: 
    linear-gradient(rgba(24, 20, 38, 0.7), rgba(24, 20, 38, 0.7)) padding-box,
    linear-gradient(135deg, #240046, #3c096c, #5a189a, #3c096c, #240046) border-box;
  background-size: 300% 300%;
  animation: subtle-gradient-animation 15s ease-in-out infinite;
}


.input-group label {
  font-weight: bold;
  margin-bottom: 12px;
  font-size: 1.1em;
  color: #b388eb;
}

.input-group label span {
  display: block;
  font-size: 0.85em;
  font-weight: normal;
  color: #B0B0B0;
  margin-top: 5px;
  line-height: 1.4;
}

.input-group input[type="text"],
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #252525;
  color: #ffffff;
  box-sizing: border-box;
  font-size: 1em;
}

.input-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* --- GAYA BARU: Tombol Glossy & Glow --- */
.generate-button, button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  background: linear-gradient(to bottom, #bb61ff 0%, #6600bf 30%, #460096 100%);
  background-size: 100% 250%;
  animation: subtle-gradient-animation 10s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(187, 97, 255, 0.3);
}

.generate-button::before, button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  border-radius: 8px 8px 0 0;
}

.generate-button:hover, button:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(187, 97, 255, 0.6), 0 0 5px rgba(255, 255, 255, 0.2);
}

button {
  padding: 12px;
  font-size: 1em;
  font-weight: normal;
}

.output-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.output-column {
  display: flex;
  flex-direction: column;
}

.output-column h3 {
  color: #b388eb;
  margin-top: 0;
}

.output-column textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #252525;
  color: #ffffff;
  resize: vertical;
  font-size: 1em;
  height: 200px;
}

.output-column textarea[readonly] {
  background-color: #1e1e1e;
  color: #d0d0d0;
}

@media (max-width: 768px) {
  body {
    background-image: url('https://clickdrive.tech/storage/cgg/General HO/BG-Moon-Mobile.jpg');
    padding: 12px;
  }

  h1 {
    font-size: 2em;
  }
  
  .output-container {
    grid-template-columns: 1fr;
  }
}

/* --- CSS UNTUK GAMBAR ZEUS --- */

.zeus-character {
  /* DIUBAH: 'absolute' menjadi 'fixed' agar gambar tetap di layar saat scroll */
  position: fixed;
  right: -50px;
  bottom: 0;
  width: 450px;
  z-index: 0;
  opacity: 0.7;
  pointer-events: none;
}

.zeus-character img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(100, 80, 200, 0.5));
}

/* Penyesuaian untuk layar yang lebih kecil (mobile) */
@media (max-width: 1400px) {
  .zeus-character {
    display: none;
  }
}
/* --- CSS UNTUK ANIMASI NARUTO BERLARI --- */

/* Definisikan animasi bergerak dari kiri ke kanan dan sebaliknya */
@keyframes run-across {
  0% {
    /* Mulai lebih dekat ke tengah kiri */
    left: 15%;
    transform: scaleX(0.8); /* Sedikit lebih kecil */
  }
  49% {
    /* Berhenti lebih dekat ke tengah kanan */
    left: 85%;
    transform: scaleX(0.8);
  }
  51% {
    left: 85%;
    transform: scaleX(-0.8); /* Menghadap ke kiri, ukuran sama */
  }
  99% {
    /* Berhenti lebih dekat ke tengah kiri */
    left: 15%;
    transform: scaleX(-0.8);
  }
  100% {
      left: 15%;
      transform: scaleX(0.8);
  }
}

/* Styling untuk karakter yang berlari */
.running-character {
  position: absolute;
  top: 10px; /* Atur jarak dari atas */
  width: 50px; /* Atur ukuran karakter */
  z-index: 10;
  pointer-events: none;
  
  /* DIUBAH: Durasi animasi diperlambat menjadi 15 detik */
  animation: run-across 15s linear infinite;
}

.running-character img {
  width: 100%;
}