/* Styles specific to the English Gym page */


/* ======================================================
   ENGLISH GYM — CLEAN BODY-BASED LAYOUT
   Replaces old plan-based styles completely
====================================================== */

/* Page spacing */
.page-content.gym {
  padding: 4rem 1rem;
}

/* Header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 2rem auto 1.5rem;
  padding: 0 1rem;
}

.page-header h1 {
  font-size: 2rem;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.close-btn {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-medium);
  font-weight: 600;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  text-decoration: none;
}

.close-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* Intro */
.gym-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.subtitle {
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 700px;
  margin: 10px auto;
}

/* Main glass container */
.gym-container {
  display: flex;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-medium);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

/* LEFT: body parts */
.gym-tabs {
  width: 240px;
  display: flex;
  flex-direction: column;
}

.gym-tabs button {
  background: transparent;
  border: 2px solid var(--color-surface);
  color: var(--color-text);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-medium);
  margin-bottom: 1rem;
  cursor: pointer;
}

.gym-tabs button.active,
.gym-tabs button:hover {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: var(--color-bg);
  border-color: var(--color-primary);
}

/* RIGHT: content */
.gym-content {
  flex: 1;
}

/* Panels */
.body-panel {
  display: none;
}

.body-panel.active {
  display: block;
}

/* Panel header */
.panel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.panel-header h2 {
  margin: 0;
}

.muted {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Progress ring */
.chart {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(
    var(--color-secondary) var(--value),
    var(--color-surface) 0
  );
  position: relative;
}

.chart::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-text);
}

/* Muscle lists */
.muscle-breakdown {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
}

.muscle-breakdown.big li {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.muscle-breakdown.small li {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-left: 1rem;
  margin-bottom: 0.3rem;
}

/* Panel footer */
.panel-footer {
  margin-top: 1.5rem;
}

/* Buttons */
.btn-outline {
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-medium);
  font-weight: 600;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--color-secondary);
  color: var(--color-bg);
}

/* Mobile */
@media (max-width: 768px) {
  .gym-container {
    flex-direction: column;
  }

  .gym-tabs {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .gym-tabs button {
    flex: 1 1 45%;
  }
}

/* Compact philosophy line */
.gym-eyebrow {
  font-size: 1rem;
  line-height: 1.3;
  color: var(--color-muted);
  opacity: 0.75;
  margin: 0.5rem 0 0; /* THIS is the key */
  padding: 0;
  margin-top: 0.25rem;
}
.gym-cta {
  margin-top: 6.5rem;   /* ← THIS is the spacing you want */
}


/* ==============================
   GYM EXPLANATION BLOCK
============================== */

.gym-explain {
  max-width: 560px;
  margin: 5rem auto 4rem; /* big gap from previous section + centered */
  text-align: center;
}

/* Lead line – hook */
.gym-explain .lead {
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 1.8rem;
  color: rgba(255,255,255,0.95);
}

/* Regular paragraphs */
.gym-explain p {
  margin: 0 0 1.6rem;
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
}

/* Visual pause / rhythm break */
.explain-break {
  margin: 3.2rem auto;
  padding-top: 2.2rem;
  max-width: 420px;
  border-top: 1px solid rgba(120,140,255,0.35);
}

.explain-break p {
  font-size: 1.12rem;
  line-height: 1.75;
  margin-bottom: 1.4rem;
  color: rgba(255,255,255,0.82);
}

/* Final emphasis line */
.gym-explain .emphasis {
  margin-top: 2.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}



.gym-cta h2::after{
  display: none !important;
}


/* ==============================
   GYM WEEKLY PLAN (PROGRAM BLOCK)
============================== */

.gym-plan {
  max-width: 1100px;
  margin: 5.5rem auto 2.5rem;
  padding: 2rem;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-medium);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
}

.plan-head {
  text-align: center;
  margin-bottom: 1.8rem;
}

.plan-head h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
}

.plan-legend {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.legend-chip {
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
}

/* 7-day grid */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.9rem;
}

