/* Page-specific styles for fullbody-plan.html */

html {
  background: #f3f4f6;
}

html.dark {
  background: #0f1115;
}

body.plan-page {
  width: min(390px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  overflow-x: hidden;
  position: relative;
  background: transparent;
  padding-bottom: 96px;
  font-family: "Roboto Mono", monospace;
}

body.plan-page,
html.dark body.plan-page {
  color: #111827;
}

html.dark body.plan-page {
  color: #f9fafb;
}

.plan-page .shadow-soft {
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.plan-page .shadow-card {
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.22);
}

.plan-page .shadow-glow {
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.24), 0 0 0 1px rgba(234, 88, 12, 0.12);
}

.plan-page .aspect-\[16\/10\] { aspect-ratio: 16 / 10; }
.plan-page .aspect-\[21\/9\] { aspect-ratio: 21 / 9; }
.plan-page .aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.plan-page .aspect-\[3\/4\] { aspect-ratio: 3 / 4; }
.plan-page .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-page .grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan-page .grid-cols-\[1fr_2fr\] { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.plan-page .col-span-1 { grid-column: span 1 / span 1; }
.plan-page .col-span-2 { grid-column: span 2 / span 2; }
.plan-page .flex-\[2\] { flex: 2 1 0%; }

.plan-page > header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 20px 16px 8px;
  background: rgba(243, 244, 246, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

html.dark .plan-page > header {
  background: rgba(17, 24, 39, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.plan-page > header .flex.items-center.justify-between {
  margin-bottom: 8px;
}

.plan-page > header h1 {
  font-style: normal;
  text-transform: none;
  letter-spacing: -0.03em;
  font-size: 22px;
  line-height: 1.1;
  color: #111827;
}

html.dark .plan-page > header h1 {
  color: #ffffff;
}

.plan-page > header .flex.items-center.justify-between > button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

html.dark .plan-page > header .flex.items-center.justify-between > button {
  background: #121212;
  border-color: rgba(255, 255, 255, 0.08);
}

.plan-page > header .flex.gap-2 {
  gap: 8px;
  padding-bottom: 4px;
}

.plan-page > header .flex.gap-2 > button {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

html.dark .plan-page > header .flex.gap-2 > button {
  background: #121212;
  border-color: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
}

.plan-page > header .flex.gap-2 > button:first-child {
  background: #ea580c;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.25);
}

.plan-page > header .plan-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-page > header .plan-header-actions > .plan-header-icon-btn,
.plan-page > header .plan-header-actions > .plan-header-icon-btn:first-child {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 87, 0, 0.16);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff5700;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,247,237,0.96));
  box-shadow: 0 14px 30px rgba(255, 87, 0, 0.14), 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.plan-page > header .plan-header-actions > .plan-header-icon-btn:active {
  transform: scale(.96);
}

.plan-page > header .plan-header-actions > .plan-header-icon-btn:last-child {
  color: #111827;
  border-color: #d1d5db;
  background: linear-gradient(135deg, #ffffff, #f3f4f6);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08), 0 6px 14px rgba(15, 23, 42, 0.04);
}

html.dark .plan-page > header .plan-header-actions > .plan-header-icon-btn:last-child {
  color: #f9fafb;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #111827, #1f2937);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28), 0 6px 14px rgba(0, 0, 0, 0.18);
}

html.dark .plan-page > header .plan-header-actions > .plan-header-icon-btn,
html.dark .plan-page > header .plan-header-actions > .plan-header-icon-btn:first-child {
  color: #ff7a1a;
  border-color: rgba(255, 87, 0, 0.22);
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.96), rgba(58, 36, 23, 0.78));
  box-shadow: 0 14px 30px rgba(255, 87, 0, 0.12), 0 10px 24px rgba(0,0,0,.24);
}

.plan-page main {
  padding: 6px 16px 24px;
}

.plan-page main.space-y-6 {
  margin-top: 0;
  margin-bottom: 0;
}

.plan-page main > * + * {
  margin-top: 14px;
}

.plan-page #current-plan {
  background: #3b3b3b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

html.dark .plan-page #current-plan {
  background: #373737;
  border-color: rgba(255, 255, 255, 0.06);
}

.plan-page #current-plan h3 {
  font-style: normal;
  text-transform: none;
  font-size: 18px;
}

.plan-page #current-plan .inline-flex {
  background: rgba(255, 255, 255, 0.08);
}

.plan-page #current-plan .text-gray-200\/80,
.plan-page #current-plan .text-gray-200,
.plan-page #current-plan .text-white\/70 {
  color: rgba(255, 255, 255, 0.8);
}

.plan-page #current-plan .bg-black\/30 {
  background: rgba(255, 255, 255, 0.08);
}

.plan-page #current-plan .bg-black\/30 .bg-primary {
  background: #ea580c;
}

