
:root {
  --color-bg: #0a0a0b;
  --color-surface: #141416;
  --color-surface-2: #1c1c1f;
  --color-surface-hover: #242428;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);
  --color-text: #ffffff;
  --color-text-secondary: #a1a1aa;
  --color-text-muted: #71717a;
  --color-accent: #8b5cf6;
  --color-accent-glow: rgba(139, 92, 246, 0.25);
  --color-success: #22c55e;
  --color-success-glow: rgba(34, 197, 94, 0.2);
  --color-warning: #f59e0b;
  --color-warning-glow: rgba(245, 158, 11, 0.2);
  --color-error: #ef4444;
  --color-error-glow: rgba(239, 68, 68, 0.2);
  --color-info: #3b82f6;
  --color-info-glow: rgba(59, 130, 246, 0.2);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  min-height: 100vh;
  color: var(--color-text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--color-accent-glow), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(59, 130, 246, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 100%, rgba(34, 197, 94, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

body::after {
  content: '';
  position: fixed;
  top: 20%;
  right: 15%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 50%;
  pointer-events: none;
  animation: floatOrb 20s ease-in-out infinite;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
  25% { transform: translate(-30px, 20px) rotate(90deg); opacity: 0.5; }
  50% { transform: translate(20px, -30px) rotate(180deg); opacity: 0.3; }
  75% { transform: translate(30px, 30px) rotate(270deg); opacity: 0.5; }
}

.status-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}

.status-header {
  text-align: center;
  margin-bottom: 48px;
  animation: slideDown 0.8s var(--ease-out-expo);
}

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

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.logo-container img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-surface-2);
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s var(--ease-spring);
}

.logo-container:hover img {
  transform: rotate(-8deg) scale(1.1);
}

.logo-container span {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.status-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.status-header p {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.main-status {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  animation: cardAppear 0.6s var(--ease-out-expo) 0.2s both;
  transition: all 0.4s var(--ease-out-expo);
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.main-status::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.main-status:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.status-ring {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  background: var(--color-surface-2);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.5s var(--ease-spring);
}

.status-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, currentColor, transparent);
  opacity: 0.3;
  animation: ringRotate 3s linear infinite;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

.status-ring.operational { color: var(--color-success); box-shadow: 0 0 40px var(--color-success-glow); }
.status-ring.degraded { color: var(--color-warning); box-shadow: 0 0 40px var(--color-warning-glow); }
.status-ring.outage { color: var(--color-error); box-shadow: 0 0 40px var(--color-error-glow); }
.status-ring.maintenance { color: var(--color-info); box-shadow: 0 0 40px var(--color-info-glow); }

.status-ring i,
.status-ring svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
  animation: iconBounce 2s var(--ease-spring) infinite;
  position: relative;
  z-index: 1;
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.status-icon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-icon-inner i,
.status-icon-inner svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
}

.main-status h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.main-status h2.operational { color: var(--color-success); }
.main-status h2.degraded { color: var(--color-warning); }
.main-status h2.outage { color: var(--color-error); }
.main-status h2.maintenance { color: var(--color-info); }

.last-updated {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.last-updated i { width: 14px; height: 14px; }

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-success);
  margin-top: 24px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  animation: liveGlow 2s ease-in-out infinite;
}