/* Day card */
.plan-day {
  position: relative;
  padding: 1rem 0.95rem 0.95rem;
  border-radius: calc(var(--radius-medium) - 2px);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  overflow: hidden;
  min-height: 160px;
}

.plan-day:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.24);
}

/* top row */
.day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  
}

.day-name {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--color-secondary);
}

.day-chip {
  font-size: 0.58rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
}

/* title + desc */
.day-title {
  font-size: 0.98rem;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.day-desc {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
}

/* intensity meter */
.day-meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
}

.day-meter span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0.95;
}

/* intensity states (1-3) */
.plan-day[data-intensity="1"] .day-meter span { width: 33%; opacity: 0.65; }
.plan-day[data-intensity="2"] .day-meter span { width: 66%; opacity: 0.85; }
.plan-day[data-intensity="3"] .day-meter span { width: 100%; }

/* Category colors (subtle, consistent with your theme vars) */
.day-chip.core, .legend-chip.core {
  border-color: rgba(120,140,255,0.35);
}
.day-chip.upper, .legend-chip.upper {
  border-color: rgba(120,255,190,0.30);
}
.day-chip.endurance, .legend-chip.endurance {
  border-color: rgba(255,190,120,0.30);
}
.day-chip.accessory, .legend-chip.accessory {
  border-color: rgba(255,120,220,0.28);
}
.day-chip.reset, .legend-chip.reset {
  border-color: rgba(255,255,255,0.18);
  opacity: 0.9;
}

/* little glow strip on the left (adds “program” vibe) */
.plan-day::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
  opacity: 0.55;
}

/* Footer note */
.plan-foot {
  margin-top: 1.6rem;
  text-align: center;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.plan-foot .muted {
  max-width: 760px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .plan-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .gym-plan {
    padding: 1.4rem;
  }
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-day {
    min-height: 150px;
  }
}

@media (max-width: 420px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

.plan-summary{
  margin: 1.8rem auto 3.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 760px;
}

.summary-item{
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-medium);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}

.summary-num{
  display:block;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.summary-label{
  display:block;
  margin-top: 0.15rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
}

@media (max-width: 768px){
  .plan-summary{ grid-template-columns: repeat(2, 1fr); }
}


/* ==============================
   GYM LEVELS BLOCK (CLICKABLE)
============================== */

.gym-levels{
  max-width: 900px;
  margin: 4.5rem auto 0;
  padding: 2rem;
  text-align: center;

  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-medium);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
}

.gym-levels h2{
  margin: 0 0 0.7rem;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
}

.gym-levels .subtitle{
  max-width: 680px;
  margin: 0.2rem auto 1.6rem;
}

/* New grid for clickable cards */
.gym-levels .level-grid{
  margin: 0 auto 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 860px;
}

/* Clickable card */
.gym-levels .level-card{
  display: block;
  padding: 1.05rem 1.05rem 1rem;
  text-align: left;
  text-decoration: none;
  color: inherit;

  border-radius: calc(var(--radius-medium) - 2px);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);

  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

/* subtle hover = clickable */
.gym-levels .level-card:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.24);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

/* left accent strip */
.gym-levels .level-card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
  opacity: 0.55;
}

/* top row = dot + title */
.gym-levels .level-card strong{
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

/* description line */
.gym-levels .level-card span{
  display: block;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
}

/* colored dots based on order (1-3) */
.gym-levels .level-card:nth-child(1) strong::before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(120,255,190,0.95);
  box-shadow: 0 0 0 4px rgba(120,255,190,0.14);
}
.gym-levels .level-card:nth-child(2) strong::before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,220,120,0.95);
  box-shadow: 0 0 0 4px rgba(255,220,120,0.14);
}
.gym-levels .level-card:nth-child(3) strong::before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,120,120,0.95);
  box-shadow: 0 0 0 4px rgba(255,120,120,0.14);
}

/* muted note (unchanged concept, cleaner spacing) */
.gym-levels .muted{
  max-width: 760px;
  margin: 0 auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* Responsive */
@media (max-width: 900px){
  .gym-levels{
    padding: 1.6rem;
  }
  .gym-levels .level-grid{
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}