.plan-page #current-plan button#workoutHistoryBtn {
  background: #ea580c;
  border: 1px solid rgba(234, 88, 12, 0.28);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.2);
}

.plan-page #current-plan button#startWorkoutFromPlanBtn {
  background: #ea580c;
  border: 0;
  color: #ffffff;
  outline: none;
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.24);
}

.plan-page #current-plan button#startWorkoutFromPlanBtn:focus-visible {
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.24), 0 0 0 3px rgba(255, 255, 255, 0.55), 0 0 0 6px rgba(234, 88, 12, 0.45);
}

.plan-page #current-plan button#startWorkoutFromPlanBtn .bg-white {
  background: #ffffff;
  color: #ea580c;
}

.plan-page #current-plan .absolute.left-6.bottom-6 {
  opacity: 0.08;
}

.plan-page #current-plan.is-locked {
  opacity: 0.82;
}

.plan-page #current-plan.is-locked .current-plan-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(1px);
  border-radius: inherit;
}

.plan-page #current-plan.is-locked .current-plan-lock-badge {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.58);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.plan-page #current-plan.is-locked .current-plan-lock-badge .material-symbols-rounded {
  font-size: 30px;
  color: #ffffff;
}

.plan-page #current-plan.is-locked button#startWorkoutFromPlanBtn,
.plan-page #current-plan.is-locked button#workoutHistoryBtn {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  transition: none;
}

.plan-page #current-plan.is-locked button#startWorkoutFromPlanBtn:hover,
.plan-page #current-plan.is-locked button#startWorkoutFromPlanBtn:active,
.plan-page #current-plan.is-locked button#workoutHistoryBtn:hover,
.plan-page #current-plan.is-locked button#workoutHistoryBtn:active {
  transform: none;
}

.plan-page #plansList {
  display: block;
}

.plan-page #plansList > p,
.plan-page #plansList > .py-12.text-center,
.plan-page #plansList > .empty-state {
  padding: 28px 20px;
  text-align: center;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

html.dark .plan-page #plansList > p,
html.dark .plan-page #plansList > .py-12.text-center,
html.dark .plan-page #plansList > .empty-state {
  background: #121212;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.plan-page #plansList .animate-pulse {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

html.dark .plan-page #plansList .animate-pulse {
  background: #121212;
  border-color: rgba(255, 255, 255, 0.08);
}

.plan-page #plansList article {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.plan-page #plansList article:active {
  transform: scale(0.99);
}

html.dark .plan-page #plansList article {
  background: #121212;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.plan-page #plansList article h2:not(.text-white):not(.text-white\/60):not(.text-white\/80),
.plan-page #plansList article h3:not(.text-white):not(.text-white\/60):not(.text-white\/80) {
  color: #111827;
}

html.dark .plan-page #plansList article h2:not(.text-white):not(.text-white\/60):not(.text-white\/80),
html.dark .plan-page #plansList article h3:not(.text-white):not(.text-white\/60):not(.text-white\/80) {
  color: #ffffff;
}

.plan-page #plansList article p:not(.text-white):not(.text-white\/60):not(.text-white\/80) {
  color: #6b7280;
}

html.dark .plan-page #plansList article p:not(.text-white):not(.text-white\/60):not(.text-white\/80) {
  color: #9ca3af;
}

.plan-page #plansList article .text-white {
  color: #ffffff;
}

.plan-page #plansList article .text-white\/60 {
  color: rgba(255, 255, 255, 0.6);
}

.plan-page #plansList article .text-white\/80 {
  color: rgba(255, 255, 255, 0.8);
}

.plan-page .plan-category-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.plan-page .plan-category-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.plan-page .plan-category-section-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

html.dark .plan-page .plan-category-section-header h2 {
  color: #ffffff;
}

.plan-page .plan-category-section-header span {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

html.dark .plan-page .plan-category-section-header span {
  color: #9ca3af;
}

.plan-page .plan-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 4px 8px;
  scroll-snap-type: x proximity;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.plan-page .plan-carousel::-webkit-scrollbar {
  display: none;
}

.plan-page .plan-carousel-card {
  flex: 0 0 132px;
  width: 132px;
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
}

.plan-page .plan-carousel-card.is-accessible {
  cursor: pointer;
}

.plan-page .plan-carousel-card.is-locked {
  cursor: not-allowed;
  opacity: 0.86;
}

.plan-page .plan-carousel-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.plan-page .plan-carousel-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.plan-page .plan-carousel-card.is-accessible:hover .plan-carousel-image img {
  transform: scale(1.04);
}

.plan-page .plan-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.58) 100%);
}

.plan-page .plan-carousel-lock {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.46);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.plan-page .plan-carousel-lock .material-icons-round {
  font-size: 16px;
}

