/* Import Google Fonts to match the app */
@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700');

/* CSS Variables matching the app's color scheme */
:root {
  --grey-lightest: #F8F9FA;
  --grey-light: #E9ECEF;
  --grey: #6C757D;
  --grey-dark: #495057;
  --grey-darker: #343A40;
  --white: #FFFFFF;
  --color-primary: #FF5722;
  --color-primary-hover: #E85221;
  --color-primary-dark: #D84315;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--grey-lightest);
  color: var(--grey-dark);
  font: 14px/1.25 'Montserrat', sans-serif;
  min-height: 100vh;
  overflow: hidden;
}

/* Main container */
.th-maintenance-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, var(--color-primary) 0%, rgba(255, 87, 34, 0.6) 20%, var(--grey-lightest) 60%, #F1F3F4 100%);
  position: relative;
}

.th-maintenance-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 87, 34, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 87, 34, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Content container */
.th-maintenance-content {
  text-align: center;
  max-width: 500px;
  width: 100%;
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 16px;
  padding: 60px 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Icon section */
.th-maintenance-icon {
  margin-bottom: 40px;
}

.th-gear {
  display: inline-block;
  color: var(--color-primary);
  width: 128px;
  height: 128px;
}

.th-gear img {
  width: 100%;
  height: 100%;
}

/* Header section */
.th-maintenance-header {
  margin-bottom: 32px;
}

.th-maintenance-header h1 {
  font-size: 32px;
  font-weight: 600;
  color: var(--grey-darker);
  margin-bottom: 12px;
  line-height: 1.2;
}

.th-maintenance-header h2 {
  font-size: 18px;
  font-weight: 400;
  color: var(--grey);
  line-height: 1.4;
}

/* Message section */
.th-maintenance-message {
  margin-bottom: 40px;
}

.th-maintenance-message p {
  font-size: 16px;
  color: var(--grey-dark);
  line-height: 1.6;
  margin: 0;
}

/* Status section */
.th-maintenance-status {
  margin-bottom: 40px;
}

.th-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 87, 34, 0.08);
  padding: 16px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 87, 34, 0.15);
}

.th-status-dot {
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
}

.th-status-indicator span {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary-dark);
}

/* Footer section */
.th-maintenance-footer {
  margin-top: 20px;
}

.th-maintenance-footer p {
  font-size: 14px;
  color: var(--grey);
  font-weight: 400;
}

/* Animations */
.th-spin {
  animation: th-spin 3s linear infinite;
}

.th-pulse {
  animation: th-pulse 2s ease-in-out infinite;
}

@keyframes th-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes th-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* Fade in animation for content */
.th-maintenance-content {
  animation: th-fadeInUp 0.8s ease-out;
}

@keyframes th-fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media screen and (max-width: 767px) {
  .th-maintenance-container {
    padding: 16px;
  }

  .th-maintenance-content {
    padding: 40px 24px;
    border-radius: 12px;
  }

  .th-maintenance-header h1 {
    font-size: 24px;
  }

  .th-maintenance-header h2 {
    font-size: 16px;
  }

  .th-maintenance-message p {
    font-size: 14px;
  }

  .th-gear {
    width: 96px;
    height: 96px;
  }

  .th-status-indicator {
    padding: 12px 20px;
    gap: 10px;
  }
}

@media screen and (max-width: 575px) {
  .th-maintenance-content {
    padding: 32px 20px;
  }

  .th-maintenance-header h1 {
    font-size: 20px;
  }

  .th-maintenance-header h2 {
    font-size: 14px;
  }

  .th-gear {
    width: 64px;
    height: 64px;
  }

  .th-status-indicator {
    padding: 10px 16px;
    font-size: 12px;
  }

  .th-status-dot {
    width: 8px;
    height: 8px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .th-maintenance-content {
    border: 2px solid var(--grey-dark);
  }

  .th-status-indicator {
    border: 2px solid var(--color-primary);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .th-spin,
  .th-pulse,
  .th-maintenance-content {
    animation: none;
  }
}