@import url('https://fonts.googleapis.com/css2?family=Baloo+Tamma+2:wght@400..800&display=swap');

/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: "Baloo Tamma 2", system-ui;
    color: #000000;
}

/* BODY */
body {
    background-color: #000000;
    color: #E0E0E0;
    padding: 20px 20px 100px;
    width: 100%;
}

/* HEADER */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
}
.PPL{
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.PPL a{
  color: #fff;
  background: #1E1E1E;
  line-height: 0;
  padding: 12px 12px 10px;
  border: 1px solid #fff;
  border-radius: 4px;
  transition: .3s;
}
.PPL a:hover{
  color: #121212;
  background: #fff;
  border-color: #fff;
  border-radius: 8px;
  transition: .3s;
}

.bold{
    font-weight: bold;
}

/**/
/* Container dos cards */
.schedule-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px auto;
    gap: 20px;
    max-width: 1200px;
}

/* Estilo de cada card */
.workout-card {
    background-color: #1e1e1e;
    border: 2px solid #333;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s, border-color 0.3s;
    cursor: pointer;
    user-select: none;
    width: 80px;
}

.workout-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.workout-card h3 {
    margin-top: 0;
    font-size: .8rem;
    color: #4a90e2;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    transition: color 0.3s, text-decoration 0.3s;
}

.workout-card p {
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    margin: 10px 0 0 0;
    transition: color 0.3s;
}

/* Estilo especial para o card de "OFF" */
.workout-card.off-day {
    background-color: #2a2a2a;
    border: 2px dashed #555;
    cursor: default;
}

.workout-card.off-day:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.workout-card.off-day h3 {
    color: #888;
}

.workout-card.off-day p {
    color: #999;
    font-weight: normal;
    font-size: 1rem;
}

/* Estilo do Card Concluído */
.workout-card.completed {
    background-color: #28a745;
    border-color: #1e7e34;
    opacity: 0.8;
}

.workout-card.completed h3 {
    color: #ffffff;
    text-decoration: line-through;
}

.workout-card.completed p {
    color: #e0e0e0;
}

/* Estilo do Botão de Reset */
#reset-button {
    background-color: #3945e6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 30px auto;
    transition: background-color 0.3s, transform 0.3s;
}

#reset-button:hover {
    background-color: #222a8d;
    transform: scale(1.05);
}

.hidden {
    display: none;
}




/* SEÇÃO DE CARDS */
.sectionCards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Para responsividade */
}
.divsao{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  gap: 10px;
}

/* CARD */
.card {
    background-color: #3b3b3b;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
    width: 500px;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    
}

.mini_card {
    background-color: #3b3b3b;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* CARD HEADER */
.card_header {
    text-align: center;
    margin-bottom: 16px;
    height: 8vh;
}

.card_title {
    font-size: 1.8rem;
    color: #E0E0E0
}

/* SUBTITLES */
.card_subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    border-bottom: 1px solid #2E2E2E;
    margin-bottom: 10px;
    padding-bottom: 6px;
}
.card_stretching{
    height: max-content;
    
}

/* STRETCHING */
.stretching {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}


.stretching_name,
.stretching_sets,
.stretching_reps {
    color: #ffffff;
    
}
.stretching_name {
    font-weight: 500;
    width: 80%;
}
.stretching_sets{
    margin: auto;
    width: 10%;
    text-align: left;
}
.stretching_reps{
    width: 10%;
    text-align: right;
}

.card_exercises{
    margin-top: 20px;
}

/* EXERCISES */
.exercises ul {
    margin-top: 10px;
}

.exercise {
    margin-top: 12px;
    padding: 8px;
    background-color: #ffffff;
    border-radius: 8px;
}
.exercise_header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 3.5vh;
}
.youtubeIcon{
    margin-top: -0.5vh;
    height: 24px;
    width: auto;
    transition: 0.3s;
}
.exercise_header a:hover{
  opacity: 0.5;
  transform: scale(1.1);
  transition: 0.3s;
}

