/* Cyberpunk Character Creator Styles */
:root {
  --cp-primary: #00c3ff;
  --cp-secondary: #ff174e;
  --cp-tertiary: #00ff9e;
  --cp-bg-dark: #0f1420;
  --cp-text: #ffffff;
  --cp-text-muted: rgba(255, 255, 255, 0.7);
  --cp-border: rgba(0, 195, 255, 0.3);
  --cp-glow: rgba(0, 195, 255, 0.5);
}

/* Character Creator Section */
#character-creator-section {
  margin: 50px 0;
  position: relative;
  display: block;
  clear: both;
  padding: 30px 0;
  background-color: rgba(15, 20, 32, 0.3);
  border-top: 1px solid rgba(0, 195, 255, 0.2);
  border-bottom: 1px solid rgba(0, 195, 255, 0.2);
}

/* Toggle Button */
#toggle-character-creator {
  margin-bottom: 30px;
  font-size: 18px;
  transition: all 0.3s ease;
  background: linear-gradient(90deg, var(--cp-secondary), var(--cp-primary));
  color: var(--cp-text);
  border-radius: 30px;
  padding: 12px 30px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(0, 195, 255, 0.3);
  position: relative;
  z-index: 5;
  cursor: pointer;
  border: none;
}

#toggle-character-creator:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 195, 255, 0.5);
}

#toggle-character-creator.active {
  background: linear-gradient(90deg, var(--cp-secondary), var(--cp-tertiary));
}

/* Slide Down Container */
.character-creator-slide {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s ease-in-out;
  background-color: var(--cp-bg-dark);
  border: 1px solid var(--cp-primary);
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 0 30px rgba(0, 195, 255, 0.3);
  position: relative;
  padding: 0;
}

.character-creator-slide.open {
  max-height: 1200px !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  margin-top: 30px;
  transition: all 0.6s ease-in-out;
  padding: 20px;
}

/* Creator container */
.creator-container {
  width: 100%;
  height: 800px;
  background-color: var(--cp-bg-dark);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Header */
.creator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: linear-gradient(135deg, rgba(0, 195, 255, 0.15) 0%, rgba(255, 23, 78, 0.15) 100%);
  border-bottom: 1px solid var(--cp-primary);
}

.creator-title {
  font-size: 28px;
  color: var(--cp-primary);
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 195, 255, 0.8);
  font-family: 'Oxanium', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.creator-subtitle {
  font-size: 16px;
  color: var(--cp-text);
  margin: 8px 0 0;
  opacity: 0.8;
  font-family: 'VT323', monospace;
}

.close-btn {
  background: none;
  border: 1px solid rgba(255, 23, 78, 0.4);
  color: var(--cp-text);
  font-size: 28px;
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 23, 78, 0.2);
  border-color: rgba(255, 23, 78, 0.8);
  transform: scale(1.1);
}

/* Progress bar */
.progress-bar {
  height: 6px;
  background-color: rgba(0, 0, 0, 0.4);
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cp-secondary), var(--cp-primary), var(--cp-tertiary));
  width: 0;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: 4px;
}

.progress-text {
  position: absolute;
  right: 10px;
  top: -20px;
  font-size: 12px;
  color: var(--cp-text);
}

/* Main content */
.creator-content {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: 100%;
}

