@import '/themes.css';

.navigation-exercises {
  flex: 1;  /* Added to make it share width equally */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-100);
}

.navigation-home,
.navigation-nutrition,
.navigation-about,
.navigation-prizes {
  color: var(--text-primary);
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: color 0.3s ease;
}

.navigation-home::after,
.navigation-nutrition::after,
.navigation-about::after,
.navigation-prizes::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-100);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navigation-home:hover a,
.navigation-nutrition:hover a,
.navigation-about:hover a,
.navigation-prizes:hover a {
  background-color: transparent;
  color: var(--accent-100);
}

.navigation-home:hover::after,
.navigation-nutrition:hover::after,
.navigation-about:hover::after,
.navigation-prizes:hover::after {
  width: 100%;
}

.exercises-page {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-height: 80vh;
  height: fit-content;
  max-width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  overflow-wrap: normal;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/assets/exercises-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.exercises-page-greeting {
  width: 100%;
  min-height: 70%;
  display: flex;
  margin-top: 5%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  gap: 20px;
  margin-bottom: 2rem;
}

.exercises-page-greeting h1 {
  text-align: center;
  max-width: 80%;
  margin: 0 auto;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.4;
  color: var(--accent-100);
}

.exercises-page-greeting h2 {
  text-align: center;
  max-width: 80%;
  margin: 1rem auto 0;
  font-size: clamp(1rem, 3vw, 1.5rem);
  line-height: 1.4;
}

/*User Content*/
.exercises-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: fit-content;
  width: 100%;
  gap: 2rem;
  padding: 2rem;
  box-sizing: border-box;
}

.exercises-user-workout,
.exercises-user-at-home,
.exercises-user-strength,
.exercises-user-weight-loss,
.exercises-user-mind-body {
    margin: 0 auto;
    padding: 0 1rem;
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
}

.exercises-user-workout h1,
.exercises-user-at-home h1,
.exercises-user-strength h1,
.exercises-user-weight-loss h1,
.exercises-user-mind-body h1 {
    color: var(--accent-100);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.exercises-user-workout b,
.exercises-user-at-home b,
.exercises-user-strength b,
.exercises-user-weight-loss b,
.exercises-user-mind-body b {
    color: var(--accent-100);
}

.workout-cards,
.exercises-user-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 2rem;
}

#workout-card-three-day,
#workout-card-four-day,
#workout-card-five-day,
#at-home-card-upper-body,
#at-home-card-lower-body,
#at-home-card-full-body,
#strength-upper-body,
#strength-lower-body,
#strength-full-body,
#weight-loss-cardio,
#weight-loss-aerobics,
#weight-loss-hiit,
#mind-body-yoga,
#mind-body-sleep,
#mind-body-stress {
    background: var(--accent-10);
    border-radius: 1rem;
    padding: 1.5rem;
    color: var(--text-primary);
    box-shadow: 0 4px 6px var(--bg-10);
    transition: all 0.3s ease;
    min-height: 13rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

#workout-card-three-day:hover,
#workout-card-four-day:hover,
#workout-card-five-day:hover,
#at-home-card-upper-body:hover,
#at-home-card-lower-body:hover,
#at-home-card-full-body:hover,
#strength-upper-body:hover,
#strength-lower-body:hover,
#strength-full-body:hover,
#weight-loss-cardio:hover,
#weight-loss-aerobics:hover,
#weight-loss-hiit:hover,
#mind-body-yoga:hover,
#mind-body-sleep:hover,
#mind-body-stress:hover {
    transform: translateY(-5px);
    background: var(--accent-20);
    cursor: pointer;
}

#workout-card-three-day::before,
#workout-card-four-day::before,
#workout-card-five-day::before,
#at-home-card-upper-body::before,
#at-home-card-lower-body::before,
#at-home-card-full-body::before,
#strength-upper-body::before,
#strength-lower-body::before,
#strength-full-body::before,
#weight-loss-cardio::before,
#weight-loss-aerobics::before,
#weight-loss-hiit::before,
#mind-body-yoga::before,
#mind-body-sleep::before,
#mind-body-stress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 50% auto;
    border-radius: 1rem;
    z-index: 0;
    opacity: 0.75;
}