@keyframes liveGlow {
  0%, 100% { box-shadow: 0 0 0 0 var(--color-success-glow); }
  50% { box-shadow: 0 0 20px 4px var(--color-success-glow); }
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: livePulse 1s ease-in-out infinite;
  box-shadow: 0 0 8px var(--color-success);
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.active-incident {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  animation: cardAppear 0.6s var(--ease-out-expo) 0.3s both;
  transition: all 0.4s var(--ease-out-expo);
}

.active-incident::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.active-incident.degraded::before { background: linear-gradient(90deg, transparent, var(--color-warning), transparent); }
.active-incident.outage::before { background: linear-gradient(90deg, transparent, var(--color-error), transparent); }
.active-incident.maintenance::before { background: linear-gradient(90deg, transparent, var(--color-info), transparent); }

.active-incident:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.incident-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.incident-badge {
  padding: 6px 14px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.incident-badge i { width: 14px; height: 14px; }

.incident-badge.degraded { color: var(--color-warning); border-color: rgba(245, 158, 11, 0.3); }
.incident-badge.outage { color: var(--color-error); border-color: rgba(239, 68, 68, 0.3); }
.incident-badge.maintenance { color: var(--color-info); border-color: rgba(59, 130, 246, 0.3); }

.incident-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.incident-message {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
  font-size: 0.9375rem;
}

.incident-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.incident-meta span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.incident-meta i {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.incident-updates {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.incident-updates h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.incident-updates h4 i { width: 14px; height: 14px; }

.update-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 16px;
  animation: slideIn 0.4s var(--ease-out-expo);
}

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

.update-item:last-child { border-bottom: none; }

.update-dot {
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--color-accent-glow);
}

.update-content { flex: 1; }

.update-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.update-message {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.services-section {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 16px;
  animation: cardAppear 0.6s var(--ease-out-expo) 0.4s both;
  transition: all 0.4s var(--ease-out-expo);
}

.services-section:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.section-title i {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
}

.uptime-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 8px 16px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.uptime-badge .uptime-value {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.uptime-badge .uptime-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.uptime-badge.uptime-good { color: var(--color-success); }
.uptime-badge.uptime-warning { color: var(--color-warning); }
.uptime-badge.uptime-critical { color: var(--color-error); }

.services-grid {
  display: grid;
  gap: 10px;
}

.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: 14px;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-item:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border);
  transform: translateX(6px);
}

.service-item:hover::before {
  opacity: 1;
}

.service-info { flex: 1; }

.service-info h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.service-info p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.service-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
}

.service-status i { width: 14px; height: 14px; }

.service-status.operational { 
  color: var(--color-success); 
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
}
.service-status.degraded { 
  color: var(--color-warning); 
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.08);
}
.service-status.outage { 
  color: var(--color-error); 
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
}
.service-status.maintenance { 
  color: var(--color-info); 
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.08);
}

.history-section {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 28px;
  animation: cardAppear 0.6s var(--ease-out-expo) 0.5s both;
  transition: all 0.4s var(--ease-out-expo);
}

.history-section:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.history-item {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  margin-bottom: 10px;
  border-left: 4px solid;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.history-item:last-child { margin-bottom: 0; }

.history-item:hover {
  background: var(--color-surface-2);
  transform: translateX(6px);
}

.history-item.degraded { border-left-color: var(--color-warning); }
.history-item.outage { border-left-color: var(--color-error); }
.history-item.maintenance { border-left-color: var(--color-info); }

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.history-title {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.history-resolved {
  font-size: 0.6875rem;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 5px 12px;
  border-radius: 100px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.history-resolved i { width: 12px; height: 12px; }

.history-message {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.history-dates {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-dates i { width: 14px; height: 14px; opacity: 0.7; }

.no-history {
  text-align: center;
  padding: 50px 20px;
  color: var(--color-text-muted);
}

.no-history-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--color-success-glow); }
  50% { box-shadow: 0 0 30px 8px var(--color-success-glow); }
}

.no-history-icon i {
  width: 32px;
  height: 32px;
  color: var(--color-success);
}

.no-history h4 {
  color: var(--color-text);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.no-history p {
  font-size: 0.9375rem;
}

.status-footer {
  text-align: center;
  margin-top: 48px;
  animation: cardAppear 0.6s var(--ease-out-expo) 0.6s both;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s var(--ease-out-expo);
  padding: 14px 24px;
  border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.footer-link:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
  border-color: var(--color-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.footer-link i {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-spring);
}

.footer-link:hover i {
  transform: scale(1.2);
}

.footer-credit {
  margin-top: 28px;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.footer-credit a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-credit a:hover {
  color: var(--color-text);
}

.loading {
  text-align: center;
  padding: 80px 20px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px var(--color-accent-glow);
}

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

.loading p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .status-container { padding: 32px 16px; }
  
  body::after { display: none; }
  
  .status-header {
    margin-bottom: 36px;
  }
  
  .status-header h1 { 
    font-size: 1.75rem; 
  }
  
  .logo-container span {
    font-size: 1.5rem;
  }
  
  .main-status { 
    padding: 36px 24px;
    border-radius: 20px;
  }
  
  .status-ring { 
    width: 72px; 
    height: 72px; 
  }
  
  .status-ring i { 
    width: 32px; 
    height: 32px; 
  }
  
  .main-status h2 {
    font-size: 1.25rem;
  }
  
  .incident-meta { 
    flex-direction: column; 
    gap: 10px; 
  }
  
  .service-item { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 14px; 
  }
  
  .section-header { 
    flex-direction: column; 
    gap: 16px; 
    align-items: flex-start; 
  }
  
  .uptime-badge {
    align-items: flex-start;
  }
  
  .footer-links { 
    flex-direction: column; 
    gap: 10px; 
  }
  
  .footer-link {
    width: 100%;
    justify-content: center;
  }
  
  .services-section,
  .history-section,
  .active-incident {
    padding: 22px;
    border-radius: 16px;
  }
}
