/* PicResizeKit 전체 스타일 - 다크 모던 테마 */

/* =============================================
   CSS 변수
   ============================================= */
:root {
  --bg-primary:    #14142a;
  --bg-secondary:  #1a1a35;
  --bg-card:       #1e1e3a;
  --bg-card-hover: #252550;
  --bg-input:      #1a1a35;

  --text-primary:   #ffffff;
  --text-secondary: #8892aa;
  --text-muted:     #55607a;

  --accent:       #4f7df9;
  --accent-hover: #6b93ff;
  --accent-light: rgba(79, 125, 249, 0.12);

  --success: #22c55e;
  --error:   #ef4444;

  --border:       rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.13);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

  --transition: 0.18s ease;

  --max-width:      1200px;
  --header-height:  64px;
  --radius:         12px;
  --radius-sm:      8px;
  --radius-xs:      6px;
}


/* =============================================
   리셋 & 기본
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* =============================================
   사이트 헤더
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
  margin-right: 16px;
}

.logo-icon {
  font-size: 22px;
  color: var(--accent);
  display: flex;
  align-items: center;
}

.logo-icon svg {
  width: 22px;
  height: 22px;
}

/* 상단 네비 */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.header-nav a {
  padding: 7px 11px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* 더 보기 드롭다운 */
.nav-more {
  position: relative;
}

.nav-more-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-more-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-more-btn .arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

.nav-more.open .arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 185px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 6px;
  display: none;
  z-index: 200;
}

.nav-more.open .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-dropdown a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* 헤더 우측 */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* 햄버거 버튼 */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 20px;
  transition: var(--transition);
}

.hamburger-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}


/* =============================================
   모바일 네비게이션 오버레이
   ============================================= */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg-primary);
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav:not([hidden]) {
  display: flex;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.mobile-nav-close {
  font-size: 22px;
  color: var(--text-secondary);
  padding: 6px;
  transition: var(--transition);
}

.mobile-nav-close:hover {
  color: var(--text-primary);
}

.mobile-nav-links {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.mobile-nav-icon svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 14px;
}


/* =============================================
   언어 전환 드롭다운
   ============================================= */
.lang-switcher {
  position: relative;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 13px;
  transition: var(--transition);
}

.lang-current:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-arrow {
  font-size: 9px;
  transition: transform 0.15s;
}

.lang-current[aria-expanded="true"] .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  z-index: 200;
  padding: 4px;
}

.lang-dropdown li { list-style: none; }

.lang-option {
  display: block;
  width: 100%;
  padding: 9px 13px;
  text-align: left;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.lang-option-active {
  font-weight: 600;
  color: var(--accent);
}

.lang-option-active:hover {
  color: var(--accent);
}


/* =============================================
   히어로 섹션 (랜딩 페이지)
   ============================================= */
.hero {
  text-align: center;
  padding: 56px 24px 36px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-size: 38px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}


/* =============================================
   필터 탭
   ============================================= */
.filter-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 24px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.filter-btn.active {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: transparent;
}


/* =============================================
   도구 카드 그리드
   ============================================= */
.tools-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-primary);
  height: 100%;
}

.tool-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.tool-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
  flex-shrink: 0;
  color: #fff;
}

.tool-card-icon svg {
  width: 26px;
  height: 26px;
}

.tool-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.35;
}

.tool-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

/* 카드 아이콘 배경색 */
.icon-blue   { background: rgba(59, 130, 246, 0.18); }
.icon-green  { background: rgba(34, 197, 94, 0.18);  }
.icon-orange { background: rgba(251, 146, 60, 0.18); }
.icon-purple { background: rgba(168, 85, 247, 0.18); }
.icon-red    { background: rgba(239, 68, 68, 0.18);  }
.icon-teal   { background: rgba(20, 184, 166, 0.18); }
.icon-yellow { background: rgba(234, 179, 8, 0.18);  }
.icon-indigo { background: rgba(99, 102, 241, 0.18); }


/* =============================================
   도구 페이지 레이아웃
   ============================================= */
.tool-page {
  min-height: calc(100vh - var(--header-height));
}

.tool-hero {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
}

.tool-hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tool-hero p {
  font-size: 15px;
  color: var(--text-secondary);
}

.tool-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* 도구 컨테이너 내 구버전 tool-header 스타일 */
.tool-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: none; /* 새 레이아웃에서는 tool-hero가 대신함 */
}

.tool-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tool-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}


/* =============================================
   섹션 공통
   ============================================= */
