/* gamewombat.world - Demo Page Styles */
/* Specialized styles for the interactive demo interface */

/* ===== DEMO HEADER ===== */
.demo-header {
  padding: calc(var(--header-height) + var(--spacing-3xl)) 0 var(--spacing-2xl);
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg-secondary) 100%);
  text-align: center;
}

.demo-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
}

.demo-description {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== DEMO INTERFACE ===== */
.demo-interface {
  padding: var(--spacing-3xl) 0;
}

.demo-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  max-width: 1400px;
  margin: 0 auto;
}

.demo-panel {
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
}

.demo-panel h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--spacing-xl);
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-light);
  padding-bottom: var(--spacing-md);
}

/* ===== INPUT PANEL ===== */
.input-panel h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

/* Upload Section */
.upload-section {
  margin-bottom: var(--spacing-2xl);
}

.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
}

.upload-area:hover {
  border-color: var(--primary-color);
  background: var(--primary-50);
}

.upload-area.dragover {
  border-color: var(--primary-color);
  background: var(--primary-50);
  transform: scale(1.02);
}

.upload-content {
  pointer-events: none;
}

.upload-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--spacing-md);
}

.upload-area p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

.upload-formats {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Recording Section */
.recording-section {
  margin-bottom: var(--spacing-2xl);
}

.recording-controls {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.recording-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.recording-indicator {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.recording-indicator .pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--transition-fast);
}

.recording-indicator.recording .pulse {
  background: var(--error-color);
  animation: pulse 1s infinite;
}

.recording-time {
  font-family: var(--font-family-mono);
  font-weight: 600;
  color: var(--text-primary);
}

/* Sample Section */
.sample-section {
  margin-bottom: var(--spacing-xl);
}

.sample-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--spacing-sm);
}

.sample-btn {
  font-size: var(--text-sm);
  padding: var(--spacing-sm) var(--spacing-md);
}

/* ===== OUTPUT PANEL ===== */
.output-panel {
  position: relative;
}

/* Processing Status */
.processing-status {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.status-icon {
  font-size: var(--text-lg);
}

.status-text {
  font-weight: 500;
  color: var(--text-primary);
}

.processing-status.processing .status-icon {
  animation: spin 1s linear infinite;
}

.processing-status.success .status-icon {
  color: var(--accent-color);
}

.processing-status.error .status-icon {
  color: var(--error-color);
}

/* Results Section */
.results-section {
  margin-bottom: var(--spacing-xl);
}

.result-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: var(--spacing-lg);
}

.tab-btn {
  background: none;
  border: none;
  padding: var(--spacing-md) var(--spacing-lg);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Transcription Content */
.transcription-content {
  min-height: 200px;
}

.transcription-text {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  min-height: 150px;
  max-height: 300px;
  overflow-y: auto;
  font-family: var(--font-family-mono);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.placeholder-text {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin: var(--spacing-xl) 0;
}

.transcription-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
}

.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.meta-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.meta-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* Q&A Section */
.qa-section {
  min-height: 200px;
}

.qa-input {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.question-field {
  flex: 1;
  padding: var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast);
}

.question-field:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.qa-results {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  min-height: 150px;
}

/* Summary Section */
.summary-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  min-height: 200px;
  line-height: 1.7;
}

/* Export Section */
.export-section {
  border-top: 1px solid var(--border-light);
  padding-top: var(--spacing-lg);
}

.export-section h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.export-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.export-buttons .btn {
  font-size: var(--text-sm);
  padding: var(--spacing-sm) var(--spacing-md);
}

/* ===== DEMO FEATURES ===== */
.demo-features {
  padding: var(--spacing-3xl) 0;
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.feature-card {
  background: var(--bg-primary);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--spacing-lg);
}

.feature-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== PERFORMANCE COMPARISON ===== */
.performance-comparison {
  padding: var(--spacing-3xl) 0;
}

.comparison-table {
  margin-top: var(--spacing-2xl);
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
  padding: var(--spacing-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table td {
  font-size: var(--text-sm);
}

.comparison-table tr:hover {
  background: var(--bg-secondary);
}

.comparison-table .best {
  color: var(--accent-color);
  font-weight: 600;
}

.comparison-table .good {
  color: var(--primary-color);
  font-weight: 500;
}

.comparison-table .worse {
  color: var(--text-muted);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .demo-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .demo-title {
    font-size: var(--text-3xl);
  }
  
  .demo-description {
    font-size: var(--text-lg);
  }
}

@media (max-width: 768px) {
  .demo-header {
    padding: calc(var(--header-height) + var(--spacing-2xl)) 0 var(--spacing-xl);
  }
  
  .demo-interface {
    padding: var(--spacing-2xl) 0;
  }
  
  .demo-panel {
    padding: var(--spacing-xl);
  }
  
  .demo-title {
    font-size: var(--text-2xl);
  }
  
  .recording-controls {
    flex-direction: column;
  }
  
  .sample-buttons {
    grid-template-columns: 1fr;
  }
  
  .qa-input {
    flex-direction: column;
  }
  
  .export-buttons {
    flex-direction: column;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison-table {
    font-size: var(--text-xs);
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .demo-panel {
    padding: var(--spacing-lg);
  }
  
  .upload-area {
    padding: var(--spacing-lg);
  }
  
  .transcription-meta {
    grid-template-columns: 1fr;
  }
  
  .meta-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===== ACCESSIBILITY ===== */
.demo-panel:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.tab-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.question-field:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ===== PRINT STYLES ===== */
@media print {
  .demo-interface,
  .demo-features,
  .performance-comparison,
  .cta-section {
    display: none;
  }
  
  .demo-header {
    padding: 0;
    background: none;
  }
  
  .demo-title {
    color: black;
  }
  
  .demo-description {
    color: black;
  }
} 