/**
 * U-Snap it — Transcript Summary Card Styles
 */

.transcript-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.transcript-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.transcript-icon {
  font-size: 1.25rem;
}

.transcript-title {
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
}

/* Processing State */
.transcript-processing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

.processing-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #22c55e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Summary */
.transcript-summary {
  background: rgba(34, 197, 94, 0.1);
  border-left: 3px solid #22c55e;
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1rem;
}

.transcript-summary p {
  margin: 0;
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Keywords */
.transcript-keywords {
  margin-bottom: 1rem;
}

.keywords-label {
  display: block;
  color: #9ca3af;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.keyword-tag {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Full Transcript */
.transcript-full {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
}

.transcript-full summary {
  color: #9ca3af;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.transcript-full summary:hover {
  color: #d1d5db;
}

.transcript-text {
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
}

/* Error State */
.transcript-error {
  text-align: center;
  padding: 0.5rem;
}

.transcript-error p {
  color: #9ca3af;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.transcript-retry {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.transcript-retry:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Empty/Loading State */
.transcript-empty,
.transcript-loading {
  color: #6b7280;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem;
}

.transcript-empty p,
.transcript-loading p {
  margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
  .transcript-card {
    padding: 1rem;
  }
  
  .transcript-summary {
    padding: 0.625rem 0.875rem;
  }
  
  .keyword-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
}