.upload-section,
.info-section,
.preview-section,
.resize-section,
.result-section,
.compress-section,
.crop-section,
.rotate-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}


/* =============================================
   업로드 영역
   ============================================= */
.upload-area {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 44px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
}

.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  pointer-events: none;
}

.upload-icon { font-size: 40px; }

.upload-text {
  font-size: 15px;
  color: var(--text-primary);
}

.upload-formats {
  font-size: 13px;
  color: var(--text-muted);
}


/* =============================================
   이미지 정보 그리드
   ============================================= */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.info-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}


/* =============================================
   이미지 미리보기
   ============================================= */
.preview-image {
  max-height: 300px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}


/* =============================================
   리사이즈 컨트롤
   ============================================= */
.dimension-inputs {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-group input[type="number"] {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 15px;
  width: 100%;
  background: var(--bg-input);
  color: var(--text-primary);
  transition: var(--transition);
}

.input-group input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 125, 249, 0.15);
}

.ratio-option { margin-bottom: 20px; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}


/* =============================================
   버튼
   ============================================= */
.action-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text-primary);
}

.btn-download {
  background: #22c55e;
  color: #fff;
  width: 100%;
  padding: 12px;
  font-size: 15px;
  margin-top: 14px;
  border-radius: var(--radius-sm);
}

.btn-download:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}


/* =============================================
   메시지 영역
   ============================================= */
.message-area {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.message-area.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fca5a5;
}

.message-area.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #86efac;
}


/* =============================================
   결과 정보
   ============================================= */
.result-info {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}


/* =============================================
   하단 콘텐츠 섹션 (AdSense 심사용)
   ============================================= */
.content-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.content-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.content-section p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 10px;
}

.content-section ul {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.content-section ul li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
}

.content-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.about-section,
.features-section,
.privacy-notice {
  /* 상위 .content-section 스타일 상속 */
}


/* =============================================
   compress/convert 전용
   ============================================= */
.compress-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.format-select {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-input);
  color: var(--text-primary);
  width: 100%;
  cursor: pointer;
  transition: var(--transition);
}

.format-select:focus {
  outline: none;
  border-color: var(--accent);
}

.quality-slider {
  width: 100%;
  height: 6px;
  accent-color: var(--accent);
  cursor: pointer;
  margin-top: 6px;
}

.quality-value {
  font-weight: 700;
  color: var(--accent);
  margin-left: 8px;
  font-size: 13px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.png-note {
  font-size: 13px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.format-badge {
  display: inline-block;
  background: rgba(79, 125, 249, 0.13);
  color: var(--accent);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  border: 1px solid rgba(79, 125, 249, 0.25);
}

.convert-format-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.convert-arrow {
  font-size: 18px;
  color: var(--text-muted);
}

.compress-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.compress-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  min-width: 110px;
}

.compress-stat-reduction {
  border-color: var(--accent);
  background: var(--accent-light);
}

.compress-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compress-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.compress-stat-arrow {
  font-size: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.stat-good { color: #4ade80; }
.stat-bad  { color: #f87171; }


/* =============================================
   공유 버튼
   ============================================= */
.share-section {
  text-align: center;
}

.share-prompt {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition);
  border: none;
  cursor: pointer;
}

.btn-share:hover { opacity: 0.82; }

.btn-share-facebook {
  background: #1877f2;
  color: #fff;
}

.btn-share-x {
  background: #000;
  color: #fff;
}

@media (max-width: 480px) {
  .btn-share { width: 200px; justify-content: center; }
}


/* =============================================
   rotate 전용
   ============================================= */
.rotate-quick-btns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.rotate-btn {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.rotate-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--text-primary);
}

.rotate-angle-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.rotate-angle-group { flex: 0 0 160px; }

.rotate-angle-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--bg-input);
  color: var(--text-primary);
}

.rotate-angle-input:focus {
  outline: none;
  border-color: var(--accent);
}

.rotate-status {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.rotate-status strong {
  color: var(--text-primary);
  font-size: 15px;
}

.rotate-preview-wrapper {
  width: 100%;
  overflow: auto;
  background: #0a0a18;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  line-height: 0;
  text-align: center;
}

.rotate-preview-canvas {
  display: inline-block;
  max-width: 100%;
}


/* =============================================
   crop 전용
   ============================================= */
.crop-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.crop-canvas-wrapper {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #0a0a18;
  margin-bottom: 16px;
  line-height: 0;
}

.crop-canvas {
  cursor: crosshair;
  display: block;
  max-width: 100%;
  touch-action: none;
}

.crop-inputs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.crop-inputs .input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crop-inputs label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.crop-inputs input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--bg-input);
  color: var(--text-primary);
}

