/* Voice Preferences Page Styles */

.page-header {
  text-align: left;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--text-primary, #1a1a1a);
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary, #666);
  margin: 0;
}

/* Status Messages */
.status-message {
  padding: 1.25rem 1.75rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  animation: slideDown 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-message.success {
  background: #d4edda;
  color: #155724;
  border: 2px solid #28a745;
  border-left: 6px solid #28a745;
}

.status-message.success::before {
  content: "✅ ";
  font-size: 1.3rem;
}

.status-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #dc3545;
  border-left: 6px solid #dc3545;
}

.status-message.error::before {
  content: "❌ ";
  font-size: 1.3rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Preference Sections */
.preference-section {
  background: #f0f0f0;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 1rem;
}

.section-header h2 {
  font-size: 1.8rem;
  color: var(--text-primary, #1a1a1a);
  margin: 0 0 0.5rem 0;
}

.section-header p {
  color: var(--text-secondary, #666);
  margin: 0;
}

/* Preference Cards */
.preference-card {
  margin-bottom: 1.5rem;
}

.preference-label {
  display: block;
  margin-bottom: 0.5rem;
}

.label-text {
  display: block;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.label-help {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary, #666);
}

.preference-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #0c0101;
  border-radius: 8px;
  background: rgb(225, 227, 230);
  color: var(--text-primary, #1a1a1a);
  cursor: pointer;
  transition: all 0.2s ease;
}

.preference-select:hover {
  border-color: #c0c0c0;
}

.preference-select:focus {
  outline: none;
  border-color: var(--primary-color, #4a90e2);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Test Section */
.test-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.test-section h3 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  color:  #1a1a1a;
}

.test-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.test-input:focus {
  outline: none;
  border-color: var(--primary-color, #4a90e2);
}

.test-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.test-result {
  flex: 1;
  min-height: 2.5rem;
}

.test-result audio {
  width: 100%;
  max-width: 400px;
}

.test-help {
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary, #666);
  font-style: italic;
}

.listen-status {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  display: inline-block;
}

.listen-status.listening {
  background: #fff3cd;
  color: #856404;
  animation: pulse 1.5s infinite;
}

.listen-status.success {
  background: #d4edda;
  color: #155724;
}

.listen-status.error {
  background: #f8d7da;
  color: #721c24;
}

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

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary-color, #4a90e2);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark, #357abd);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Save Section */
.save-section {
  text-align: center;
  margin: 3rem 0;
}

.save-section .btn-primary {
  font-size: 1.1rem;
  padding: 1rem 3rem;
}

/* Info Section */
.info-section {
  background: #037ffc;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
}

.info-section h3 {
  font-size: 1.5rem;
  color: var(--text-primary, #1a1a1a);
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* .info-card parent shell removed (R-4.3b, 2026-05-11) —
   base shape now owned by .card in components.css. Children kept. */

.info-card h4 {
  font-size: 1.2rem;
  margin: 0 0 0.75rem 0;
  color:  #1a1a1a;
}

.info-card p {
  color: var(--text-secondary, #666);
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-card ul li {
  padding: 0.25rem 0;
  color: var(--text-secondary, #666);
  font-size: 0.95rem;
}

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

  .page-header h1 {
    font-size: 2rem;
  }

  .preference-section {
    padding: 1.5rem;
  }

  .test-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .save-section .btn-primary {
    width: 100%;
  }
}
