/* ========================
   IOC Course - Access Blocked Page
   Dark premium theme with glassmorphism
   ======================== */

/* --- Design Tokens --- */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.15);
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --gradient-red: linear-gradient(135deg, #f87171, #ef4444, #dc2626);
  --gradient-subtle: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 60px rgba(239, 68, 68, 0.08);
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Background particles --- */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  animation: float linear infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  50% {
    transform: translateY(-120px) translateX(40px) scale(1.5);
  }
}

/* --- Page layout --- */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  text-align: center;
}

/* --- Shield icon --- */
.shield-icon {
  margin-bottom: 2rem;
  animation: shieldPulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.3));
}

@keyframes shieldPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.3));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(239, 68, 68, 0.45));
  }
}

/* --- Status badge --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--accent-red-glow);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fca5a5;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.6s ease-out 0.2s both;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* --- Title & Subtitle --- */
.page-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeSlideUp 0.6s ease-out 0.3s both;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 1rem;
  animation: fadeSlideUp 0.6s ease-out 0.4s both;
}

/* --- Error code --- */
.error-code {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
  margin-bottom: 2.5rem;
  letter-spacing: 0.1em;
  animation: fadeSlideUp 0.6s ease-out 0.5s both;
}

/* --- Contact card (glassmorphism) --- */
.contact-card {
  width: 100%;
  max-width: 560px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glow), 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: fadeSlideUp 0.6s ease-out 0.6s both;
}

.contact-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.contact-title svg {
  color: var(--accent-blue);
}

/* --- Contact grid --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.contact-item:hover {
  background: var(--surface-hover);
  border-color: var(--glass-border);
  transform: translateY(-2px);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gradient-subtle);
  color: var(--accent-purple);
  flex-shrink: 0;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  word-break: break-all;
  transition: color var(--transition-base);
}

a.contact-value:hover {
  color: var(--accent-blue);
}

/* --- Footer --- */
.page-footer {
  margin-top: 3rem;
  animation: fadeSlideUp 0.6s ease-out 0.8s both;
}

.page-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Animations --- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .error-code {
    font-size: 3.5rem;
  }
}