/* ====================================================
   FITNESS PROFESSIONAL CARD COMPONENT STYLES
   ==================================================== */

/* Main Card Container */
.pro-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
  border-color: #dee2e6;
}

.pro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.20) !important;
  border-color: #dee2e6;
}

/* Photo Section */
.pro-photo-container {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 50%;
  border: 2px solid #e9ecef;
  padding: 4px;
  overflow: hidden;
}

.pro-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Initials fallback (no photo_url) — Tier 2 */
.pro-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(1.75rem, 14vw, 2.75rem);
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.pro-avatar-fallback__initials {
  user-select: none;
  pointer-events: none;
}

.pro-avatar-fallback--editorial {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.65);
}

/* Pro Header */
.pro-title a {
  color: #212529;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
}

.pro-title a:hover {
  color: #0d6efd;
  text-decoration: none !important;
}

.pro-title-label {
  color: #212529;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.3;
}

/* Editorial Pick */
.editorial-pick-label {
  color: #f76c6c;
  font-size: 0.9rem;
}

.verified-label {
  color: #374785;
  font-size: 0.9rem;
}

/* Mobile-only status badges in pro cards (below the name, centered) */
.pro-card-mobile-badges {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  color: #374785;
  font-size: 0.9rem;
}

.pro-card-mobile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pro-card-mobile-badge .certificate-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  line-height: 1;
}

.pro-card-mobile-badge .certificate-badge .fa-certificate {
  color: #0d6efd;
  font-size: 1.1rem;
}

.pro-card-mobile-badge .certificate-badge .certificate-check {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 0.5rem;
  font-weight: 900;
  z-index: 2;
}

.pro-card-mobile-badge .editorial-pick-star {
  font-size: 1.1rem;
}

.editorial-pick-star {
  color: #d4a017;
  text-shadow: 0 0 0.5px rgba(0,0,0,0.35);
}

.editorial-pick-icon {
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.editorial-pick-icon:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* Verified Badge */
.verified-badge {
  display: inline-flex;
  align-items: center;
}

.certificate-badge {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.certificate-badge .fa-certificate {
  color: #0d6efd;
  font-size: 1.25rem;
}

.certificate-badge .certificate-check {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.6rem;
  font-weight: 900;
  z-index: 2;
}

.verified-badge:hover .certificate-badge {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.pro-profession {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Badge Styles */
.pro-tags {
  line-height: 1.8;
}

/* Category Badges */
.pro-category-badge {
  background: #f8e9a1;
  color: #374785;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

.pro-subcategory-badge {
  background: #f8e9a1;
  color: #374785;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
}

/* Specialization Badges */
.specialization-badge {
  background: #374785;
  color: #a8d0e6;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
}

/* Session Type Badges */
.session-badge {
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
}

/* Certification Badges */
.cert-badge {
  background: #f8e9a1;
  color: #374785;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-bottom: 0.25rem;
}

/* Location */
.pro-location {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.85rem;
  color: #6c757d;
}

.pro-location i {
  color: #f76c6c;
}

/* Description */
.pro-description {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Accepting Clients Badge */
.accepting-badge {
  background: #28a745;
  color: white;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
}

.accepting-badge.not-accepting {
  background: #dc3545;
}

/* Price Range */
.price-range {
  font-size: 0.85rem;
  color: #374785;
  font-weight: 600;
}

/* Social Links */
.pro-social-links a {
  color: #6c757d;
  font-size: 1rem;
  transition: color 0.2s ease;
  margin-right: 0.5rem;
}

.pro-social-links a:hover {
  color: #374785;
}


/* Action Buttons */
.pro-actions .btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pro-actions .btn-primary {
  background: #f76c6c;
  border: none;
  color: #fff;
  font-weight: 700;
}

.view-profile-btn {
  background-color: #f76c6c !important;
  border-color: #f76c6c !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.view-profile-btn:hover {
  background-color: #f76c6c !important;
  border-color: #f76c6c !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.pro-actions .btn-primary:hover {
  background: #f76c6c;
  color: #fff;
  transform: translateY(-1px);
}

.pro-actions .btn-secondary {
  background: #0d6efd;
  border: none;
  color: #fff;
}

.pro-actions .btn-secondary:hover {
  background: #0b5ed7;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .pro-photo-container {
    width: 150px;
    height: 150px;
  }
  
  .pro-title a {
    font-size: 1.2rem;
  }

  .pro-title-label {
    font-size: 0.95rem;
  }
  
  .pro-actions .btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }
}

@media (max-width: 768px) {
  .pro-card .card-body {
    padding: 1.5rem;
  }
}

/* Animation for badge hover effects */
.pro-tags .badge {
  transition: all 0.2s ease;
}

.pro-tags .badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Special hover effect for the entire card */
.pro-card {
  position: relative;
  overflow: hidden;
}