.plan-page .plan-carousel-body {
  padding: 7px 7px 9px;
  background: #ffffff;
}

html.dark .plan-page .plan-carousel-body {
  background: #121212;
}

.plan-page .plan-carousel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 4px;
}

.plan-page .plan-carousel-difficulty,
.plan-page .plan-carousel-tier {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-page .plan-carousel-difficulty {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.08);
}

.plan-page .plan-carousel-tier {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.06);
  color: #374151;
}

html.dark .plan-page .plan-carousel-tier {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

.plan-page .plan-carousel-body h3 {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  color: #111827;
}

html.dark .plan-page .plan-carousel-body h3 {
  color: #ffffff;
}

.plan-page .plan-carousel-body p {
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  color: #6b7280;
}

html.dark .plan-page .plan-carousel-body p {
  color: #9ca3af;
}

.plan-page #planDetailsModal,
.plan-page #workoutHistoryModal {
  padding: 12px;
}

.plan-page #planDetailsModal > div,
.plan-page #workoutHistoryModal > div {
  width: min(100%, 390px);
  margin: 0 auto;
  max-height: calc(100dvh - 24px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  background: #f3f4f6;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28);
}

html.dark .plan-page #planDetailsModal > div,
html.dark .plan-page #workoutHistoryModal > div {
  background: #0f1115;
  border-color: rgba(255, 255, 255, 0.08);
}

.plan-page #planDetailsModal #planModalImageContainer {
  height: 180px;
}

.plan-page #planDetailsModal #planModalTitle {
  font-style: normal;
  text-transform: none;
  letter-spacing: -0.03em;
}

.plan-page #planDetailsModal #planModalBody {
  padding: 16px 16px 96px;
}

.plan-page #planDetailsModal #planModalBody > div,
.plan-page #planDetailsModal #planModalBody .group,
.plan-page #workoutHistoryList > div,
.plan-page #workoutHistoryModal .bg-white {
  border-radius: 22px;
  border-color: rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

html.dark .plan-page #planDetailsModal #planModalBody > div,
html.dark .plan-page #planDetailsModal #planModalBody .group,
html.dark .plan-page #workoutHistoryList > div,
html.dark .plan-page #workoutHistoryModal .bg-white {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.plan-page #planDetailsModal .pointer-events-auto button[onclick="closePlanModal()"] {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e5e7eb;
}

html.dark .plan-page #planDetailsModal .pointer-events-auto button[onclick="closePlanModal()"] {
  background: rgba(18, 18, 18, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f9fafb;
}

.plan-page #planDetailsModal #selectPlanBtn {
  background: linear-gradient(135deg, #ff5700, #ea580c);
  border: 1px solid rgba(255, 87, 0, 0.18);
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.22);
}

.plan-page #planDetailsModal #selectPlanBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.26);
}

html.dark .plan-page #planDetailsModal #selectPlanBtn {
  background: linear-gradient(135deg, #ff6b0a, #ff5700);
  border-color: rgba(255, 122, 26, 0.24);
  box-shadow: 0 14px 28px rgba(255, 87, 0, 0.24);
}

.plan-page #workoutHistoryModal > div {
  display: flex;
  flex-direction: column;
}

.plan-page #workoutHistoryModal header {
  padding: 20px 16px 12px;
  background: rgba(243, 244, 246, 0.96);
}

html.dark .plan-page #workoutHistoryModal header {
  background: rgba(17, 24, 39, 0.96);
}

.plan-page #workoutHistoryModal main {
  padding: 16px 16px 20px;
}

.plan-page #workoutHistoryModal .workout-toggle-btn {
  background: #f3f4f6;
}

html.dark .plan-page #workoutHistoryModal .workout-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
}

.plan-page #workoutHistoryModal .bg-white,
.plan-page #workoutHistoryModal .bg-card-light {
  background: #ffffff;
}

html.dark .plan-page #workoutHistoryModal .bg-white,
html.dark .plan-page #workoutHistoryModal .bg-card-light {
  background: #121212;
}

.plan-page .notification {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 70;
  width: calc(100% - 24px);
  max-width: 358px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.96);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
}

.plan-page .notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.plan-page .figma-bottom-nav {
  width: min(390px, 100%);
  height: 76px;
  padding: 13px 18px 12px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

html.dark .plan-page .figma-bottom-nav {
  background: rgba(17, 24, 39, 0.96);
  border-top-color: rgba(255, 255, 255, 0.08);
}

.plan-page .figma-nav-item {
  width: 56px;
  color: #8c8c8c;
}

html.dark .plan-page .figma-nav-item {
  color: #9ca3af;
}

.plan-page .figma-nav-item.active {
  color: #ea580c;
}

.plan-page .figma-nav-item.active::after {
  background: #ea580c;
}
