/* =========================================================
   Error Handling App — Default Theme
   ========================================================= */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0b0f1a;
  color: #d1d5db;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Subtle grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ─── Container ──────────────────────────────────────────── */

.error-container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 560px;
  width: 100%;
}

/* ─── Error code with animated ring ──────────────────────── */

.error-visual {
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.error-code {
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
 animation: codePulse 3s ease-in-out infinite;
}

.error-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 200%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(239, 68, 68, 0.1);
  border-radius: 50%;
  animation: ringExpand 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes codePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(0.98); }
}

@keyframes ringExpand {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.6; }
  50%      { transform: translate(-50%, -50%) scale(1.08); opacity: 0.2; }
}

/* ─── Divider ────────────────────────────────────────────── */

.error-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #ec4899);
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* ─── Typography ─────────────────────────────────────────── */

.error-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f3f4f6;
  margin-bottom: 0.75rem;
}

.error-message {
  font-size: 1rem;
  line-height: 1.7;
  color: #9ca3af;
  margin-bottom: 2rem;
}

/* ─── Button ─────────────────────────────────────────────── */

.error-btn {
  display: inline-block;
  padding: 0.7rem 2.2rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.error-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}

.error-btn:active {
  transform: translateY(0);
}

/* ─── Retry hint ─────────────────────────────────────────── */

.error-meta {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: #6b7280;
}
