/* Druygon Feedback & Planning Portal Styles */

.portal {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 100px;
}

.page-header {
  text-align: center;
  margin: 30px 0;
}

.page-header h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--poke-yellow);
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1rem;
  color: #aaa;
  line-height: 1.6;
}

/* Stars Background Animation */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  animation: sparkle 3s ease-in-out infinite;
}

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

/* Mode Tabs */
.mode-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 3px solid rgba(255,203,5,0.2);
}

.mode-tab {
  flex: 1;
  padding: 15px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #888;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.mode-tab:hover {
  color: var(--poke-yellow);
  background: rgba(255,203,5,0.05);
}

.mode-tab.active {
  color: var(--poke-yellow);
  border-bottom-color: var(--poke-yellow);
  background: rgba(255,203,5,0.1);
}

.mode-tab .tab-emoji {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
}

/* Wizard Container */
.wizard-container {
  margin-bottom: 30px;
}

.step-progress {
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--poke-yellow);
  margin-bottom: 15px;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: #333;
  border-radius: 10px;
  border: 2px solid #555;
  overflow: hidden;
  margin-bottom: 30px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--poke-yellow), #FF9800);
  border-radius: 8px;
  transition: width 0.5s ease;
}

.question-card h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: var(--poke-yellow);
  margin-bottom: 20px;
  line-height: 1.6;
}

.input-container {
  margin: 30px 0;
}

.input-container input[type="text"],
.input-container textarea,
.input-container select {
  width: 100%;
  padding: 15px;
  background: rgba(0,0,0,0.3);
  border: 2px solid #555;
  border-radius: 10px;
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  transition: all 0.3s;
}

.input-container textarea {
  min-height: 150px;
  resize: vertical;
}

.input-container input:focus,
.input-container textarea:focus,
.input-container select:focus {
  outline: none;
  border-color: var(--poke-yellow);
  background: rgba(0,0,0,0.5);
}

/* Star Rating */
.stars-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 30px 0;
}

.stars-container .star {
  position: relative;
  width: auto;
  height: auto;
  background: transparent;
  font-size: 3rem;
  cursor: pointer;
  opacity: 0.3;
  transition: all 0.2s;
  filter: grayscale(100%);
  animation: none;
}

.stars-container .star:hover,
.stars-container .star.active {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.2);
}

/* Navigation Buttons */
.wizard-nav {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.wizard-nav button {
  flex: 1;
  padding: 15px 25px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  border: 3px solid var(--poke-yellow);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

.btn-prev {
  background: transparent;
  color: var(--poke-yellow);
}

.btn-prev:hover:not(:disabled) {
  background: rgba(255,203,5,0.1);
}

.btn-next {
  background: linear-gradient(135deg, var(--poke-yellow), #FF9800);
  color: var(--poke-dark);
  flex: 2;
}

.btn-next:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,203,5,0.5);
}

.btn-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Loading Animation */
.loading-screen {
  text-align: center;
  padding: 50px 20px;
}

.pokeball-spinner {
  font-size: 5rem;
  animation: spin 1.5s linear infinite;
  display: inline-block;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loading-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  color: var(--poke-yellow);
  margin-top: 20px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Result Display */
.result-container {
  margin-top: 30px;
}

.result-content {
  background: linear-gradient(145deg, #2a2a4a, #1e1e3a);
  border: 3px solid var(--poke-yellow);
  border-radius: 20px;
  padding: 30px;
  line-height: 1.8;
  white-space: pre-wrap;
  font-size: 1rem;
}

.result-content h1,
.result-content h2,
.result-content h3 {
  font-family: 'Press Start 2P', monospace;
  color: var(--poke-yellow);
  margin: 20px 0 10px;
}

.result-content h1 {
  font-size: 1.2rem;
}

.result-content h2 {
  font-size: 1rem;
}

.result-content h3 {
  font-size: 0.8rem;
}

.result-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.result-actions button,
.result-actions a {
  flex: 1;
  padding: 15px 25px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  border: 3px solid var(--poke-yellow);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  display: inline-block;
}

.btn-save {
  background: linear-gradient(135deg, var(--poke-green), #66BB6A);
  color: white;
  border-color: var(--poke-green);
}

.btn-another {
  background: linear-gradient(135deg, var(--poke-blue), #5b6bea);
  color: white;
  border-color: var(--poke-blue);
}

.hide {
  display: none !important;
}

@media (max-width: 600px) {
  .mode-tabs {
    flex-direction: column;
    gap: 10px;
  }

  .wizard-nav {
    flex-direction: column;
  }

  .result-actions {
    flex-direction: column;
  }
}