.crop-inputs input:focus {
  outline: none;
  border-color: var(--accent);
}


/* =============================================
   thumbnail / presets / batch 공통
   ============================================= */
.preset-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.color-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  padding: 4px;
  cursor: pointer;
}

.frame-preview-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(45deg, rgba(255,255,255,0.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.025) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.025) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.025) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.frame-preview-image {
  max-width: 100%;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* 결과 캔버스 (썸네일/프리셋) */
.frame-preview-shell canvas {
  max-width: 100%;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: block;
  user-select: none;
  -webkit-user-select: none;
}

/* 드래그 힌트 — 공통 */
.drag-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(79, 125, 249, 0.25);
  border-radius: 8px;
  padding: 9px 14px;
  margin-bottom: 12px;
}

/* 원본유지 드래그 미리보기 섹션 (resize 페이지) */
.drag-preview-section { margin-bottom: 20px; }

.drag-canvas-wrapper {
  display: flex;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background:
    linear-gradient(45deg, rgba(255,255,255,0.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.025) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.025) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.025) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.drag-canvas-wrapper canvas {
  cursor: grab;
  max-width: 100%;
  display: block;
  user-select: none;
  -webkit-user-select: none;
}

.drag-canvas-wrapper canvas:active { cursor: grabbing; }

.batch-file-count {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.batch-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.batch-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 13px;
  color: var(--text-secondary);
}

.batch-file-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.batch-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.batch-download-all { margin-left: auto; }

.batch-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.batch-result-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 16px;
}

.batch-result-header,
.batch-result-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.batch-result-header { margin-bottom: 8px; }

.batch-result-header strong { color: var(--accent); }

.batch-result-meta {
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.batch-download-btn { width: 100%; }


/* =============================================
   features 전용
   ============================================= */
.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg-card);
  margin-bottom: 14px;
}

.feature-card-active {
  border-color: rgba(79, 125, 249, 0.35);
  background: var(--accent-light);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.feature-card-header h3 {
  font-size: 16px;
  color: var(--text-primary);
  flex: 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-badge {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.feature-badge-live {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

.feature-btn {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(79, 125, 249, 0.3);
  background: var(--accent-light);
  transition: var(--transition);
}

.feature-btn:hover {
  background: rgba(79, 125, 249, 0.2);
  border-color: var(--accent);
}

.planned-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.planned-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
}

.planned-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.planned-list .coming-soon-badge { margin-left: auto; }

.coming-soon-badge {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  padding: 2px 10px;
  border-radius: 999px;
}


/* =============================================
   랜딩 페이지 하단 콘텐츠
   ============================================= */
.landing-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.landing-content-block {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.landing-content-block h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.landing-content-block p,
.landing-content-block li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.landing-content-block ul {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.landing-content-block li {
  padding-left: 14px;
  position: relative;
}

.landing-content-block li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}


/* =============================================
   푸터
   ============================================= */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 28px 24px;
  font-size: 13px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  transition: var(--transition);
  padding: 2px 4px;
}

.footer-nav a:hover { color: var(--text-primary); }

.footer-nav span { color: var(--border-light); }

.footer-copy { color: var(--text-muted); }


/* =============================================
   반응형 — 1024px 이하
   ============================================= */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .header-nav .nav-more {
    display: block;
  }

  .landing-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .header-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* =============================================
   반응형 — 768px 이하 (모바일)
   ============================================= */
@media (max-width: 768px) {
  .hero {
    padding: 48px 16px 32px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 15px;
  }

  .filter-section,
  .tools-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tool-hero {
    padding: 28px 16px;
  }

  .tool-hero h1 { font-size: 22px; }

  .tool-container {
    padding: 24px 16px 48px;
  }

  .dimension-inputs {
    flex-direction: column;
    gap: 12px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    padding: 12px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .upload-area {
    padding: 30px 14px;
  }

  .two-column-grid,
  .batch-result-grid {
    grid-template-columns: 1fr;
  }

  .batch-download-all {
    margin-left: 0;
    width: 100%;
  }

  .rotate-quick-btns {
    grid-template-columns: repeat(3, 1fr);
  }

  .rotate-angle-row {
    flex-direction: column;
    align-items: stretch;
  }

  .rotate-angle-group { flex: none; }

  .crop-inputs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 14px;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tool-card {
    padding: 16px 14px;
  }

  .tool-card-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
}
