/* Minimal/Zen Aesthetic for Void Radio */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background-color: #fafafa;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e5e5;
}

h1 {
  font-family: 'Georgia', serif;
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.tagline {
  font-size: 0.95rem;
  color: #666;
  font-weight: 300;
}

/* Transmission Form */
.transmission-form {
  margin-bottom: 3rem;
}

label {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
  background: white;
  margin-bottom: 1rem;
}

textarea:focus {
  outline: none;
  border-color: #4f46e5;
}

/* Controls Row - Sparks button */
.controls-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.spark-btn {
  padding: 0.5rem 1.5rem;
  background: white;
  color: #4f46e5;
  border: 1px solid #4f46e5;
  border-radius: 2px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.spark-btn:hover {
  background: #4f46e5;
  color: white;
  transform: translateY(-1px);
}

.spark-btn:active {
  transform: translateY(0);
}

/* Mode Selector */
.mode-selector {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.mode-selector label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
}

.mode-selector input[type="radio"] {
  cursor: pointer;
}

/* Transmit Button */
.transmit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 2px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.transmit-btn:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.transmit-btn:active {
  transform: translateY(0);
}

.transmit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 3rem 0;
  animation: fadeIn 0.5s ease;
}

.loading p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Progress Bar */
.progress-container {
  max-width: 500px;
  margin: 0 auto 2rem auto;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #666;
}

#progress-text {
  font-weight: 500;
}

#progress-time {
  color: #4f46e5;
  font-weight: 600;
}

.stations {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  margin: 0 auto;
}

.station {
  padding: 0.75rem;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.station.transmitting {
  opacity: 1;
  border-color: #4f46e5;
  background: #f0f0ff;
}

.station.complete {
  opacity: 1;
  border-color: #22c55e;
  background: #f0fdf4;
}

/* Responses */
.responses {
  animation: fadeIn 0.5s ease;
}

.responses-title {
  font-family: 'Georgia', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  text-align: center;
  color: #1a1a1a;
}

.responses-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.response-card {
  background: white;
  padding: 2rem;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  animation: slideUp 0.5s ease;
}

.response-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.response-icon {
  font-size: 1.5rem;
}

.response-station {
  font-weight: 500;
  color: #1a1a1a;
}

.response-text {
  color: #333;
  line-height: 1.8;
  white-space: pre-wrap;
}

/* Round Header Styling */
.round-header {
  text-align: center;
  padding: 2rem 0 1rem 0;
  margin: 1rem 0 2rem 0;
  border-top: 2px solid #e5e5e5;
}

.round-header h3 {
  font-family: 'Georgia', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: #4f46e5;
  margin-bottom: 0.5rem;
}

.round-subtitle {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

/* Continue Dialogue Section */
.continue-dialogue-container {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #e5e5e5;
}

/* Continue Loading Indicator */
.continue-loading {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  animation: fadeIn 0.3s ease;
}

.continue-loading .progress-container {
  margin-bottom: 0;
}

.continue-btn {
  padding: 1rem 2.5rem;
  background: white;
  color: #4f46e5;
  border: 2px solid #4f46e5;
  border-radius: 2px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.continue-btn:hover {
  background: #4f46e5;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.continue-btn:active {
  transform: translateY(0);
}

.continue-btn:disabled {
  background: #ccc;
  color: #666;
  border-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.continue-hint {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

/* Hidden utility */
.hidden {
  display: none;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
  color: #999;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .mode-selector {
    flex-direction: column;
    gap: 1rem;
  }

  .controls-row {
    justify-content: center;
  }
}