/* Additional styles for new pages */

/* Exercise Details Page Styles */
.exercise-detail {
  margin-top: 2rem;
}

.exercise-content {
  display: grid;
  gap: 2rem;
}

.exercise-benefits {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.exercise-benefits li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 154, 1, 0.1);
  font-weight: 500;
}

.supported-exercises {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.exercise-category {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--coquelicot);
}

.exercise-category h4 {
  color: var(--coquelicot);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.ai-features {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

/* Profile Page Styles */
.profile {
  padding: 5rem 0;
  background: linear-gradient(135deg, hsl(var(--white-alpha-10)) 0%, hsl(var(--white-alpha-5)) 100%);
}

.profile-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.profile-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 154, 1, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 154, 1, 0.2);
}

.card-icon {
  font-size: 2rem;
  color: var(--coquelicot);
}

.card-title {
  color: var(--gunmetal);
  font-weight: 700;
  margin: 0;
}

.profile-form {
  display: grid;
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-label {
  color: var(--gunmetal);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select {
  padding: 1rem;
  border: 2px solid rgba(26, 28, 35, 0.1);
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  color: var(--gunmetal);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--coquelicot);
  box-shadow: 0 0 0 3px rgba(255, 154, 1, 0.1);
  background: rgba(255, 255, 255, 1);
}

.form-input:read-only {
  background: rgba(0, 0, 0, 0.05);
  cursor: not-allowed;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--gunmetal);
  transition: color 0.3s ease;
}

.checkbox-label:hover {
  color: var(--coquelicot);
}

.checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(26, 28, 35, 0.3);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkbox:checked {
  background: var(--coquelicot);
  border-color: var(--coquelicot);
}

.checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
}

.checkmark {
  display: none;
}

.profile-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.profile-actions .btn {
  min-width: 150px;
  padding: 1rem 2rem;
  font-weight: 600;
}

/* Loading overlay styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.loading-overlay.active {
  display: flex;
}

.loading-content {
  text-align: center;
  color: white;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 154, 1, 0.3);
  border-left: 4px solid var(--coquelicot);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive design for profile page */
@media (max-width: 768px) {
  .profile-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .profile-card {
    padding: 1.5rem;
  }
  
  .input-row {
    grid-template-columns: 1fr;
  }
  
  .profile-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .profile-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

.feature-item {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 154, 1, 0.3);
}

.feature-item h4 {
  color: var(--coquelicot);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Training Programs Page Styles */
.programs-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.program-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 154, 1, 0.3);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(255, 154, 1, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255, 154, 1, 0.2);
}

.program-card .card-banner {
  position: relative;
  overflow: hidden;
}

.program-card .card-content {
  padding: 2rem;
}

.program-details {
  margin: 1.5rem 0;
}

.program-details h4 {
  color: var(--coquelicot);
  margin-bottom: 1rem;
  font-weight: 700;
}

.program-details ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.program-details li {
  padding: 0.5rem 0;
  font-weight: 500;
}

.exercise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag {
  background: var(--coquelicot);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.program-duration {
  background: rgba(255, 154, 1, 0.1);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.program-duration p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.card-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Coach Details Page Styles */
.coach-profile {
  display: grid;
  gap: 3rem;
  margin-top: 2rem;
}

.coach-avatar-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 154, 1, 0.3);
}

.coach-main-avatar {
  flex-shrink: 0;
}

.coach-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid var(--coquelicot);
  object-fit: cover;
}

.coach-name {
  color: var(--coquelicot);
  margin-bottom: 0.5rem;
}

.coach-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.coach-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars {
  font-size: 1.25rem;
}

.rating-text {
  font-size: 0.9rem;
  color: var(--sonic-silver);
  font-weight: 600;
}

.coach-details {
  display: grid;
  gap: 2.5rem;
}

.coach-overview,
.coach-capabilities,
.coach-specializations,
.coach-technology,
.coach-stats,
.coach-testimonials,
.coach-actions {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 154, 1, 0.3);
}

.capabilities-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 154, 1, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--coquelicot);
}

.capability-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.capability-item h4 {
  color: var(--coquelicot);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.specialization-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.specialization-item {
  padding: 1.5rem;
  background: rgba(255, 154, 1, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--coquelicot);
}

.specialization-item h4 {
  color: var(--coquelicot);
  margin-bottom: 1rem;
  font-weight: 700;
}

.specialization-item ul {
  list-style: none;
  padding: 0;
}

.specialization-item li {
  padding: 0.5rem 0;
  padding-left: 1rem;
  position: relative;
  font-weight: 500;
}

.specialization-item li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--coquelicot);
  font-weight: bold;
}

.technology-features {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.tech-feature {
  padding: 1.5rem;
  background: rgba(255, 154, 1, 0.05);
  border-radius: 12px;
}

.tech-feature h4 {
  color: var(--coquelicot);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 154, 1, 0.05);
  border-radius: 12px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--coquelicot);
  font-family: var(--ff-catamaran);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--sonic-silver);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.testimonial-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.testimonial-item {
  padding: 1.5rem;
  background: rgba(255, 154, 1, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--coquelicot);
}

.testimonial-item p {
  font-style: italic;
  margin-bottom: 1rem;
  font-weight: 500;
}

.testimonial-author {
  color: var(--coquelicot);
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--coquelicot);
  color: var(--coquelicot);
}

.btn-outline:hover {
  background: var(--coquelicot);
  color: var(--white);
}

/* Responsive Design */
@media (min-width: 768px) {
  .exercise-content {
    grid-template-columns: 1fr;
  }

  .programs-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }

  .coach-avatar-section {
    flex-direction: row;
  }

  .capabilities-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .specialization-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .technology-features {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 767px) {
  .coach-avatar-section {
    flex-direction: column;
    text-align: center;
  }

  .action-buttons,
  .card-actions {
    flex-direction: column;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }
}