.exercise_name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #000000;
    line-height: 0.8;
    margin-top: 4px;
    text-transform: uppercase;
}
.exercise_subname{
    font-size: 10px;
    text-transform: uppercase;
}

.exercise_set {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dotted  #000;
}

.exercise_reps,
.exercise_type,
.exercise_range {
    font-size: 0.9rem;
    color: #000000;
}
.exercise_type{
    text-align: left;
    width: 40%;
}

.exercise_reps{
    width: 30%;
    text-align: center;
}

.exercise_range{
    width: 25%;
    text-align: right;
    
}


/* CSS */
:root{
  --switch-width: 52px;
  --switch-height: 32px;
  --knob-size: 28px;
  --track-padding: 2px;
  --off-bg: #e5e5ea;
  --on-bg: #464646;       
  --knob-bg: #ffffff;
  --shadow: 0 1px 2px rgba(0,0,0,0.25);
  --transition-fast: 220ms cubic-bezier(.2,.9,.3,1);
}
.switchAB{
    margin-top: 24px;
}

/* hide native checkbox but keep it in the accessibility tree */
.iphone-switch__input{
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* main label that contains track + knob */
.iphone-switch{
  display: inline-block;
  width: var(--switch-width);
  height: var(--switch-height);
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* rounded track */
.iphone-switch__track{
  position: absolute;
  inset: 0;
  border-radius: calc(var(--switch-height) / 2);
  background: var(--off-bg);
  transition: background var(--transition-fast);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.02);
}

/* knob */
.iphone-switch__knob{
  --knob-offset: calc(var(--track-padding));
  position: absolute;
  top: var(--track-padding);
  left: var(--track-padding);
  width: var(--knob-size);
  height: var(--knob-size);
  border-radius: 50%;
  background: var(--knob-bg);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 14px;
  line-height: 1;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  will-change: transform;
}

/* letter inside knob when off/on using pseudo-element */
.iphone-switch__knob::after{
  content: "A"; /* default (unchecked) */
  display: block;
  transform: translateZ(0);
  color: #000;
  -webkit-font-smoothing: antialiased;
  transition: opacity var(--transition-fast);
}

/* move knob to right and change track bg when checked */
.iphone-switch__input:checked + .iphone-switch .iphone-switch__track{
  background: var(--on-bg);
}

.iphone-switch__input:checked + .iphone-switch .iphone-switch__knob{
  transform: translateX(calc(var(--switch-width) - var(--knob-size) - var(--track-padding) * 2));
  box-shadow: 0 4px 6px rgba(0,0,0,0.18);
}

/* change letter when checked */
.iphone-switch__input + .iphone-switch .iphone-switch__knob::after{
  content: "A";
  
}
.iphone-switch__input:checked + .iphone-switch .iphone-switch__knob::after{
  content: "B";
  color: #000; /* opcional: cor diferente quando ligado (fica melhor em alguns designs) */
}

/* focus styles for keyboard accessibility */
.iphone-switch__input:focus + .iphone-switch{
  outline: none;
}
.iphone-switch__input:focus-visible + .iphone-switch .iphone-switch__knob{
  box-shadow: 0 0 0 4px rgba(52,199,89,0.18), var(--shadow);
}

.treino {
  opacity: 0;
  visibility: hidden;
  position: absolute;   /* mantém os dois no mesmo espaço */
}

.treino.show {
  opacity: 1;
  visibility: visible;
  position: relative;   /* volta o ativo pro fluxo normal */
}


/* reduced motion preference */
@media (prefers-reduced-motion: reduce){
  .iphone-switch__track,
  .iphone-switch__knob,
  .iphone-switch__knob::after{
    transition: none;
  }
}

@media (max-width: 1000px) {
    /* Aqui você coloca os estilos que deseja aplicar em telas menores que 1000px */
    body {
      padding: 20px 4px 60px;
      width: 100%;
      height: 100%;
  }
    .card_header {
      height: auto;
  }
}
