/**
 * エラー表示用CSS
 * @description 統一されたエラーUI
 */

/* エラーセクション基本スタイル */
.error-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.error-card {
  background: white;
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.error-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  font-size: 36px;
}

.error-content h2 {
  margin: 0;
  font-size: 28px;
  color: #1f2937;
  font-weight: 600;
}

.error-content p {
  margin: 0;
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* フォールバック用エラー */
.error-fallback {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 40px 0;
}

.error-fallback .error-icon {
  margin: 0 auto 24px;
}

.error-fallback h3 {
  margin: 0 0 16px;
  font-size: 24px;
  color: #1f2937;
  font-weight: 600;
}

.error-fallback p {
  margin: 0 0 24px;
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
}

/* ボタンシステムは buttons.css で統一管理 */

.btn-secondary {
  background: #6b7280;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: #4b5563;
  transform: translateY(-1px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .error-card {
    padding: 40px 20px;
    margin: 0 16px;
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }
}

/* 隠し要素はutilities.cssで統一管理 */

/* ローディング状態 */
.loading-spinner {
  animation: spin 1s linear infinite;
  font-size: 24px;
  color: #3b82f6;
}

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