/* image-cropper.css */
/* Styles for the image cropper/positioner modal */
/* Ported from Scream 365, re-skinned for Basshole Fishing Club */

#image-cropper-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#image-cropper-modal.hidden {
  display: none;
}

.cropper-modal-content {
  background: #000000;
  border: 1px solid #caee00;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  position: relative;
}

.cropper-modal-content .modal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #222;
  position: relative;
}

.cropper-modal-content .modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #caee00;
  white-space: nowrap;
}

.cropper-modal-content .modal-close {
  background: none;
  border: none;
  color: #3f3f3f;
  font-size: 2.25rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
  position: absolute;
  top: 8px;
  right: 16px;
  z-index: 1;
}

.cropper-modal-content .modal-close:hover {
  color: #caee00;
}

.cropper-modal-content .modal-body {
  padding: 1.25rem;
  overflow-y: auto;
}

.cropper-instructions {
  color: #888;
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
  text-align: center;
}

.cropper-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  width: 100%;
}

.cropper-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid #caee00;
  border-radius: 8px;
  background: #0a0a0a;
  cursor: grab;
  user-select: none;
}

.cropper-frame.circle-crop {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  max-width: 300px;
  margin: 0 auto;
}

.cropper-frame.dragging {
  cursor: grabbing;
}

.cropper-frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 100%;
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
  object-fit: cover;
}

.cropper-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.5rem 0;
}

.cropper-controls label {
  color: #c5c5c5;
  font-size: 0.9rem;
}

.cropper-controls input[type="range"] {
  width: 150px;
  accent-color: #caee00;
}

.cropper-controls #cropper-zoom-value {
  color: #caee00;
  font-size: 0.9rem;
  min-width: 45px;
}

.cropper-modal-content .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #222;
}

.cropper-modal-content .btn {
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.cropper-modal-content .btn-secondary {
  background: #333;
  color: #c5c5c5;
}

.cropper-modal-content .btn-secondary:hover {
  background: #444;
}

.cropper-modal-content .btn-primary {
  background: #055605;
  color: #fff;
  font-weight: 600;
}

.cropper-modal-content .btn-primary:hover {
  background: #caee00;
  color: #000;
  box-shadow: 0 0 12px rgba(202, 238, 0, 0.4);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .cropper-modal-content {
    max-height: 95vh;
  }
  
  .cropper-frame {
    max-width: 100%;
  }

  .cropper-frame.circle-crop {
    max-width: 250px;
  }
  
  .cropper-controls {
    flex-wrap: wrap;
  }
  
  .cropper-controls input[type="range"] {
    width: 120px;
  }
}