#workout-card-three-day::before {
    background-image: url('/exercises/assets/three-day-split.png');
}

#workout-card-four-day::before {
    background-image: url('/exercises/assets/four-day-split.png');
}

#workout-card-five-day::before {
    background-image: url('/exercises/assets/five-day-split.png');
}

#at-home-card-upper-body::before {
    background-image: url('/exercises/assets/at-home-upper-body.png');
}

#at-home-card-lower-body::before {
    background-image: url('/exercises/assets/at-home-lower-body.png');
}

#at-home-card-full-body::before {
    background-image: url('/exercises/assets/at-home-full-body.png');
}

#strength-upper-body::before {
    background-image: url('/exercises/assets/upper-body.png');
}

#strength-lower-body::before {
    background-image: url('/exercises/assets/lower-body.png');
}

#strength-full-body::before {
    background-image: url('/exercises/assets/full-body.png');
}

#weight-loss-cardio::before {
    background-image: url('/exercises/assets/cardio.png');
}

#weight-loss-aerobics::before {
    background-image: url('/exercises/assets/aerobics.png');
}

#weight-loss-hiit::before {
    background-image: url('/exercises/assets/hiit.png');
}

#mind-body-yoga::before {
    background-image: url('/exercises/assets/yoga.png');
}

#mind-body-sleep::before {
    background-image: url('/exercises/assets/sleep.png');
}

#mind-body-stress::before {
    background-image: url('/exercises/assets/stress-regulation.png');
}

.card-title {
    color: var(--accent-100);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-description {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 50%;
    position: relative;
    z-index: 1;
}

.exercise-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-10);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.exercise-popup-overlay.show {
    background-color: var(--bg-80);
}

.exercise-popup-content {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    width: fit-content;
    max-width: 60vw;
    position: relative;
    border: 1px solid var(--accent-30);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: fit-content;
    max-height: 90vh;
    box-sizing: border-box;
    overflow-y: scroll;
    overflow-x: hidden;
}

.exercise-popup-content.show {
    opacity: 1;
    transform: translateY(0);
}

.exercise-popup-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.exercise-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--accent-100);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.exercise-popup-content h2 {
    color: var(--accent-100);
    margin: 0.5rem;
    font-size: 1.8rem;
}

.exercise-popup-content p {
    color: var(--text-primary);
    margin: 0.5rem;
    flex-grow: 1;
}

.exercise-popup-content b {
    color: var(--accent-100);
}

.exercise-popup-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: auto;
    padding-bottom: 1rem;
    width: 100%;
}

.exercise-popup-button {
    background-color: var(--accent-100);
    border: none;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    font-size: 1rem;
    box-shadow: 0 4px 6px var(--bg-10);
}

.exercise-popup-button:hover {
    background-color: var(--accent-90);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-40);
}

.exercise-popup-button:disabled:hover {
    background-color: var(--accent-100);
    transform: none;
    box-shadow: none;
}

.exercise-popup-buttons:has(:only-child) {
    grid-template-columns: 1fr;
}

