/* CSS Custom Properties */
:root {
  --primary-color: #f59e0b;
  --primary-dark: #d97706;
  --secondary-color: #6366f1;
  --background-color: #0f172a;
  --surface-color: #1e293b;
  --text-color: #f8fafc;
  --text-muted: #cbd5e1;
  --border-color: #334155;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --border-radius: 0.75rem;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

/* Base styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--background-color) 0%, #1e1b4b 100%);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Header styles */
header {
  padding: var(--spacing-md);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--surface-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.back-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

.back-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Main content */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.construction-container {
  max-width: 600px;
  width: 100%;
}

.construction-content {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: 0 8px 25px var(--shadow-color);
  border: 1px solid var(--border-color);
  animation: fadeInUp 0.8s ease-out;
}

.construction-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.construction-content h2 {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  font-weight: 400;
}

/* Construction icon with rotating gears */
.construction-icon {
  position: relative;
  height: 120px;
  margin: var(--spacing-lg) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gear {
  position: absolute;
  font-size: 2rem;
  animation: rotate 3s linear infinite;
}

.gear-1 {
  animation-duration: 2s;
  left: 20%;
}

.gear-2 {
  animation-duration: 3s;
  animation-direction: reverse;
}

.gear-3 {
  animation-duration: 2.5s;
  right: 20%;
}

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

/* Text content */
.construction-content p {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-muted);
  max-width: none;
}

/* Features section */
.features {
  margin: var(--spacing-xl) 0;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.features h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  text-align: center;
}

.features ul {
  list-style: none;
  padding: 0;
}

.features li {
  padding: var(--spacing-xs) 0;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* Progress bar */
.progress-bar {
  position: relative;
  background: var(--border-color);
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: var(--spacing-lg);
}

.progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--primary-color), var(--success-color));
  border-radius: 6px;
  animation: progressPulse 2s ease-in-out infinite;
}

.progress-text {
  position: absolute;
  top: -30px;
  right: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

@keyframes progressPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .construction-content {
    padding: var(--spacing-lg);
  }
  
  .construction-icon {
    height: 80px;
  }
  
  .gear {
    font-size: 1.5rem;
  }
  
  .features {
    padding: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  header {
    padding: var(--spacing-sm);
  }
  
  main {
    padding: var(--spacing-sm);
  }
  
  .construction-content {
    padding: var(--spacing-md);
  }
  
  .construction-content h1 {
    font-size: 1.75rem;
  }
  
  .construction-content h2 {
    font-size: 1.25rem;
  }
}
