:root {
  /* Premium Pastel Palette (Slightly more vibrant) */
  --primary-hue: 210;
  --primary-color: #3B82F6;
  /* Was #4A90E2 - brighter blue */
  --primary-soft: #EFF6FF;

  --bg-body: #F0F4F8;
  /* Was #F5F7FA - slightly cooler/fresher */
  --bg-surface: #FFFFFF;
  --bg-surface-glass: rgba(255, 255, 255, 0.95);

  /* Text Colors */
  --text-primary: #0F172A;
  /* Was #1A2B3C - deeper navy */
  --text-secondary: #475569;
  /* Was #5C6F84 */
  --text-tertiary: #94A3B8;

  /* Gradients (More pop) */
  --gradient-primary: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
  --gradient-success: linear-gradient(135deg, #5EEAD4 0%, #2DD4BF 100%);
  --gradient-warm: linear-gradient(135deg, #FDBA74 0%, #FB923C 100%);
  --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);

  /* Spacing Scale (8pt Grid) */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  /* Radius (Soft & Friendly) */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  /* Standard card radius */
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Shadows (Soft Apple-like depth) */
  --shadow-xs: 0 2px 8px rgba(148, 163, 184, 0.08);
  --shadow-sm: 0 4px 16px rgba(148, 163, 184, 0.1);
  --shadow-md: 0 12px 32px rgba(148, 163, 184, 0.14);
  --shadow-lg: 0 20px 48px rgba(148, 163, 184, 0.18);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.02);

  /* Animation Tokens (iOS-style) */
  --duration-instant: 150ms;
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 400ms;

  --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-bounce-soft: cubic-bezier(0.34, 1.25, 0.64, 1);

  /* Skill Colors (More vibrant pastels) */
  --color-motor: #7DD3FC;
  /* Was #A8D5E2 - fresher blue */
  --color-speech: #86EFAC;
  /* Was #B8E6B8 - brighter green */
  --color-attention: #FDBA74;
  /* Was #FFD4A3 - warmer orange */
  --color-sensory: #C4B5FD;
  /* Was #C5B4E3 - richer purple */
  --color-emotion: #FDA4AF;
  /* Was #FFC09F - softer pink/red */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Typography Scale */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Layout */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-lg);
}

/* Header */
.app-header {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-md) 0;
}

.header-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 32px;
  width: auto;
  border-radius: 8px;
  /* Soften logo corners if needed */
}

/* Hamburger Button (hidden on desktop) */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.burger-btn:active {
  transform: scale(0.95);
}

.burger-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-smooth);
}

/* Burger animation when open */
.burger-btn.active .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  /* Below menu (1001) but above content */
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: none;
  /* Allow clicks to pass through to menu */
}

/* Navigation (Clean Simple Pills) */
.nav-tabs {
  display: flex;
  gap: 4px;
  /* Minimal gap */
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
  justify-content: space-between;
  /* Distribute across width */
}

.nav-tab {
  padding: 8px 10px;
  /* Compact padding */
  border-radius: var(--radius-pill);
  font-size: 13px;
  /* Slightly smaller text */
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  flex: 1;
  /* Distribute space evenly */
  text-align: center;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.03);
}

.nav-tab.active {
  background: var(--text-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

/* Exercise Card (Premium Neumorphism) */
.exercise-card-enhanced {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all var(--duration-fast) var(--ease-smooth);
  position: relative;
  /* For absolute positioning of checkmark */
  overflow: hidden;
}

.exercise-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Completed Checkmark Circle */
.status-check-circle {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 28px;
  height: 28px;
  background: var(--gradient-success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  animation: scaleIn var(--duration-fast) var(--ease-bounce-soft);
}

.exercise-card-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.exercise-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.exercise-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

/* Description with toggle between short and full */
.exercise-card-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
  margin: 0;
}

.desc-short {
  display: inline;
}

.desc-full {
  display: none;
}

.exercise-card-enhanced.expanded .desc-short {
  display: none;
}

.exercise-card-enhanced.expanded .desc-full {
  display: inline;
}

/* Goal text in details section */
.detail-goal {
  margin-bottom: var(--space-md);
}

.goal-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-body);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
  font-style: normal;
}

/* Goal in header (collapsed state) */
.exercise-card-goal-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-body);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
  font-style: normal;
  margin-top: var(--space-sm);
  transition: opacity var(--duration-fast) var(--ease-smooth),
    max-height var(--duration-fast) var(--ease-smooth);
}

