/**
 * ErrorBoundary Component Styles
 */

.errorBoundary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 2rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

.errorContent {
  text-align: center;
  max-width: 500px;
}

.errorIcon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: #dc2626;
}

.errorIcon svg {
  width: 100%;
  height: 100%;
}

.errorTitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #991b1b;
  margin: 0 0 0.5rem 0;
}

.errorMessage {
  font-size: 1rem;
  color: #7f1d1d;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.resetButton {
  padding: 0.75rem 1.5rem;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.resetButton:hover {
  background: #b91c1c;
}

.resetButton:active {
  transform: scale(0.98);
}

.errorDetails {
  margin-top: 1.5rem;
  text-align: left;
  background: white;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 1rem;
}

.errorDetails summary {
  cursor: pointer;
  font-weight: 600;
  color: #991b1b;
  user-select: none;
}

.errorDetails summary:hover {
  color: #7f1d1d;
}

.errorStack {
  margin-top: 1rem;
  padding: 1rem;
  background: #fef2f2;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #7f1d1d;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Video Error Fallback Styles */
.videoErrorFallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  position: relative;
}

.videoErrorFallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.videoErrorContent {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 2rem;
}

.videoErrorIcon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}

.videoErrorIcon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.videoErrorTitle {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.videoErrorMessage {
  font-size: 1rem;
  margin: 0 0 2rem 0;
  opacity: 0.9;
  line-height: 1.5;
}

.videoResetButton {
  padding: 0.75rem 2rem;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.videoResetButton:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.videoResetButton:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .errorBoundary {
    min-height: 250px;
    padding: 1.5rem;
  }

  .errorIcon {
    width: 48px;
    height: 48px;
  }

  .errorTitle {
    font-size: 1.25rem;
  }

  .errorMessage {
    font-size: 0.875rem;
  }

  .videoErrorFallback {
    min-height: 300px;
  }

  .videoErrorIcon {
    width: 60px;
    height: 60px;
  }

  .videoErrorTitle {
    font-size: 1.25rem;
  }

  .videoErrorMessage {
    font-size: 0.875rem;
  }
}
