/*
Theme Name: AmPainSoc Exercises Child
Theme URI: https://ampainsoc.org/
Description: Child theme for the AmPainSoc Exercise Library. Adds custom layout for individual exercise posts (fact-box, numbered step-list, difficulty pills, exercise-grid for category and crossover landings) and supports the JSON-LD HowTo + ExerciseAction schema injected by functions.php.
Author: AmPainSoc
Author URI: https://ampainsoc.org/
Template: ampainsoc-theme
Version: 1.0.0
License: Proprietary
Text Domain: ampainsoc-exercises
*/

/* =============================================================
   IMPORTS — parent stylesheet is loaded automatically by WP via
   wp_enqueue_style('parent-style') in functions.php. Don't @import.
============================================================= */

/* =============================================================
   FACT BOX (Exercise Snapshot)
   Used at the top of every exercise post.
============================================================= */
.exercise-fact-box {
  background: #e6f4f2;
  border-left: 4px solid #2fa193;
  border-radius: 0 4px 4px 0;
  padding: 24px 26px;
  margin: 0 0 32px;
}
.exercise-fact-box h2 {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #217167;
  margin: 0 0 14px;
}
.exercise-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}
.exercise-fact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.exercise-fact-row .label {
  font-family: "Josefin Sans", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  font-weight: 700;
}
.exercise-fact-row .value {
  font-size: 15px;
  color: #000;
  font-weight: 700;
}

@media (max-width: 600px) {
  .exercise-fact-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   DIFFICULTY PILLS
   Added on cards, fact-box and inside body content.
============================================================= */
.diff-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: "Josefin Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}
.diff-pill.beginner { background: #d4f4dd; color: #1f7a3a; }
.diff-pill.intermediate { background: #fff3cd; color: #b07a00; }
.diff-pill.advanced { background: #fce0dc; color: #b3261e; }

/* =============================================================
   STEP LIST (numbered "How to" instructions)
   Replace the default <ol> when class .step-list is applied.
============================================================= */
.step-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 0 0 28px;
}
.step-list li {
  counter-increment: step-counter;
  padding: 18px 22px 18px 60px;
  position: relative;
  background: #fafafa;
  border-left: 4px solid #2fa193;
  margin-bottom: 12px;
  border-radius: 0 4px 4px 0;
  font-size: 16px;
  line-height: 1.7;
}
.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2fa193;
  color: #fff;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step-list li strong:first-child {
  display: block;
  font-family: "Josefin Sans", sans-serif;
  font-size: 16px;
  margin-bottom: 4px;
  color: #000;
}

/* =============================================================
   COMMON MISTAKES box
============================================================= */
.exercise-mistakes {
  border: 1px solid #f3d0cb;
  background: #fef7f5;
  padding: 22px 26px;
  margin: 0 0 28px;
  border-radius: 4px;
}
.exercise-mistakes h2 {
  font-family: "Josefin Sans", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b3261e;
  margin: 0 0 12px;
}
.exercise-mistakes ul {
  margin: 0;
  padding-left: 22px;
}
.exercise-mistakes li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* =============================================================
   EXERCISE GRID (Category & crossover listings)
============================================================= */
.exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.exercise-card {
  display: block;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.exercise-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.exercise-card .card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #e6f4f2;
  background-size: cover;
  background-position: center;
}
.exercise-card .card-body {
  padding: 14px 14px 16px;
}
.exercise-card .card-body .diff-pill {
  margin-bottom: 6px;
}
.exercise-card h3 {
  font-family: "Josefin Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 6px 0 0;
  color: #000;
  line-height: 1.3;
}
.exercise-card .card-meta {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* =============================================================
   EQUIPMENT FILTERS (used on category & crossover landings)
============================================================= */
.exercise-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}
.exercise-filters a {
  padding: 6px 14px;
  border: 1px solid #ececec;
  border-radius: 20px;
  font-family: "Josefin Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #333;
  transition: all 0.15s ease;
}
.exercise-filters a:hover {
  background: #e6f4f2;
  color: #217167;
  border-color: #c1e3df;
}
.exercise-filters a.active {
  background: #2fa193;
  color: #fff;
  border-color: #2fa193;
}

/* =============================================================
   FACT BOX VARIANT — duration / muscles / equipment as tags
============================================================= */
.muscle-tag, .equipment-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  font-family: "Josefin Sans", sans-serif;
  margin-right: 6px;
  margin-bottom: 4px;
}
.muscle-tag { background: #e6f4f2; color: #217167; }
.equipment-tag { background: #fff3cd; color: #b07a00; }

/* =============================================================
   INLINE NEWSLETTER (when used in body content)
============================================================= */
.exercise-inline-newsletter {
  border: 1px solid #ececec;
  border-radius: 4px;
  padding: 22px 26px;
  margin: 36px 0;
}
.exercise-inline-newsletter h3 {
  font-size: 18px;
  margin: 0 0 4px;
  font-family: "Josefin Sans", sans-serif;
}
.exercise-inline-newsletter p {
  font-size: 13px;
  color: #666;
  margin-bottom: 14px;
}

/* =============================================================
   PRINT STYLES (handy for trainers printing routines)
============================================================= */
@media print {
  .site-header, .footer, .exercise-inline-newsletter,
  .more-articles, .rate-post, .share-row { display: none !important; }
  .exercise-fact-box { border-left: 2px solid #000; }
  .step-list li::before { background: #000; }
}
