/* WindWalker Developer Mode Template UI Styles */
/* Version: v1.0 */
/* Reference: 367번 문서 Priority 2 */

.dev-template-ui {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
}

/* 헤더 */
.dev-template-header {
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dev-template-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.dev-template-stats {
  display: flex;
  gap: 8px;
}

.template-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* 액션 버튼 */
.dev-template-actions {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  background: white;
  border-bottom: 1px solid #dee2e6;
}

.dev-template-actions .btn-icon {
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.dev-template-actions .btn-icon:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
}

.dev-template-actions .btn-primary {
  padding: 8px 16px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.dev-template-actions .btn-primary:hover {
  background: #5568d3;
  transform: translateY(-1px);
}

/* 템플릿 목록 */
.dev-template-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 빈 상태 */
.dev-template-empty {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.dev-template-empty p {
  margin: 8px 0;
}

.dev-template-empty .text-sm {
  font-size: 12px;
  color: #adb5bd;
}

/* 템플릿 카드 */
.dev-template-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px;
  transition: all 0.2s;
  cursor: pointer;
}

.dev-template-card:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

/* 썸네일 */
.template-thumbnail {
  width: 100%;
  height: 120px;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f9fa;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-placeholder {
  font-size: 48px;
  color: #adb5bd;
}

/* 템플릿 정보 */
.template-info {
  margin-bottom: 12px;
}

.template-name {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #212529;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-meta {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.template-category,
.template-style {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e9ecef;
  color: #495057;
}

.template-style {
  background: #fff3cd;
  color: #856404;
}

.template-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #6c757d;
}

/* 액션 버튼 */
.template-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.template-actions button {
  flex: 1;
  min-width: 60px;
  padding: 6px 8px;
  font-size: 11px;
  border: 1px solid #dee2e6;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.template-actions .btn-use {
  background: #28a745;
  color: white;
  border-color: #28a745;
}

.template-actions .btn-use:hover {
  background: #218838;
}

.template-actions .btn-preview:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
}

.template-actions .btn-edit:hover {
  background: #fff3cd;
  border-color: #ffc107;
}

.template-actions .btn-delete {
  color: #dc3545;
}

.template-actions .btn-delete:hover {
  background: #f8d7da;
  border-color: #dc3545;
}

/* 스크롤바 스타일 */
.dev-template-list::-webkit-scrollbar {
  width: 6px;
}

.dev-template-list::-webkit-scrollbar-track {
  background: #f8f9fa;
}

.dev-template-list::-webkit-scrollbar-thumb {
  background: #dee2e6;
  border-radius: 3px;
}

.dev-template-list::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
}

/* 반응형 */
@media (max-width: 768px) {
  .dev-template-card {
    padding: 10px;
  }

  .template-thumbnail {
    height: 100px;
  }

  .template-actions {
    flex-direction: column;
  }

  .template-actions button {
    min-width: auto;
  }
}
