/* ===== mooni / webpick — 참고 사이트 갤러리 ===== */
/* (원본 webpick UI 100% 보존, 컬러만 mooni 코랄로 통일) */

/* 모달 오버레이 */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.modal-box {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  width: calc(100% - 2rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 사이트 카드 */
.site-card {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: white;
  transition: box-shadow 0.2s;
}
.site-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.site-card:hover .card-actions {
  opacity: 1;
}

/* 카드 액션 버튼 오버레이 */
.card-actions {
  opacity: 0;
  transition: opacity 0.2s;
}

/* 리스트 아이템 */
.site-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: white;
  transition: box-shadow 0.2s;
}
.site-list-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.site-list-item:hover .list-actions {
  opacity: 1;
}

.list-actions {
  opacity: 0;
  transition: opacity 0.2s;
}

/* 별점 */
.star-on { color: #facc15; }
.star-off { color: #d1d5db; }

/* 태그 배지 */
.tag-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  background: #f3f4f6;
  color: #4b5563;
}

/* 카테고리 필터 버튼 */
.cat-btn {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  border: 1px solid #d1d5db;
  background: white;
  cursor: pointer;
  transition: all 0.15s;
}
.cat-btn:hover {
  border-color: #F76E5C;
}
.cat-btn.active {
  background: #F76E5C;
  color: white;
  border-color: #F76E5C;
}

/* 별점 필터 버튼 */
.rating-btn {
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  border: 1px solid #d1d5db;
  background: white;
  cursor: pointer;
  transition: all 0.15s;
}
.rating-btn:hover {
  border-color: #F76E5C;
}
.rating-btn.active {
  background: #F76E5C;
  color: white;
  border-color: #F76E5C;
}

/* 드래그 중 */
.sortable-ghost {
  opacity: 0.4;
}
.sortable-chosen {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 텍스트 줄임 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 카테고리 관리 아이템 */
.catmgr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  transition: border-color 0.15s;
}
.catmgr-item:hover {
  border-color: #e5e7eb;
}

/* 드래그 핸들 */
.drag-handle {
  cursor: grab;
  color: #9ca3af;
  transition: color 0.15s;
}
.drag-handle:hover {
  color: #6b7280;
}
.drag-handle:active {
  cursor: grabbing;
}
