/* ==========================================
   SERVME - PAGES AUTHENTICATED DESKTOP PROFILE PHOTO
   Profile photo page desktop - DESKTOP uniquement
   Extrait de profile-photo.css (hors @media mobile)
   ========================================== */

/**
 * ServMe - Profile Photo Upload Styles
 */

/* ==========================================
   PHOTO UPLOADER
   ========================================== */

.photo-uploader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.photo-preview {
  position: relative;
  width: 200px;
  height: 200px;
}

.current-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #FF385C;
  box-shadow: 0 4px 16px rgba(255, 56, 92, 0.2);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f3f4f6;
  border: 3px dashed #d1d5db;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: all 0.3s;
}

.photo-placeholder:hover {
  background: #e5e7eb;
  border-color: #FF385C;
  color: #FF385C;
}

.photo-placeholder i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.photo-placeholder p {
  font-size: 0.875rem;
  margin: 0;
}

.btn-remove-photo {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  border: 3px solid white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-remove-photo:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.photo-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.photo-help {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
  text-align: center;
}

/* ==========================================
   CROP MODAL
   ========================================== */

.crop-modal-content {
  max-width: 600px;
  width: 90%;
}

.crop-container {
  margin: 1.5rem 0;
  max-height: 60vh;
  overflow: hidden;
  background: #f9fafb;
  border-radius: 12px;
}

#cropperContainer {
  width: 100%;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cropImage {
  max-width: 100%;
  display: block;
}

.crop-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.crop-controls .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.crop-controls i {
  margin-right: 0.375rem;
}

/* ==========================================
   CROPPER.JS CUSTOMIZATION
   ========================================== */

.cropper-container {
  font-family: 'Inter', sans-serif;
}

.cropper-view-box {
  outline: 2px solid #FF385C;
  outline-color: rgba(255, 56, 92, 0.75);
}

.cropper-face {
  background-color: rgba(255, 255, 255, 0.1);
}

.cropper-line,
.cropper-point {
  background-color: #FF385C;
}

.cropper-point {
  width: 8px;
  height: 8px;
  opacity: 0.9;
}

.cropper-point.point-se {
  width: 10px;
  height: 10px;
}

.cropper-bg {
  background-image: none;
}

/* ==========================================
   MODAL ENHANCEMENTS
   ========================================== */

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #1a1a1a;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

