/* styles/error-displays.css */
/* Error Display System for SoulSearch Widget */

/* Main error container */
.soulsearch-error-container {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15); */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    margin: 1rem 0;
    animation: fadeIn 0.3s ease-in-out;
    background-color: #ffffff;
  }
  
  /* Animation for error appearance */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Left accent */
  /* .soulsearch-error-accent {
    width: 8px;
    background: linear-gradient(to bottom, #fd8b73, #ff4f5e);
  } */
  
  /* Main error content */
  .soulsearch-error-content {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    width: 100%;
  }
  
  /* Error header section */
  .soulsearch-error-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
  }
  
  /* Error icon */
  .soulsearch-error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ffe8e6;
    color: #ff4f5e;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
  }
  
  /* Error titles */
  .soulsearch-error-title-wrapper {
    flex-grow: 1;
  }
  
  .soulsearch-error-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
  }
  
  .soulsearch-error-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #718096;
    line-height: 1.5;
  }
  
  /* Error message */
  .soulsearch-error-message {
    font-size: 0.9375rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  .soulsearch-error-message ul {
    padding-left: 1.5rem;
    margin: 0.75rem 0;
  }
  
  .soulsearch-error-message li {
    margin-bottom: 0.5rem;
  }
  
  .soulsearch-error-message code {
    background-color: #f7fafc;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.875rem;
    color: #e53e3e;
  }
  
  /* Error actions */
  .soulsearch-error-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
  }
  
  /* Error buttons */
  .soulsearch-error-button {
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .soulsearch-error-button:hover {
    transform: translateY(-1px);
  }
  
  .soulsearch-error-button-primary {
    background-color: #42234e;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  .soulsearch-error-button-primary:hover {
    background-color: #5a3268;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .soulsearch-error-button-secondary {
    background-color: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
  }
  
  .soulsearch-error-button-secondary:hover {
    background-color: #edf2f7;
    color: #2d3748;
  }
  
  /* Error button icons */
  .soulsearch-error-button-icon {
    margin-right: 0.5rem;
    font-size: 0.875rem;
  }
  
  /* Technical details section */
  .soulsearch-error-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
  }
  
  .soulsearch-error-details-toggle {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #718096;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
  }
  
  .soulsearch-error-details-toggle:hover {
    color: #4a5568;
    text-decoration: underline;
  }
  
  .soulsearch-error-details-content {
    display: none;
    margin-top: 0.75rem;
    background-color: #f7fafc;
    border-radius: 4px;
    padding: 0.75rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.75rem;
    color: #4a5568;
    white-space: pre-wrap;
    overflow-x: auto;
    max-height: 200px;
    overflow-y: auto;
  }
  
  .soulsearch-error-details.expanded .soulsearch-error-details-content {
    display: block;
  }
  
  /* Responsive adjustments */
  @media (max-width: 640px) {
    .soulsearch-error-header {
      flex-direction: column;
    }
    
    .soulsearch-error-icon {
      margin-bottom: 1rem;
      margin-right: 0;
    }
    
    .soulsearch-error-actions {
      flex-direction: column;
    }
    
    .soulsearch-error-button {
      width: 100%;
    }
  }
  
  /* Error types - different colors for different error categories */
  .soulsearch-error-container.error-config {
    --error-accent: linear-gradient(to bottom, #fd8b73, #ff4f5e);
    --error-icon-bg: #ffe8e6;
    --error-icon-color: #ff4f5e;
  }
  
  .soulsearch-error-container.error-network {
    --error-accent: linear-gradient(to bottom, #ffc066, #ff9f43);
    --error-icon-bg: #fff5eb;
    --error-icon-color: #ff9f43;
  }
  
  .soulsearch-error-container.error-data {
    --error-accent: linear-gradient(to bottom, #63b3ed, #4299e1);
    --error-icon-bg: #ebf8ff;
    --error-icon-color: #4299e1;
  }
  
  .soulsearch-error-container.error-unknown {
    --error-accent: linear-gradient(to bottom, #a3bffa, #667eea);
    --error-icon-bg: #ebf4ff;
    --error-icon-color: #667eea;
  }
  
  /* Apply different colors based on error type */
  .soulsearch-error-container .soulsearch-error-accent {
    background: var(--error-accent, linear-gradient(to bottom, #fd8b73, #ff4f5e));
  }
  
  .soulsearch-error-container .soulsearch-error-icon {
    background-color: var(--error-icon-bg, #ffe8e6);
    color: var(--error-icon-color, #ff4f5e);
  }