/* ====================================
   VOICES PAGE STYLES
   Comprehensive styling for voice management interface
   ==================================== */

/* Page Layout */
.voices-page {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  align-items: flex-start;
}

.voices-main {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transition: margin-left 0.3s ease;
}

/* Page Header */
.page-header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 2rem 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-info {
  flex: 1;
}

.page-description {
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.6;
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Create Voice Button */
.create-voice-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.create-voice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.create-voice-btn i {
  font-size: 1.1rem;
}

/* Voices Container */
.voices-container {
  padding: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Loading Message */
.loading-message {
  text-align: center;
  padding: 4rem 2rem;
  color: #64748b;
}

.loading-spinner {
  font-size: 2rem;
  color: #3b82f6;
  margin-bottom: 1rem;
}

.loading-message p {
  font-size: 1.1rem;
  margin: 0;
}

/* Voices Grid */
.voices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Voice Card */
.voice-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.voice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.voice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: #e2e8f0;
}

/* Voice Card Header */
.voice-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.voice-avatar {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  position: relative;
  overflow: hidden;
}

.voice-avatar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.voice-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}

.voice-type {
  font-size: 0.85rem;
  color: #3b82f6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Voice Card Body */
.voice-body {
  margin-bottom: 1.5rem;
}

.voice-description {
  color: #64748b;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.voice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.voice-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

/* Setup Type Badge */
.setup-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
}

.setup-type-badge.basic {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  color: #3b82f6;
  border: 1px solid #93c5fd;
}

.setup-type-badge.advanced {
  background: linear-gradient(135deg, #f3e8ff 0%, #ede9fe 100%);
  color: #8b5cf6;
  border: 1px solid #c4b5fd;
}

.setup-type-badge i {
  font-size: 0.75rem;
}

/* Voice Stats */
.voice-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-item {
  text-align: center;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Voice Card Footer */
.voice-footer {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.btn-secondary {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #1f2937;
}

.btn-danger {
  background: white;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.btn-danger:hover {
  background: #fef2f2;
  border-color: #dc2626;
  color: #991b1b;
}

.btn-primary {
  flex: 1;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Create New Voice Card */
.create-voice-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.create-voice-card:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  transform: translateY(-2px);
}

.create-content {
  text-align: center;
  color: #64748b;
}

.create-icon {
  font-size: 3rem;
  color: #3b82f6;
  margin-bottom: 1rem;
}

.create-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #475569;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .voices-page {
    flex-direction: column;
  }
  
  .voices-main {
    height: 100vh;
    overflow-y: auto;
  }

  .page-header {
    padding: 1.5rem 1rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .header-actions {
    justify-content: flex-end;
  }

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

  .voices-container {
    padding: 1.5rem 1rem;
  }

  .voices-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .voice-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .voice-footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.75rem;
  }

  .voice-card {
    padding: 1rem;
  }

  .voice-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .voice-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .voice-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .create-voice-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Animation for voice cards loading */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.voice-card {
  animation: fadeInUp 0.6s ease forwards;
}

.voice-card:nth-child(1) { animation-delay: 0.1s; }
.voice-card:nth-child(2) { animation-delay: 0.2s; }
.voice-card:nth-child(3) { animation-delay: 0.3s; }
.voice-card:nth-child(4) { animation-delay: 0.4s; }

/* Notification animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}
.voice-card:nth-child(5) { animation-delay: 0.5s; }
.voice-card:nth-child(6) { animation-delay: 0.6s; }