/* Steps section */
.creator-steps {
  flex: 3;
  background-color: rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(0, 195, 255, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Step indicators */
.step-indicators {
  display: flex;
  border-bottom: 1px solid rgba(0, 195, 255, 0.3);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}

.step-indicator {
  flex: 1;
  padding: 15px 10px;
  text-align: center;
  color: var(--cp-text);
  font-size: 14px;
  background-color: rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(0, 195, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
  font-family: 'VT323', monospace;
}

.step-indicator:last-child {
  border-right: none;
}

.step-indicator.active {
  background-color: rgba(0, 195, 255, 0.2);
  color: var(--cp-primary);
  opacity: 1;
  font-weight: bold;
}

.step-indicator.complete {
  background-color: rgba(0, 255, 158, 0.1);
  color: var(--cp-tertiary);
  opacity: 0.8;
}

/* Step content area */
.step-carousel {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.step-contents-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.step-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 25px 30px;
  overflow-y: auto;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-content.active {
  display: block;
  opacity: 1;
}

/* Step content styling */
.step-title {
  font-size: 24px;
  color: var(--cp-primary);
  margin: 0 0 15px;
  font-family: 'Oxanium', sans-serif;
}

.step-description {
  font-size: 16px;
  color: var(--cp-text);
  margin: 0 0 25px;
  opacity: 0.8;
  line-height: 1.5;
}

/* Navigation */
.creator-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(0, 195, 255, 0.3);
}

.nav-btn {
  background-color: rgba(0, 195, 255, 0.2);
  border: 2px solid var(--cp-primary);
  color: var(--cp-primary);
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'VT323', monospace;
  text-transform: lowercase;
  font-weight: bold;
  min-width: 80px;
}

.nav-btn:hover:not(:disabled) {
  background-color: rgba(0, 195, 255, 0.3);
  transform: translateY(-2px);
}

.nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Character preview */
.creator-preview {
  flex: 2;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.preview-title {
  font-size: 18px;
  color: var(--cp-primary);
  margin-bottom: 15px;
  text-align: center;
}

.character-preview {
  flex: 1;
  border: 1px solid rgba(0, 195, 255, 0.3);
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {
  .creator-content {
    flex-direction: column;
  }
  
  .creator-steps, .creator-preview {
    flex: none;
  }
  
  .creator-preview {
    height: 300px;
  }
}

/* Terminal Effects */
.terminal-glitch {
  position: relative;
  overflow: hidden;
}

.terminal-glitch::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 195, 255, 0.05);
  opacity: 0;
  pointer-events: none;
  animation: glitch 5s infinite;
}

@keyframes glitch {
  0% { opacity: 0; }
  10% { opacity: 0.1; top: 10px; left: -10px; }
  11% { opacity: 0.05; top: -5px; left: 5px; }
  50% { opacity: 0; }
  90% { opacity: 0.1; top: -10px; left: 10px; }
  91% { opacity: 0.05; top: 5px; left: -5px; }
  100% { opacity: 0; }
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 1rem;
  color: var(--cp-text);
  margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 0.8rem;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 195, 255, 0.3);
  color: var(--cp-text);
  font-family: 'VT323', monospace;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus {
  border-color: var(--cp-primary);
  outline: none;
}

/* Gender Selection */
.gender-selection {
  display: flex;
  gap: 1rem;
}

.gender-option {
  flex: 1;
  padding: 0.8rem;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 195, 255, 0.3);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gender-option input {
  margin-right: 0.5rem;
}

.gender-option:hover {
  border-color: var(--cp-primary);
}

/* Range Inputs */
.range-control {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
}

.range-slider {
  flex: 1;
  margin-right: 1rem;
}

.range-value {
  width: 50px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 195, 255, 0.3);
  padding: 0.3rem;
  color: var(--cp-primary);
}

input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: rgba(0, 195, 255, 0.2);
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--cp-primary);
  border-radius: 50%;
  cursor: pointer;
}

/* Option Grid */
.cp-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 0.8rem;
}

.cp-option {
  padding: 0.8rem;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 195, 255, 0.3);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cp-option:hover {
  border-color: var(--cp-primary);
}

.cp-option.selected {
  background-color: rgba(0, 195, 255, 0.1);
  border-color: var(--cp-primary);
  color: var(--cp-primary);
}

/* Color Options */
.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.8rem;
}

.color-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  border-color: var(--cp-text);
  transform: scale(1.1);
}