.exercise-card-enhanced.expanded .exercise-card-goal-inline {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Exercise Details (Expandable Section) */
.exercise-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height var(--duration-normal) var(--ease-smooth),
    opacity var(--duration-fast) var(--ease-smooth),
    transform var(--duration-normal) var(--ease-smooth);
}

.exercise-card-enhanced.expanded .exercise-details {
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
}

.exercise-details-content {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: var(--space-md);
  animation: fadeInUp var(--duration-fast) var(--ease-smooth);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-section {
  margin-bottom: var(--space-lg);
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-sm) 0;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.detail-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Tags (Wrapping Chips) */
.exercise-card-tags-top {
  display: flex;
  flex-wrap: wrap;
  /* Allow wrapping */
  gap: 6px;
  /* Tighter gap */
  margin-bottom: var(--space-sm);
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  /* Compact padding */
  border-radius: var(--radius-pill);
  font-size: 12px;
  /* Compact font */
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.skill-tag:hover {
  transform: scale(1.02);
}

/* Buttons (Modern Gradient) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
  gap: 8px;
  position: relative;
}

.btn:active {
  transform: scale(0.97);
  /* Subtle press effect */
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1.5px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-body);
  border-color: rgba(148, 163, 184, 0.3);
}

/* Status Badges */
.exercise-status-badge.completed {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #E6FFFA;
  color: #2C7A7B;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

/* ========================================
   ANIMATIONS (iOS-style)
   ======================================== */

/* Fade in from bottom (for scroll-triggered elements) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Simple fade in (for immediate content) */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Gentle scale in */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Utility classes for animations */
.fade-in {
  animation: fadeIn var(--duration-fast) var(--ease-smooth) forwards;
}

.fade-in-up {
  animation: fadeInUp var(--duration-normal) var(--ease-soft) forwards;
  opacity: 0;
  /* Start hidden */
}

.scale-in {
  animation: scaleIn var(--duration-fast) var(--ease-soft) forwards;
}

/* Scroll-triggered animation (will be added via JS) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-normal) var(--ease-soft),
    transform var(--duration-normal) var(--ease-soft);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for lists */
.stagger-1 {
  animation-delay: 50ms;
}

.stagger-2 {
  animation-delay: 100ms;
}

.stagger-3 {
  animation-delay: 150ms;
}

.stagger-4 {
  animation-delay: 200ms;
}

.stagger-5 {
  animation-delay: 250ms;
}

.stagger-6 {
  animation-delay: 300ms;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    position: relative;
  }

  /* Show burger button on mobile */
  .burger-btn {
    display: flex;
  }

  /* Hide navigation by default on mobile */
  .nav-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-surface);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    /* Above overlay */
    transition: right var(--duration-normal) var(--ease-smooth);
    padding: var(--space-xl) var(--space-lg);
  }

  .nav-container.active {
    right: 0;
  }

  .nav-tabs {
    flex-direction: column;
    gap: var(--space-sm);
    padding: 0;
    background: transparent;
    margin-top: var(--space-xxl);
  }

  .nav-tab {
    width: 100%;
    padding: var(--space-md);
    text-align: left;
    font-size: 16px;
    border-radius: var(--radius-md);
  }

  .nav-tab.active {
    background: var(--primary-soft);
    color: var(--primary-color);
  }

  .exercise-card-title-row {
    flex-direction: column-reverse;
    gap: var(--space-xs);
  }

  .exercise-card-tags-top {
    align-self: flex-start;
    margin-bottom: var(--space-xs);
  }
}

/* Rating Buttons (Modern Cards) */
.rating-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.rating-btn {
  background: var(--bg-surface);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.rating-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.rating-btn-icon {
  font-size: 32px;
  margin-bottom: var(--space-xs);
}

.rating-btn-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Rating Colors */
.rating-btn-red:hover {
  background: #FFF5F5;
  border-color: #FC8181;
}

.rating-btn-yellow:hover {
  background: #FFFFF0;
  border-color: #F6E05E;
}

.rating-btn-green:hover {
  background: #F0FFF4;
  border-color: #68D391;
}

/* Progress Bar */
.progress-container {
  margin: var(--space-lg) 0;
}

.progress-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-pill);
  transition: width 0.5s ease;
}

/* ========================================
   MODERN EXERCISE EXECUTION SCREEN
   ======================================== */

