/* Client Portal Styles */

.client-wrapper {
  max-width: 1400px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

/* Client Hero Banner */
.client-hero {
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, rgba(20, 20, 26, 0.95) 0%, rgba(10, 10, 14, 0.95) 100%);
  border-bottom: 2px solid var(--yellow-primary);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  color: var(--yellow-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero-title {
  font-size: 3.5rem;
  color: #ffffff;
  margin: 0.2rem 0;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
}

/* Client Navigation Bar Tabs */
.client-nav-tabs {
  display: flex;
  gap: 0.75rem;
  border-top: 1px solid var(--border-muted);
  padding-top: 1.25rem;
  flex-wrap: wrap;
}

.client-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-muted);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.client-tab-btn.active {
  background: var(--yellow-primary);
  color: var(--text-dark);
  border-color: var(--yellow-primary);
  box-shadow: 0 4px 15px var(--yellow-glow);
}

.client-tab-btn:hover:not(.active) {
  border-color: var(--yellow-primary);
  color: var(--text-main);
}

.btn-ai-highlight {
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  color: #ffffff !important;
  border: none !important;
  margin-left: auto;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-ai-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

/* Goal Toggles (Muscle Building vs Fat Loss) */
.goal-selection-bar {
  border-left: 4px solid var(--yellow-primary);
}

.goal-pill-group {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid var(--border-muted);
}

.goal-toggle-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 8px 22px;
  border-radius: 24px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.goal-toggle-btn.active-gold {
  background: var(--yellow-primary);
  color: var(--text-dark);
  box-shadow: 0 0 15px var(--yellow-glow);
}

.goal-toggle-btn.active-fire {
  background: var(--fire-primary);
  color: #ffffff;
  box-shadow: 0 0 15px var(--fire-glow);
}

/* Mesocycle Client Cards */
.meso-client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.meso-client-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.meso-client-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow-primary);
}

.meso-header-banner {
  padding: 1.25rem;
}

.gold-gradient {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.2) 0%, rgba(20, 20, 26, 0.9) 100%);
  border-bottom: 2px solid var(--yellow-primary);
}

.fire-gradient {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(20, 20, 26, 0.9) 100%);
  border-bottom: 2px solid var(--fire-primary);
}

.meso-goal-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--yellow-primary);
}

.meso-title {
  font-size: 1.8rem;
  color: #ffffff;
  margin-top: 0.2rem;
}

.meso-desc-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.meso-badge-pills {
  display: flex;
  gap: 0.5rem;
}

.pill-badge {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pill-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
}

.pill-value {
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 700;
}

.wo-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.wo-mini-chip {
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-main);
}

/* Detailed Workout Modal Elements */
.session-header-row {
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.session-number {
  color: var(--yellow-primary);
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.session-title {
  font-size: 1.6rem;
  color: #ffffff;
}

.ex-cat-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--yellow-primary);
  letter-spacing: 1px;
}

.ex-detail-name {
  font-size: 1.3rem;
  color: #ffffff;
}

.ex-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.spec-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spec-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
}

.spec-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.spec-val-btn {
  background: rgba(250, 204, 21, 0.15);
  color: var(--yellow-primary);
  border: 1px solid rgba(250, 204, 21, 0.3);
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.spec-val-btn:hover {
  background: var(--yellow-primary);
  color: #000;
}

.ex-notes-text {
  font-size: 0.825rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: 6px;
}

/* Rest Timer Floating Bar */
.rest-timer-bar {
  position: sticky;
  top: 10px;
  z-index: 50;
  background: rgba(10, 10, 14, 0.95);
  border: 2px solid var(--yellow-primary);
  padding: 10px 18px;
  border-radius: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  box-shadow: 0 0 20px var(--yellow-glow);
}

.timer-countdown {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #ffffff;
  line-height: 1;
}

.timer-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(250, 204, 21, 0.2);
  border-top-color: var(--yellow-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Notice Board Feed */
.client-notices-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.client-notice-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  min-height: 300px;
}

.portrait-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

.notice-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.notice-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.8);
  color: var(--yellow-primary);
  border: 1px solid var(--yellow-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.notice-body-container {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.notice-date {
  font-size: 0.8rem;
  color: var(--yellow-primary);
  font-weight: 700;
  letter-spacing: 1px;
}

.notice-heading {
  font-size: 2.2rem;
  color: #ffffff;
  margin: 0.4rem 0 0.8rem;
}

.notice-paragraph {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.coach-signature {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sig-line {
  height: 2px;
  width: 40px;
  background: var(--yellow-primary);
}

.sig-text {
  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 700;
  text-transform: uppercase;
}

/* In-Card Workout Days List Styles (Mobile Optimized) */
.meso-days-section {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.letter-spacing-1 {
  letter-spacing: 1px;
}

.meso-days-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meso-day-item-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 12px 14px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  text-align: left;
  transition: all 0.2s ease;
  min-height: 48px; /* Mobile touch friendly minimum 48px height */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.meso-day-item-btn:active,
.meso-day-item-btn:hover {
  background: rgba(250, 204, 21, 0.16);
  border-color: var(--yellow-primary);
  transform: scale(0.99);
}

.day-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.day-badge {
  background: var(--yellow-primary);
  color: #000;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.day-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.day-ex-count {
  font-size: 0.75rem;
  color: var(--yellow-primary);
  background: rgba(250, 204, 21, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.day-arrow {
  color: var(--yellow-primary);
  font-weight: bold;
  font-size: 1.1rem;
}


/* Modal Day Selector Pill Styles */
.day-tabs-container {
  border-top: 1px solid var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
  padding: 1rem 0;
}

.day-tabs-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--yellow-primary);
  letter-spacing: 1.5px;
}

.day-pills-row {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.day-tab-pill {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 140px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.day-tab-pill .day-num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--yellow-primary);
  letter-spacing: 1px;
}

.day-tab-pill .day-title-short {
  font-size: 0.75rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.day-tab-pill.active-day {
  background: rgba(250, 204, 21, 0.15);
  border-color: var(--yellow-primary);
  box-shadow: 0 0 15px var(--yellow-glow);
}

.day-tab-pill:hover:not(.active-day) {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-main);
}

.workout-day-focus-card {
  border-left: 3px solid var(--yellow-primary);
}

.day-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Comprehensive Mobile Responsiveness */

@media (max-width: 768px) {
  .client-wrapper {
    padding: 0 0.75rem;
    margin: 0.75rem auto;
  }
  .client-hero {
    padding: 1.5rem 1rem;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .client-nav-tabs {
    flex-direction: column;
    width: 100%;
  }
  .client-tab-btn {
    width: 100%;
    justify-content: center;
  }
  .btn-ai-highlight {
    margin-left: 0;
  }
  .goal-selection-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .goal-pill-group {
    width: 100%;
    justify-content: center;
  }
  .goal-toggle-btn {
    flex: 1;
    text-align: center;
  }
  .filter-controls-row {
    width: 100%;
    justify-content: space-between;
  }
  .filter-item {
    flex: 1;
  }
  .filter-item select {
    width: 100%;
  }
  .meso-client-grid {
    grid-template-columns: 1fr;
  }
  .client-notice-card {
    grid-template-columns: 1fr;
  }
  .portrait-image-container {
    height: 280px;
  }
  .ex-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mobile-modal-full {
    padding: 1rem;
    max-height: 95vh;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .ex-specs-grid {
    grid-template-columns: 1fr;
  }
  .day-pills-row {
    flex-wrap: nowrap;
  }
  .day-tab-pill {
    min-width: 120px;
  }
}


