/* 1) Container overall */
#storygen-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 0 30px #ff007f;
}

/* 2) Header neon glow (dacă folosești un titlu în container) */
#storygen-container h2 {
  color: #ffcc00;
}

/* 3) Prompt textarea */
#storygen-container textarea {
  width: 100%;
  max-width: 100%;
  font-size: 1rem;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #444;
  background: #181818;
  color: #fff;
  resize: vertical;
}

/* 4) “Generate” button + alte butoane */
#storygen-container button,
#storygen-container input[type="submit"].storygen-submit {
  background-color: #ff007f;
  color: #fff;
  padding: 12px 24px;
  font-size: 1.05rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
  font-weight: bold;
  box-shadow: 0 0 10px #ff008670;
}
#storygen-container button:hover,
#storygen-container input[type="submit"].storygen-submit:hover {
  background-color: #e60073;
  color: #fff;
}

/* 5) Output box */
#storygen-container .storygen-output,
#storygen-container #asg-result {
  border: 2px solid #ff007f;
  background-color: #222;
  color: #eee;
  padding: 20px;
  border-radius: 6px;
  margin-top: 24px;
  font-size: 1.06rem;
}

/* 6) Dropdown select (pack) */
#storygen-container select {
  padding: 8px;
  border-radius: 4px;
  min-width: 180px;
  border: 1px solid #ff007f;
  background: #111;
  color: #fff;
  font-size: 1rem;
  margin-top: 0.5em;
}

/* 7) Radio group (genre) – NOU ȘI ADAPTAT */
#storygen-container .genre-radio-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 1em;
}
#storygen-container .genre-radio-label {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #181818;
  border-radius: 8px;
  padding: 7px 16px;
  color: #fff;
  font-weight: 500;
  font-size: 1.08em;
  cursor: pointer;
  transition: color 0.2s, box-shadow 0.2s, background 0.2s;
  border: 1.5px solid transparent;
  margin-bottom: 0;
}
#storygen-container .genre-radio-label input[type="radio"] {
  accent-color: #ff007f;
  width: 18px; height: 18px;
}
#storygen-container .genre-radio-label input[type="radio"]:checked ~ span {
  color: #ff007f;
  text-shadow: 0 0 8px #ff008699, 0 0 18px #ff008699;
  font-weight: bold;
}
@media (max-width: 600px) {
  #storygen-container .genre-radio-group { gap: 8px 8px; }
  #storygen-container .genre-radio-label {
    flex: 1 1 45%;
    min-width: 135px;
    justify-content: center;
    padding: 7px 0;
    font-size: 1em;
    margin-bottom: 6px;
  }
}
@media (max-width: 420px) {
  #storygen-container .genre-radio-label {
    min-width: 105px;
    font-size: .99em;
    padding: 5px 0;
  }
}

/* 8) Download și view links */
#asg-footer-links a {
  display: inline-block;
  margin: 1em 0 0.3em 0;
  color: #fff;
  background: #ff007f;
  padding: 10px 32px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 0 14px #ff0099b4;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
#asg-footer-links a:hover {
  background: #fff;
  color: #ff007f;
}
#asg-footer-links a + a {
  background: #111;
  color: #fff;
  margin-left: 0.5em;
  box-shadow: none;
}
#asg-footer-links a + a:hover {
  background: #ff007f;
  color: #fff;
}

/* 9) Responsive pentru mobil */
@media (max-width: 480px) {
  #storygen-container {
    padding: 1rem 4vw;
  }
  #storygen-container textarea {
    font-size: 0.97rem;
    padding: 0.8rem;
  }
  #storygen-container button {
    padding: 10px 12px;
    font-size: 0.98rem;
  }
  #storygen-container select {
    font-size: 0.98rem;
  }
}

/* Loader spinner */
#asg-loader {
  display: none;
  margin: 12px auto;
  border: 4px solid #ff007f33;   /* inel transparent */
  border-top: 4px solid #ff007f; /* partea colorata */
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: asgSpin 1s linear infinite;
}

@keyframes asgSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

