/* Profile Page Styles */

:root {
  --primary: #0E98BA;
  --primary-dark: #0A7A94;
  --secondary: #F59E0B;
  --success: #10B981;
  --danger: #EF4444;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--gray-50);
}

/* Header Styles */
.profile-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-2px);
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link .logo {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  padding: 0.25rem;
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease;
}

.logo-link:hover .logo {
  transform: scale(1.05);
}

/* Main Content */
.profile-main {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Profile Header Section */
.profile-header-section {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
  border-bottom: 1px solid var(--gray-200);
}

.profile-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.profile-photo img:hover {
  transform: scale(1.05);
}

.profile-info h1 {
  margin: 0 0 0.25rem 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  font-family: 'Poppins', sans-serif;
}

.business-name {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.profile-location {
  color: var(--gray-600);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.profile-specialties {
  color: var(--gray-600);
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.profile-badges {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.profile-badges img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  background: white;
  padding: 0.25rem;
  border: 2px solid var(--gray-200);
  transition: transform 0.2s ease;
  cursor: help;
  position: relative;
  flex-shrink: 0;
}

.profile-badges img:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* Profile badge tooltip styles */
.profile-badges img[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 0.5rem;
}

.profile-badges img[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--gray-900);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.profile-badges img[data-tooltip]:hover::before,
.profile-badges img[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* Profile Actions */
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.contact-btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.contact-btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.share-btn {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-btn:hover {
  background: var(--gray-200);
  transform: translateY(-1px);
}

.share-btn.success {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

/* Profile Content */
.profile-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

.profile-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-section {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 2rem;
}

.profile-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-section h2 {
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-section h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}

.profile-section p {
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0 0 1rem 0;
}

/* Experience Info */
.experience-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.experience-item {
  background: var(--gray-50);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.experience-label {
  font-weight: 600;
  color: var(--gray-700);
  display: block;
  margin-bottom: 0.25rem;
}

/* Services */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.service-tag {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  transition: all 0.2s ease;
}

.service-tag:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.service-details {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.service-detail-item {
  background: var(--gray-50);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.detail-label {
  font-weight: 600;
  color: var(--gray-700);
  display: block;
  margin-bottom: 0.25rem;
}

/* Certifications */
.certifications-content {
  display: grid;
  gap: 1.5rem;
}

.certification-item {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.certification-item h4 {
  color: var(--gray-900);
  margin: 0 0 0.75rem 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.certification-item p {
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* Social Media */
.social-links {
  display: grid;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateX(4px);
}

.social-link svg {
  flex-shrink: 0;
}

/* Reviews */
.reviews-container {
  min-height: 100px;
}

.no-reviews {
  color: var(--gray-500);
  font-style: italic;
  text-align: center;
  padding: 2rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 2px dashed var(--gray-300);
}

/* Contact Card */
.profile-right {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.contact-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.contact-card h3 {
  color: var(--gray-900);
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

/* Quick Contact */
.quick-contact {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-200);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--gray-700);
  font-weight: 500;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.contact-form label {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 152, 186, 0.1);
}

.contact-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.contact-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 152, 186, 0.3);
}

/* Success/Error Messages */
.success-message {
  background: var(--success);
  color: white;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
}

.error-message {
  background: var(--danger);
  color: white;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
}

/* Error Container */
.error-container {
  max-width: 600px;
  margin: 4rem auto;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--danger);
}

.error-container h2 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.error-container p {
  margin: 0 0 2rem 0;
  color: var(--gray-600);
}

.back-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .profile-header-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  
  .profile-actions {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 900px) {
  .profile-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .profile-right {
    position: static;
  }
  
  .contact-card {
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .profile-container {
    margin: 0 1rem;
    padding: 0 1rem;
  }
  
  .profile-header-section {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
  }
  
  .profile-photo img {
    width: 100px;
    height: 100px;
  }
  
  .profile-info h1 {
    font-size: 1.75rem;
  }
  
  .profile-rating {
    font-size: 1rem;
  }
  
  .profile-specialties {
    font-size: 0.9rem;
  }
  
  .profile-badges img {
    width: 50px;
    height: 50px;
  }
  
  .profile-content {
    padding: 1.5rem;
  }
  
  .profile-left {
    gap: 1.5rem;
  }
  
  .profile-section {
    padding-bottom: 1.5rem;
  }
  
  .profile-section h2 {
    font-size: 1.25rem;
  }
  
  .services-list {
    gap: 0.5rem;
  }
  
  .service-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
  
  .contact-card h3 {
    font-size: 1.1rem;
  }
  
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
  
  .contact-btn {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .profile-container {
    margin: 0 0.5rem;
    padding: 0 0.5rem;
  }
  
  .profile-header-section {
    padding: 1rem;
  }
  
  .profile-photo img {
    width: 80px;
    height: 80px;
  }
  
  .profile-info h1 {
    font-size: 1.5rem;
  }
  
  .profile-rating {
    font-size: 0.9rem;
  }
  
  .profile-specialties {
    font-size: 0.8rem;
  }
  
  .profile-badges {
    justify-content: center;
    gap: 0.5rem;
  }
  
  .profile-badges img {
    width: 40px;
    height: 40px;
  }
  
  .profile-content {
    padding: 1rem;
  }
  
  .profile-section h2 {
    font-size: 1.1rem;
  }
  
  .service-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  
  .contact-card {
    padding: 1rem;
  }
  
  .contact-card h3 {
    font-size: 1rem;
  }
  
  .contact-btn {
    padding: 0.7rem;
    font-size: 0.85rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .contact-btn:hover {
    transform: none;
  }
  
  .contact-btn {
    min-height: 44px;
  }
  
  .service-tag {
    min-height: 32px;
    display: flex;
    align-items: center;
  }
  
  .social-link {
    min-height: 48px;
  }
} 