/* Activity Summary Card Styles */
.activity-summary-card {
  grid-column: 1 / -1; /* Span full width */
  margin-top: 2rem;
}

.activity-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 154, 1, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--coquelicot);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 154, 1, 0.1);
  box-shadow: 0 8px 25px rgba(255, 154, 1, 0.15);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--coquelicot);
  font-family: var(--ff-catamaran, 'Arial', sans-serif);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(26, 28, 35, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.progress-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(255, 154, 1, 0.1);
}

.progress-section h4 {
  margin-bottom: 1rem;
  color: var(--gunmetal);
  font-weight: 700;
}

.quick-stats {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
}

.quick-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 154, 1, 0.1);
}

.quick-stat:last-child {
  border-bottom: none;
}

.quick-stat-label {
  font-weight: 600;
  color: rgba(26, 28, 35, 0.7);
}

.quick-stat-value {
  font-weight: 700;
  color: var(--gunmetal);
}

.achievements-section {
  margin-top: 2rem;
}

.achievements-section h4 {
  margin-bottom: 1.5rem;
  color: var(--gunmetal);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.achievements-section h4::before {
  content: '🏆';
  font-size: 1.25rem;
}

.achievements-list {
  display: grid;
  gap: 1rem;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 154, 1, 0.05);
  border-radius: 10px;
  border-left: 3px solid var(--coquelicot);
  transition: all 0.3s ease;
}

.achievement-item:hover {
  background: rgba(255, 154, 1, 0.1);
  transform: translateX(5px);
}

.achievement-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 154, 1, 0.1);
  border-radius: 50%;
}

.achievement-info {
  flex: 1;
}

.achievement-name {
  display: block;
  font-weight: 700;
  color: var(--gunmetal);
  margin-bottom: 0.25rem;
}

.achievement-date {
  display: block;
  font-size: 0.8rem;
  color: rgba(26, 28, 35, 0.6);
}

/* Highlight and Quick Edit Styles */
.highlight-card {
  animation: highlightPulse 3s ease-in-out;
  border: 2px solid var(--coquelicot) !important;
  box-shadow: 0 0 30px rgba(255, 154, 1, 0.4) !important;
}

@keyframes highlightPulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(255, 154, 1, 0.4);
  }
  50% {
    box-shadow: 0 0 50px rgba(255, 154, 1, 0.6);
  }
}

.quick-edit-field {
  background: rgba(255, 154, 1, 0.05) !important;
  border: 2px solid rgba(255, 154, 1, 0.2) !important;
  transition: all 0.3s ease;
  position: relative;
}

.quick-edit-field::placeholder {
  color: rgba(255, 154, 1, 0.6);
}

.quick-edit-field:focus {
  background: rgba(255, 255, 255, 1) !important;
  border-color: var(--coquelicot) !important;
  box-shadow: 0 0 0 4px rgba(255, 154, 1, 0.15) !important;
  transform: scale(1.02);
}

.field-valid {
  border-color: #22c55e !important;
  background: rgba(34, 197, 94, 0.05) !important;
}

.field-invalid {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.05) !important;
}

.validation-message {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 6px;
  display: none;
}

.field-invalid + .validation-message {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
}

.field-valid + .validation-message {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border-left: 3px solid #22c55e;
}

/* Enhanced Input Group for Personal Info */
.profile-card:first-child .input-group {
  position: relative;
}

.profile-card:first-child .input-group .input-label {
  font-weight: 700;
  color: var(--coquelicot);
}

.profile-card:first-child .form-input[type="number"] {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

/* Special styling for editable stats */
.editable-stat {
  background: rgba(255, 154, 1, 0.1);
  border: 1px dashed var(--coquelicot);
  cursor: pointer;
  transition: all 0.3s ease;
}

.editable-stat:hover {
  background: rgba(255, 154, 1, 0.2);
  transform: scale(1.05);
}

/* Profile Summary Section */
.profile-summary {
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(255, 154, 1, 0.05) 0%, rgba(255, 154, 1, 0.02) 100%);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.summary-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 154, 1, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--coquelicot);
}

/* Personal Summary Card */
.personal-summary .card-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-avatar-small {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--coquelicot), #ff8a50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 154, 1, 0.3);
}

.avatar-text-small {
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--ff-catamaran, 'Arial', sans-serif);
}

.summary-info {
  flex: 1;
}

.summary-name {
  color: var(--gunmetal);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.summary-stats {
  color: rgba(26, 28, 35, 0.7);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

/* Goals and Activity Summary Cards */
.summary-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 154, 1, 0.1);
}

.summary-icon {
  font-size: 1.8rem;
  color: var(--coquelicot);
}

.summary-header h3 {
  color: var(--gunmetal);
  font-weight: 700;
  margin: 0;
}

.summary-content p {
  margin-bottom: 0.75rem;
  color: rgba(26, 28, 35, 0.8);
  font-weight: 500;
}

.summary-content strong {
  color: var(--gunmetal);
  font-weight: 700;
}

.summary-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.summary-stat {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 154, 1, 0.05);
  border-radius: 12px;
  border-left: 3px solid var(--coquelicot);
}

.summary-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--coquelicot);
  font-family: var(--ff-catamaran, 'Arial', sans-serif);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.summary-label {
  font-size: 0.8rem;
  color: rgba(26, 28, 35, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Responsive Design for Summary */
@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .summary-card {
    padding: 1.5rem;
  }
  
  .personal-summary .card-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .summary-stats-grid {
    grid-template-columns: 1fr;
  }
}
