/* 
 * css/Exercises.css
 * Styled and themed for Exercises Overview Page
 * Professional Light Medical Theme - Dr. Darshan Bafna Orthopaedics
 */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

/* --- PRELOADER STYLING --- */
.Exercises-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #2d3748;
  overflow: hidden;
  font-family: "Outfit", sans-serif;
}

.Exercises-preloader-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(13, 202, 240, 0.08) 0%,
    rgba(0, 123, 191, 0) 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
}

.Exercises-loader-container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.Exercises-scanner-hologram {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 25px auto;
  border-radius: 50%;
  border: 2px dashed rgba(0, 76, 128, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: Exercises-pulseOutline 3s infinite ease-in-out;
}

.Exercises-scanner-hologram::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(0, 123, 191, 0.3);
  animation: Exercises-rotateCW 8s infinite linear;
}

.Exercises-scanner-hologram::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px double #007bbf;
  border-left-color: transparent;
  border-right-color: transparent;
  animation: Exercises-rotateCCW 4s infinite linear;
}

.Exercises-joint-icon {
  font-size: 2.5rem;
  color: #007bbf;
  filter: drop-shadow(0 0 8px rgba(0, 123, 191, 0.4));
  animation: Exercises-glowPulse 2s infinite ease-in-out;
}

.Exercises-scanner-line {
  position: absolute;
  width: 130px;
  height: 4px;
  background: linear-gradient(
    90deg,
    rgba(13, 202, 240, 0) 0%,
    #007bbf 50%,
    rgba(13, 202, 240, 0) 100%
  );
  top: 50%;
  left: 8px;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 123, 191, 0.5);
  animation: Exercises-scanMotion 2.2s infinite ease-in-out;
}

.Exercises-loader-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 5px;
  text-transform: uppercase;
  color: #001f62;
}

.Exercises-loader-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #718096;
  margin-bottom: 25px;
}

.Exercises-loader-progress-container {
  width: 250px;
  background: #edf2f7;
  border: 1px solid rgba(0, 76, 128, 0.1);
  height: 6px;
  border-radius: 3px;
  margin: 0 auto 12px auto;
  overflow: hidden;
  position: relative;
}

.Exercises-loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #004c80 0%, #007bbf 100%);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.Exercises-loader-percent {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #007bbf;
  margin-bottom: 15px;
}

.Exercises-loader-log {
  font-family: monospace;
  font-size: 0.8rem;
  color: #4a5568;
  height: 20px;
  letter-spacing: 1px;
}

.Exercises-fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes Exercises-pulseOutline {
  0%,
  100% {
    border-color: rgba(0, 76, 128, 0.25);
  }
  50% {
    border-color: rgba(0, 123, 191, 0.6);
  }
}

@keyframes Exercises-rotateCW {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes Exercises-rotateCCW {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

@keyframes Exercises-glowPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(0, 123, 191, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(0, 123, 191, 0.7));
  }
}

@keyframes Exercises-scanMotion {
  0%,
  100% {
    top: 10%;
  }
  50% {
    top: 90%;
  }
}

/* --- MAIN PAGE CONTENT WRAPPER --- */
.Exercises-wrapper {
  background-color: #f7fafc;
  color: #2d3748;
  font-family: "Outfit", sans-serif;
  min-height: 100vh;
  padding: 120px 0 60px 0;
  position: relative;
  overflow-x: hidden;
}

/* Decorative grid or gradient backdrop */
.Exercises-wrapper::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  top: 15%;
  right: -80px;
  background: radial-gradient(
    circle,
    rgba(13, 202, 240, 0.08) 0%,
    rgba(13, 202, 240, 0) 75%
  );
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.Exercises-wrapper::after {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  bottom: 10%;
  left: -100px;
  background: radial-gradient(
    circle,
    rgba(0, 76, 128, 0.05) 0%,
    rgba(0, 76, 128, 0) 75%
  );
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Section Header Typography */
.Exercises-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  color: #007bbf;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.Exercises-title {
  color: #001f62;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-size: 2.2rem;
  position: relative;
}

.Exercises-intro-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 31, 98, 0.04);
  padding: 20px 30px;
  border: 1px solid rgba(0, 76, 128, 0.05);
  z-index: 1;
  position: relative;
}

.Exercises-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #001f62 0%, #007bbf 100%);
  margin: 25px auto 0 auto;
  border-radius: 2px;
}

/* --- EXERCISES GRID AND CARDS --- */
.Exercises-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.Exercises-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.Exercises-card {
  background: #ffffff;
  border: 1px solid rgba(0, 76, 128, 0.08);
  border-radius: 18px;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 31, 98, 0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.Exercises-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #001f62 0%, #007bbf 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.Exercises-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 31, 98, 0.08);
  border-color: rgba(0, 123, 191, 0.25);
}

.Exercises-card:hover::before {
  opacity: 1;
}

/* Icon / Graphic Container for Cards */
.Exercises-card-icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: rgba(13, 202, 240, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #007bbf;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.Exercises-card:hover .Exercises-card-icon-wrapper {
  background-color: #007bbf;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 123, 191, 0.3);
}

.Exercises-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #001f62;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.Exercises-card:hover .Exercises-card-title {
  color: #007bbf;
}

.Exercises-card-description {
  font-size: 0.95rem;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* CTA Arrow Button Style inside Cards */
.Exercises-card-cta {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: #007bbf;
  transition: all 0.3s ease;
}

.Exercises-card-cta i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.Exercises-card:hover .Exercises-card-cta {
  color: #001f62;
}

.Exercises-card:hover .Exercises-card-cta i {
  transform: translateX(5px);
}

/* Footer bottom quote layout */
.Exercises-quote-banner {
  background: linear-gradient(
    135deg,
    rgba(0, 31, 98, 0.02) 0%,
    rgba(0, 123, 191, 0.02) 100%
  );
  border-radius: 16px;
  border: 1px solid rgba(0, 76, 128, 0.05);
  padding: 30px;
  max-width: 800px;
  margin: 50px auto 0 auto;
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .Exercises-wrapper {
    padding: 100px 0 40px 0;
  }
  .Exercises-title {
    font-size: 1.8rem;
  }
  .Exercises-card {
    padding: 24px;
  }
}
