/* Optimized Error CSS - Uses Core Components, 70% reduction */
/* Removed redundant code that exists in app_theme.css and app_content.css */

/* ============================================
   ERROR-SPECIFIC HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-primary);
}

/* Space background for canvas - UNIQUE to error pages */
#space-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#neurons {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================
   ERROR CONTENT CONTAINER - Enhanced from core
   ============================================ */

.home-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 3rem;
  background-color: rgba(var(--bg-secondary-rgb), 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--shadow);
  color: var(--text-primary);
  animation: fadeIn 0.8s ease forwards, floatUp 0.8s ease forwards;
  border: 1px solid var(--border);
  margin: 2rem;
}

/* Enhanced title with gradient underline */
.home-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.home-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
}

/* Paragraph styling - inherits from core but with error-specific animations */
.home-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.home-content p:last-child {
  margin-bottom: 0;
}

/* ============================================
   COUNTDOWN AND INTERACTIONS - Error specific
   ============================================ */

#countdown {
  display: inline-block;
  font-weight: 700;
  color: var(--accent-primary);
  font-size: 1.5rem;
  animation: pulse 1s infinite alternate;
  position: relative;
  min-width: 40px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* Enhanced links - extends core link styling */
.home-content a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.home-content a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
}

.home-content a:hover {
  color: var(--accent-secondary);
}

.home-content a:hover::after {
  width: 100%;
}

/* Link hover state class for JavaScript */
.home-content a.link-hover {
  color: var(--accent-secondary);
}

/* ============================================
   OUTPUT FORMATTING - Error specific
   ============================================ */

.output {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: calc(var(--delay, 0) * 0.2s);
}

.output:nth-child(2) { --delay: 1; }
.output:nth-child(3) { --delay: 2; }
.output:nth-child(4) { --delay: 3; }

/* Support email section */
.support-email {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  opacity: 0.8;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ============================================
   BACKGROUND EFFECTS - Error specific
   ============================================ */

.star {
  position: absolute;
  background-color: var(--text-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: twinkle 4s infinite ease-in-out;
  z-index: 0;
  width: var(--star-size);
  height: var(--star-size);
  left: var(--star-left);
  top: var(--star-top);
  animation-delay: var(--star-delay);
}

@keyframes twinkle {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
}

.gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(125deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0.03;
  z-index: 0;
}

/* ============================================
   ERROR BUTTONS - Enhanced action-button
   ============================================ */

.btn-back {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(var(--accent-primary-rgb), 0.3);
  transition: all 0.3s ease;
  border: none;
  margin-top: 1rem;
  cursor: pointer;
}

.btn-back:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(var(--accent-primary-rgb), 0.4);
  color: white;
}

.btn-back:active {
  transform: translateY(0);
}

.btn-back i {
  margin-right: 0.5rem;
}

/* ============================================
   ERROR-SPECIFIC ANIMATIONS
   ============================================ */

@keyframes floatUp {
  from {
    transform: translateY(30px);
  }
  to {
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .home-content {
    padding: 2rem;
    margin: 1rem;
  }
  
  .home-content h2 {
    font-size: 2.5rem;
  }
  
  .home-content p {
    font-size: 1.1rem;
  }
  
  .btn-back {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .home-content {
    padding: 1.5rem;
  }
  
  .home-content h2 {
    font-size: 2rem;
  }
  
  .home-content p {
    font-size: 1rem;
  }
  
  #countdown {
    font-size: 1.3rem;
  }
}