/* Main Container */
.exercise-execution-screen {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

/* Modern Progress Bar */
/* Modern Progress Bar (Minimalistic & Attached to Header) */
.progress-container-modern {
  position: fixed;
  top: 64px;
  /* Height of header (16+32+16) - overlap border */
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  z-index: 90;
  /* Below header (100) but above content */
  width: 100%;
}

.progress-label-modern {
  display: none;
  /* Minimalistic - hide text */
}

.progress-bar-modern {
  height: 4px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0;
  overflow: hidden;
  width: 100%;
}

.progress-fill-modern {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 0;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
  /* Glow effect */
}

/* Exercise Content */
.exercise-content {
  flex: 1;
  text-align: center;
  padding: var(--space-lg) 0;
}

.exercise-category-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-lg);
  background: rgba(74, 144, 226, 0.08);
  border: 1px solid rgba(74, 144, 226, 0.12);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.exercise-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-md) 0 var(--space-lg);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.exercise-image-container {
  max-width: 480px;
  margin: var(--space-lg) auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.exercise-image {
  width: 100%;
  height: auto;
  display: block;
}

.exercise-description-card {
  max-width: 560px;
  margin: var(--space-lg) auto;
  padding: var(--space-lg);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.exercise-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Exercise Tips Cards (Simplification & Engagement) */
.exercise-tips-card {
  max-width: 560px;
  margin: var(--space-md) auto;
  padding: var(--space-lg);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid;
  transition: all 0.3s ease;
}

.simplification-card {
  border-left-color: #F59E0B;
  background: linear-gradient(135deg, #FFFBEB 0%, #FFFFFF 100%);
}

.engagement-card {
  border-left-color: #10B981;
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
}

.tip-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.tip-icon {
  font-size: 20px;
  line-height: 1;
}

.tip-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.tip-content {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Feedback Section */

.feedback-section {
  margin: var(--space-xl) 0 var(--space-lg);
}

.feedback-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* Modern Rating Buttons */
.rating-buttons-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 600px;
  margin: 0 auto;
}

.rating-btn-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: var(--space-lg) var(--space-md);
  background: var(--bg-surface);
  border: 2px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.rating-btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(148, 163, 184, 0.2);
}

.rating-btn-modern:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.rating-icon {
  font-size: 32px;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  line-height: 1;
}

.rating-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Rating Button States */
.rating-btn-difficult {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
}

.rating-btn-difficult .rating-icon {
  color: #EF4444;
}

.rating-btn-difficult:hover {
  background: linear-gradient(135deg, #FEE2E2 0%, #FFF5F5 100%);
  border-color: rgba(239, 68, 68, 0.2);
}

.rating-btn-partial {
  background: linear-gradient(135deg, #FFFBEB 0%, #FFFFFF 100%);
}

.rating-btn-partial .rating-icon {
  color: #F59E0B;
}

.rating-btn-partial:hover {
  background: linear-gradient(135deg, #FEF3C7 0%, #FFFBEB 100%);
  border-color: rgba(245, 158, 11, 0.2);
}

.rating-btn-excellent {
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
}

.rating-btn-excellent .rating-icon {
  color: #10B981;
}

.rating-btn-excellent:hover {
  background: linear-gradient(135deg, #D1FAE5 0%, #F0FDF4 100%);
  border-color: rgba(16, 185, 129, 0.2);
}

/* Skip Section */
.skip-section {
  text-align: center;
  margin-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.skip-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  background: transparent;
  border: 1.5px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.skip-button:hover {
  background: rgba(148, 163, 184, 0.05);
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--text-primary);
}

.skip-icon {
  font-size: 16px;
}

.skip-label {
  letter-spacing: 0.01em;
}

/* ========================================
   MOBILE RESPONSIVE (≤ 768px)
   ======================================== */

/* ========================================
   MOBILE RESPONSIVE (≤ 768px)
   ======================================== */

@media (max-width: 768px) {
  .exercise-execution-screen {
    padding: var(--space-sm);
    min-height: calc(100vh - 60px);
    /* Adjust for header */
    justify-content: space-between;
    /* Distribute space */
  }

  /* Compact Header */
  .progress-container-modern {
    margin-bottom: var(--space-xs);
    /* Reduced from sm */
    padding: var(--space-xs) var(--space-sm);
    /* Reduced vertical padding */
  }

  .exercise-content {
    padding: 0;
    /* Removed top padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
    /* Align to top to use space better */
  }

  .exercise-category-tag {
    margin-bottom: var(--space-xs);
    font-size: 12px;
    padding: 4px 12px;
    margin-top: var(--space-xs);
    /* Minimal top margin */
  }

  .exercise-title {
    font-size: 22px;
    /* Slightly larger for readability */
    margin: var(--space-xs) 0 var(--space-sm);
    line-height: 1.2;
    text-align: center;
  }

  /* Full Width Image - No Cropping */
  .exercise-image-container {
    margin: var(--space-sm) 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    /* Let content define height */
    max-height: 40vh;
    /* Limit max height to 40% of screen */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    box-shadow: none;
    /* Remove shadow from container as image might have different shape */
  }

  .exercise-image {
    width: 100%;
    height: 100%;
    max-height: 40vh;
    object-fit: contain;
    /* Ensure full image is visible */
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    /* Apply shadow to image itself */
  }

  /* Compact Description */
  .exercise-description-card {
    margin: var(--space-sm) auto;
    padding: var(--space-md);
    width: 100%;
  }

  .exercise-description {
    font-size: 14px;
    line-height: 1.4;
  }

  /* Mobile styles for tip cards */
  .exercise-tips-card {
    margin: var(--space-sm) auto;
    padding: var(--space-md);
    width: 100%;
  }

  .tip-header {
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
  }

  .tip-icon {
    font-size: 18px;
  }

  .tip-title {
    font-size: 14px;
  }

  .tip-content {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Compact Feedback Section */

  .feedback-section {
    margin: var(--space-md) 0 var(--space-sm);
    width: 100%;
  }

  .feedback-title {
    font-size: 14px;
    margin-bottom: var(--space-sm);
    display: none;
    /* Hide title to save space on small screens */
  }

  /* Horizontal Rating Buttons */
  .rating-buttons-modern {
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: var(--space-xs);
  }

  .rating-btn-modern {
    flex-direction: column;
    /* Stack icon and label */
    justify-content: center;
    min-height: 60px;
    /* Compact height */
    padding: var(--space-xs);
  }

  .rating-icon {
    font-size: 20px;
    margin-bottom: 2px;
    margin-right: 0;
  }

  .rating-label {
    font-size: 11px;
    line-height: 1;
  }

  /* Compact Skip Button */
  .skip-section {
    margin-top: var(--space-xs);
    padding-bottom: var(--space-xs);
  }

  .skip-button {
    min-height: 36px;
    font-size: 13px;
    padding: 4px 16px;
  }
}

/* ========================================
   SMALL MOBILE (≤ 480px)
   ======================================== */

@media (max-width: 480px) {
  .exercise-execution-screen {
    padding: var(--space-sm);
  }

  .progress-container-modern {
    padding: var(--space-sm);
  }

  .exercise-title {
    font-size: 22px;
  }

  .exercise-category-tag {
    font-size: 13px;
    padding: 6px var(--space-md);
  }

  .exercise-description {
    font-size: 14px;
  }

  .rating-btn-modern {
    min-height: 52px;
  }
}

/* ========================================
   MATERIALS CAROUSEL
   ======================================== */

.materials-section {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  /* 24px */
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.materials-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-md) 0;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  letter-spacing: -0.01em;
}

.materials-carousel {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-xs) 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Hide scrollbar for cleaner look */
}

.materials-carousel::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar for cleaner look */
}

.material-card {
  flex: 0 0 auto;
  min-width: 140px;
  padding: var(--space-md);
  background: var(--bg-body);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-md);
  /* 16px */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.material-card:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.material-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
  white-space: nowrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .materials-section {
    padding: var(--space-md);
    margin: var(--space-lg) 0;
    border-radius: var(--radius-lg);
  }

  .materials-title {
    font-size: 16px;
  }

  .material-card {
    min-width: 120px;
    padding: var(--space-sm) var(--space-md);
  }

  .material-text {
    font-size: 13px;
  }
}

/* ========================================
   SESSION COMPLETE SCREEN
   ======================================== */

.completion-container {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.completion-header {
  margin-bottom: var(--space-xl);
}

.completion-emoji {
  font-size: 80px;
  margin-bottom: var(--space-md);
  line-height: 1;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.completion-title {
  font-size: 32px;
  margin-bottom: var(--space-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.completion-message {
  font-size: 18px;
  color: var(--text-secondary);
}

.completion-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card-modern {
  background: var(--bg-surface);
  padding: var(--space-lg) var(--space-sm);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  transition: transform 0.3s ease;
}

.stat-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-emoji {
  font-size: 32px;
  margin-bottom: var(--space-xs);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.completion-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

/* Mobile adjustments for completion screen */
@media (max-width: 480px) {
  .completion-emoji {
    font-size: 64px;
  }

  .completion-title {
    font-size: 28px;
  }

  .stat-card-modern {
    padding: var(--space-md) var(--space-xs);
  }

  .stat-emoji {
    font-size: 24px;
  }

  .stat-value {
    font-size: 24px;
  }

  .stat-label {
    font-size: 11px;
  }

  .completion-actions {
    flex-direction: column;
    width: 100%;
  }

  .completion-actions .btn {
    width: 100%;
  }
}