/**
 * Error Handler Styles
 * User-friendly error displays with recovery guidance
 */

.error-container {
  background: white;
  border-left: 4px solid #f44336;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.15);
  padding: 24px;
  margin: 20px;
  display: flex;
  gap: 20px;
  animation: slideIn 0.3s ease;
  max-width: 700px;
}

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

.error-container.error-hide {
  animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.error-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.error-content {
  flex: 1;
}

.error-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #d32f2f;
  margin: 0 0 12px 0;
}

.error-message {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
  margin: 0 0 16px 0;
}

.error-recovery {
  background: #fff3e0;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.recovery-title {
  font-size: 0.95rem;
  color: #e65100;
  margin: 0 0 12px 0;
}

.recovery-steps {
  margin: 0;
  padding-left: 20px;
  color: #666;
}

.recovery-steps li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.error-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-retry,
.btn-dismiss {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-retry {
  background: #f44336;
  color: white;
}

.btn-retry:hover {
  background: #d32f2f;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.btn-dismiss {
  background: #f5f5f5;
  color: #666;
}

.btn-dismiss:hover {
  background: #e0e0e0;
  color: #333;
}

.btn-icon {
  font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .error-container {
    flex-direction: column;
    padding: 20px;
    margin: 16px;
  }

  .error-icon {
    font-size: 2.5rem;
    text-align: center;
  }

  .error-title {
    font-size: 1.1rem;
  }

  .error-message {
    font-size: 0.95rem;
  }

  .error-actions {
    flex-direction: column;
  }

  .btn-retry,
  .btn-dismiss {
    width: 100%;
    justify-content: center;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .error-container {
    animation: none;
  }
}
