/* Ereğli Rehber — Görsel kırpma modalı */

.ic-lock { overflow: hidden; }

.ic-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 26, 18, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.ic-modal.is-open {
  display: flex;
  opacity: 1;
}

.ic-dialog {
  width: min(920px, 100%);
  max-height: min(92vh, 860px);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 70px -20px rgba(11, 26, 18, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px) scale(0.985);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.ic-modal.is-open .ic-dialog { transform: none; }

.ic-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #E7ECE8;
}
.ic-head h3 {
  font-family: "Clash Display", "Inter", sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: #0B1A12;
  line-height: 1.2;
}
.ic-sub {
  font-size: 13px;
  color: #8B978F;
  margin-top: 4px;
  line-height: 1.4;
}
.ic-x {
  flex: none;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: #F0F4F1;
  color: #5C6B62;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: 0.15s;
}
.ic-x:hover { background: #E7ECE8; color: #0B1A12; }

.ic-body {
  padding: 18px 24px;
  overflow: auto;
  flex: 1;
}

.ic-stage {
  width: 100%;
  height: min(62vh, 540px);
  min-height: 320px;
  background: #0B1A12;
  border-radius: 16px;
  overflow: hidden;
}
.ic-stage > img {
  display: block;
  max-width: 100%;
}

/* Cropper.js iç öğeleri */
.ic-stage .cropper-view-box,
.ic-stage .cropper-face { border-radius: 0; }
.ic-stage .cropper-line,
.ic-stage .cropper-point { background-color: #16A34A; }
.ic-stage .cropper-view-box { outline-color: rgba(22, 163, 74, 0.85); }

.ic-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.ic-tools #ic-zoom {
  flex: 1;
  min-width: 0;
  height: 6px;
  accent-color: #16A34A;
  cursor: pointer;
}
.ic-zoom-btn {
  flex: none;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #E7ECE8;
  border-radius: 12px;
  background: #fff;
  color: #0B1A12;
  cursor: pointer;
  transition: 0.15s;
}
.ic-zoom-btn:hover { border-color: #16A34A; color: #0F7C38; background: #F2FBF5; }
.ic-zoom-btn svg { width: 18px; height: 18px; }

.ic-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid #E7ECE8;
  background: #F6F9F7;
}
.ic-progress { font-size: 13px; font-weight: 600; color: #5C6B62; }
.ic-foot-btns { display: flex; gap: 10px; margin-left: auto; }

.ic-btn {
  font-size: 14px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: 0.15s;
}
.ic-btn-ghost { background: #fff; border-color: #E7ECE8; color: #5C6B62; }
.ic-btn-ghost:hover { border-color: #C9D3CC; color: #0B1A12; }
.ic-btn-primary { background: #16A34A; color: #fff; box-shadow: 0 8px 20px -8px rgba(22, 163, 74, 0.6); }
.ic-btn-primary:hover { background: #0F7C38; }

/* Önizleme thumbnail'leri */
.crop-field-preview {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.ic-thumb {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #E7ECE8;
  background: #F0F4F1;
  box-shadow: 0 4px 12px -6px rgba(11, 26, 18, 0.25);
}
.ic-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Sürükle-bırak vurgusu */
.ic-dragover {
  outline: 2px dashed #16A34A !important;
  outline-offset: 3px;
  background: #F2FBF5 !important;
}

@media (max-width: 640px) {
  .ic-modal { padding: 0; }
  .ic-dialog { width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
  .ic-stage { height: 52vh; min-height: 260px; }
  .ic-head { padding: 16px 18px 12px; }
  .ic-body { padding: 14px 18px; }
  .ic-foot { padding: 14px 18px; }
  .ic-btn { padding: 12px 20px; }
}