.exercise-popup-image {
    width: 100%;
    max-width: 85vw !important;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.exercise-popup-image img {
    width: auto;
    object-fit: contain;
    max-height: 45vh;
    max-width: 85vw !important;
}

.homepage {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.workout-overview {
    width: 80%;
    color: var(--text-primary);
}

.overview-container h1 {
    text-align: center;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    
}

.overview-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.overview-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.overview-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.schedule-day {
    background: var(--accent-05);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.schedule-day.clickable {
    cursor: pointer;
    background: var(--accent-30);
}

.schedule-day.clickable:hover {
    background: var(--accent-50);
    transform: translateY(-2px);
}

.schedule-day a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.schedule-day h3 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.schedule-day p {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.current-day {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-primary);
    color: var(--text-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.workout-content {
    width: 80%;
    border-radius: 20px;
    color: var(--text-primary);
    text-align: center;
    margin: 0 auto;
}

.workout-header {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-primary);
    margin-top: 0px;
    align-items: center;
}

.workout-header h1 {
    width: 80%;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    margin: 0 auto;
}

.workout-header p {
    color: var(--text-primary);
}

.workout-header p b {
    color: var(--accent-primary);
}

.workout-description {
    margin: 0 auto;
    line-height: 1.6;
}

/* Workout sections styling */
.workout-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.workout-section h2 {
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

#main {
    background: var(--accent-10);
}

.exercise-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exercise-item {
    display: grid;
    grid-template-columns: 3fr 1fr;
    justify-content: space-between;
    align-items: center;
    background: var(--accent-10);
    border-radius: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.exercise-details {
    flex: 1;
    min-width: 50%;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.exercise-details h3 {
    color: var(--accent-100);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.exercise-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exercise-info-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: flex-start;
}

.exercise-info-label {
    color: var(--accent-primary);
    font-weight: bold;
}

.exercise-info-description {
    color: var(--text-primary);
}

.exercise-visual {
    flex: 1;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1.5rem;
}

.exercise-visual img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: cover;
}

.video-guide-btn {
    background-color: var(--accent-100);
    color: var(--text-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.video-guide-btn:hover {
    background-color: var(--accent-80);
}

.workout-footer {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.complete-workout-btn,
.save-for-later-btn,
.complete-setup-btn {
    min-width: 160px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    box-sizing: border-box;
}

.complete-workout-btn,
.complete-setup-btn {
    background-color: var(--accent-100);
    color: var(--bg-primary);
}

.complete-workout-btn:hover,
.complete-setup-btn:hover {
    background-color: var(--accent-deeper);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-40);
}

.save-for-later-btn {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.save-for-later-btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--text-30);
}

.complete-workout-btn:active,
.save-for-later-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.strength-training {
  max-width: 60vw;
  color: var(--text-primary);
  margin-bottom: 5%;
}

.strength-training-header,
#workout-commitment,
#sleep-final-message-title {
  text-align: center;
}

.strength-training-header h1,
.strength-training-content h1,
.strength-training-content h2,
.strength-training-content h3,
.strength-training-content h4,
.strength-exercise-category h3 {
  color: var(--accent-primary);
}

.strength-training-header p,
.strength-training-content p,
.strength-training-content ul,
.strength-training-content ol {
  color: var(--text-primary);
}

.strength-training-content-anatomy-image img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 1rem;
  border: 0.5rem solid var(--accent-primary);
}

.strength-training-content-anatomy-image p {
  color: var(--accent-primary);
}

.strength-training-content-anatomy-image {
    width: 70%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 5% auto;
}

#strength-exercise-list {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.strength-exercise-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: 1rem;
    width: 80%;
}

.strength-exercise-button {
    background-color: var(--accent-30);
    border: none;
    color: var(--text-primary);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    height: 100%;
    max-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px var(--bg-10);
    padding: 0.5rem;
}

.strength-exercise-button p {
    font-size: 1rem;
    margin: 0;
}

.strength-exercise-button:hover {
    background-color: var(--accent-70);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-40);
}

.strength-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

#workout-guide-button {
  font-size: 1.25rem;
  padding: 1rem;
  margin-bottom: 0px;
  box-sizing: border-box;
}

#workout-guide-indicator-container {
  margin-bottom: 0px;
}

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

.calendar-day.disabled {
    cursor: not-allowed;
}

@media (max-width: 768px) {
  .exercise-popup-content {
    max-width: 90%;
  }

  .exercises-user {
    padding: 1rem;
  }

  .workout-section {
    padding: 1rem;
  }

  .exercise-item {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }

  .exercise-info-row {
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  }

  .strength-training {
    max-width: 80vw;
  }

  .strength-section {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .exercises-user {
    padding: 0;
  }

  .exercise-item {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1rem;
  } 

  .strength-training {
    max-width: 90vw;
  }
}