/* -----------------------------------------------------------------------------------
    File: maintenance.css
    Description: High-end premium styling for the Website Under Maintenance page.
    Project: Educal / iFlyStation
----------------------------------------------------------------------------------- */

:root {
  --bg-gradient: linear-gradient(135deg, #090a0f 0%, #121520 50%, #1a0f2b 100%);
  --primary-accent: #e47d00; /* iFlyStation Theme Orange */
  --primary-accent-rgb: 228, 125, 0;
  --secondary-accent: #6366f1; /* Indigo */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --card-bg: rgba(30, 41, 59, 0.45);
  --card-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --font-family: "Hind", sans-serif;
}

body.maintenance-body {
  font-family: var(--font-family);
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* Background floating particles/circles */
.bg-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-accent-rgb), 0.15) 0%, rgba(228, 125, 0, 0) 70%);
  animation: float-around infinite ease-in-out;
}

.particle-1 {
  width: 350px;
  height: 350px;
  top: -100px;
  left: -100px;
  animation-duration: 25s;
}

.particle-2 {
  width: 450px;
  height: 450px;
  bottom: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
  animation-duration: 30s;
  animation-delay: -5s;
}

.particle-3 {
  width: 250px;
  height: 250px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, rgba(236, 72, 153, 0) 70%);
  animation: float-center 20s infinite ease-in-out;
}

@keyframes float-around {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  50% {
    transform: translateY(40px) scale(1.1) rotate(180deg);
  }
}

@keyframes float-center {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-45%, -55%) scale(1.15);
  }
}

/* Main Container styling */
.maintenance-container {
  z-index: 10;
  width: 100%;
  max-width: 900px;
  padding: 20px;
  text-align: center;
  position: relative;
}

.maintenance-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 50px 40px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.maintenance-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-accent) 0%, var(--secondary-accent) 100%);
}

/* Logo and Header */
.maintenance-logo {
  max-width: 150px;
  height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 0 10px rgba(228, 125, 0, 0.2));
  transition: transform 0.5s ease;
}

.maintenance-logo:hover {
  transform: scale(1.05);
}

.maintenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(228, 125, 0, 0.1);
  border: 1px solid rgba(228, 125, 0, 0.3);
  color: var(--primary-accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 25px;
  animation: pulse-border 2s infinite;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-accent);
  border-radius: 50%;
  display: inline-block;
  animation: blink-dot 1.5s infinite;
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(228, 125, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(228, 125, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(228, 125, 0, 0);
  }
}

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

.maintenance-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--text-main);
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.maintenance-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Countdown Clock */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.countdown-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  min-width: 100px;
  padding: 15px;
  text-align: center;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.countdown-box:hover {
  transform: translateY(-5px);
  border-color: rgba(228, 125, 0, 0.2);
}

.countdown-num {
  font-size: 38px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 5px;
  display: block;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.countdown-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  display: block;
}

/* Form Styles */
.notify-form-wrapper {
  max-width: 500px;
  margin: 0 auto 30px auto;
}

.notify-form {
  position: relative;
  display: flex;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px;
  border-radius: 50px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.notify-form:focus-within {
  border-color: var(--primary-accent);
  box-shadow: 0 0 15px rgba(228, 125, 0, 0.15);
}

.notify-input {
  background: transparent;
  border: none;
  padding: 10px 20px;
  color: var(--text-main);
  flex-grow: 1;
  font-size: 15px;
  outline: none;
}

.notify-input::placeholder {
  color: #64748b;
}

.notify-btn {
  background: var(--primary-accent);
  color: #fff;
  border: none;
  padding: 0 25px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.notify-btn:hover {
  background: #f58c0c;
}

.notify-btn:active {
  transform: scale(0.97);
}

.notify-btn .btn-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
}

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

/* Response Toasts and Alerts */
.toast-msg {
  display: none;
  font-size: 14px;
  margin-top: 15px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  animation: fadeIn 0.4s ease forwards;
}

.toast-msg.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.toast-msg.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Secondary Actions Area */
.secondary-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.status-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.status-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.status-btn i {
  color: var(--primary-accent);
}

/* Social links */
.maintenance-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: #fff;
  background: var(--primary-accent);
  border-color: var(--primary-accent);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(228, 125, 0, 0.3);
}

/* Status Dialog / Modal styles */
.status-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease forwards;
}

.status-modal-content {
  background: #111422;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 35px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  position: relative;
}

.status-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.status-modal-close:hover {
  color: #fff;
}

.status-modal-icon {
  font-size: 40px;
  color: var(--primary-accent);
  margin-bottom: 20px;
  animation: pulse-icon 1.5s infinite ease-in-out;
}

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

.status-modal-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.status-modal-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Responsive details */
@media (max-width: 768px) {
  .maintenance-card {
    padding: 35px 25px;
  }
  
  .maintenance-title {
    font-size: 32px;
  }
  
  .countdown-container {
    gap: 12px;
  }
  
  .countdown-box {
    min-width: 80px;
    padding: 10px;
  }
  
  .countdown-num {
    font-size: 28px;
  }
  
  .notify-form {
    border-radius: 12px;
    flex-direction: column;
    background: transparent;
    border: none;
    gap: 10px;
    padding: 0;
  }
  
  .notify-form:focus-within {
    box-shadow: none;
  }
  
  .notify-input {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    width: 100%;
    padding: 12px 20px;
  }
  
  .notify-input:focus {
    border-color: var(--primary-accent);
  }
  
  .notify-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 0;
  }
}

/* -----------------------------------------------------------------------------------
   CSS Animation Area
----------------------------------------------------------------------------------- */
.animation-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 40px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.maintenance-core {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, var(--primary-accent) 0%, #a85800 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  z-index: 5;
  box-shadow: 0 0 35px rgba(var(--primary-accent-rgb), 0.6);
  animation: pulse-core 2s infinite ease-in-out;
}

.maintenance-core i {
  animation: wrench-wiggle 3s infinite ease-in-out;
  color: #fff;
}

.maintenance-anim-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed transparent;
  transition: all 0.3s ease;
}

.ring-1 {
  width: 120px;
  height: 120px;
  border-top-color: rgba(var(--primary-accent-rgb), 0.8);
  border-bottom-color: rgba(var(--primary-accent-rgb), 0.8);
  animation: rotate-clockwise 5s infinite linear;
}

.ring-2 {
  width: 165px;
  height: 165px;
  border-left-color: rgba(99, 102, 241, 0.7);
  border-right-color: rgba(99, 102, 241, 0.7);
  animation: rotate-counter-clockwise 7s infinite linear;
}

.ring-3 {
  width: 210px;
  height: 210px;
  border-top-color: rgba(236, 72, 153, 0.5);
  border-bottom-color: rgba(236, 72, 153, 0.5);
  animation: rotate-clockwise 12s infinite linear;
}

@keyframes pulse-core {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(var(--primary-accent-rgb), 0.6);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 50px rgba(var(--primary-accent-rgb), 0.9);
  }
}

@keyframes wrench-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-20deg); }
  75% { transform: rotate(20deg); }
}

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

@keyframes rotate-counter-clockwise {
  to { transform: rotate(-360deg); }
}

