/* Profile Page Styling */

/* Profile sidebar */
.profile-sidebar {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Health score display with gradient */
.health-score-display {
  font-size: 3.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, #0081A7 0%, #00AFB9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 129, 167, 0.1);
  margin-bottom: 0.5rem;
}

.health-score-label {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 500;
}

/* Profile header container */
.profile-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 129, 167, 0.05) 0%, rgba(0, 175, 185, 0.05) 100%);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  padding: 2px;
  background: linear-gradient(135deg, #0081A7 0%, #00AFB9 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Factor cards styling */
.factor-card {
  background-color: #fff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  transition: box-shadow 0.2s ease;
}

.factor-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.factor-card h4 {
  color: #0081A7;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Demographics section */
.demographics-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #fff;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

/* Factor contribution items */
.factor-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #0081A7;
}

.factor-item.positive {
  border-left-color: #2E7D32;
  background-color: rgba(46, 125, 50, 0.05);
}

.factor-item.negative {
  border-left-color: #DC493A;
  background-color: rgba(220, 73, 58, 0.05);
}

.factor-item-name {
  font-weight: 500;
  color: #262626;
}

.factor-item-value {
  font-weight: 600;
  font-size: 1.1rem;
}

.factor-item-value.positive {
  color: #2E7D32;
}

.factor-item-value.negative {
  color: #DC493A;
}

/* Factor change indicators */
.factor-change-up {
  color: #2E7D32;
  font-weight: 600;
}

.factor-change-down {
  color: #DC493A;
  font-weight: 600;
}

.factor-change-same {
  color: #6c757d;
  font-weight: 600;
}

/* Info icon styling */
.info-icon {
  cursor: help;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.info-icon:hover {
  opacity: 1;
}

/* Demographics styling */
.demo-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #E6E6E9;
}

.demo-label {
  font-weight: 600;
  color: #262626;
}

.demo-value {
  color: #262626;
  text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .profile-sidebar {
    margin-bottom: 2rem;
  }
  
  .factor-card {
    margin-bottom: 1rem;
  }
  
  .health-score-display {
    font-size: 2.5rem;
  }
}