.color-black { background-color: #222; }
.color-brown { background-color: #8B4513; }
.color-blonde { background-color: #FFD700; }
.color-red { background-color: #FF4500; }
.color-blue { background-color: #1E90FF; }
.color-green { background-color: #00FF7F; }
.color-pink { background-color: #FF69B4; }
.color-white { background-color: #E0E0E0; }

/* Personality Questions */
.personality-questions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.personality-question {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 195, 255, 0.2);
  padding: 1rem;
}

.question-text {
  font-size: 1rem;
  color: var(--cp-text);
  margin-bottom: 0.8rem;
}

.question-options {
  display: flex;
  gap: 1rem;
}

.question-option {
  flex: 1;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 195, 255, 0.3);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.question-option:hover {
  border-color: var(--cp-primary);
}

.question-option input {
  margin-right: 0.5rem;
}

.question-option label {
  margin-bottom: 0;
  cursor: pointer;
}

/* Skills & Checkboxes */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1.5rem;
}

.skill-option {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 195, 255, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
}

.skill-option:hover {
  border-color: var(--cp-primary);
}

.skill-option input[type="checkbox"] {
  margin-right: 0.5rem;
}

.skill-limit-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--cp-tertiary);
}

/* Summary */
.character-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.summary-section {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 195, 255, 0.2);
  padding: 1rem;
}

.summary-title {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.2rem;
  color: var(--cp-primary);
  margin-bottom: 0.8rem;
  text-transform: lowercase;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.summary-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 195, 255, 0.1);
  display: flex;
}

.summary-label {
  width: 40%;
  color: rgba(255, 255, 255, 0.6);
}

.summary-value {
  width: 60%;
  color: var(--cp-text);
}

.character-analysis {
  grid-column: span 2;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 195, 255, 0.2);
  padding: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cp-text);
}

/* Right Panel - Character Preview */
.creator-preview {
  width: 30%;
  background-color: rgba(0, 0, 0, 0.3);
  border-left: 1px solid rgba(0, 195, 255, 0.3);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.preview-title {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.2rem;
  color: var(--cp-primary);
  margin-bottom: 1rem;
  text-transform: lowercase;
}

.character-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 195, 255, 0.2);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.character-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 195, 255, 0.03) 0px,
    rgba(0, 195, 255, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
}

.character-silhouette {
  width: 70%;
  height: 70%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  filter: brightness(0.3) contrast(1.2);
  transition: all 0.5s ease;
  position: relative;
}

#details-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--cp-text);
  text-align: center;
}

.char-name {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.char-detail {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  opacity: 0.8;
}

/* Character Stats */
.character-stats {
  margin-bottom: 1rem;
}

.stat-group {
  margin-bottom: 0.8rem;
}

.stat-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.3rem;
}

.stat-bar {
  height: 8px;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 195, 255, 0.2);
  overflow: hidden;
  border-radius: 4px;
}

.stat-fill {
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
}

.personality-stat { background: linear-gradient(to right, #ff9900, #ff5e00); }
.physical-stat { background: linear-gradient(to right, #ff2d2d, #cc0000); }
.mental-stat { background: linear-gradient(to right, #2979ff, #0048ba); }
.social-stat { background: linear-gradient(to right, #9c27b0, #673ab7); }

/* Navigation Buttons */
.creator-actions {
  display: flex;
  gap: 1rem;
}

#save-character {
  background-color: rgba(0, 255, 158, 0.1);
  border: 1px solid var(--cp-tertiary);
  color: var(--cp-tertiary);
}

#save-character:hover {
  background-color: rgba(0, 255, 158, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  .creator-container {
    width: 95%;
    height: 95%;
  }
  
  .step-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  
  .step-indicator:nth-child(n+4) {
    grid-column: span 1;
  }
  
  .gender-selection, .question-options {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .character-stats {
    grid-template-columns: 1fr;
  }
  
  .creator-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .creator-actions {
    justify-content: space-between;
    width: 100%;
  }
} 