@charset "utf-8";

/* ==========================================================
   [1] 전역 래퍼 및 기본 설정
   ================================================---------- */
.craft-trend-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 80px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
    line-height: 1.65;
    box-sizing: border-box;
}

.craft-trend-wrap * {
    box-sizing: border-box;
}

/* ==========================================================
   [3] 섹션 구조 및 헤더
   ================================================---------- */
.ct-section {
    margin-bottom: 55px;
}

.ct-section-header {
    margin-bottom: 24px;
}

.ct-section-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.ct-section-header p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* ==========================================================
   [4] 그리드 시스템 & 인터랙티브 카드
   ================================================---------- */
.ct-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ct-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ct-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ct-card:hover {
    transform: translateY(-6px);
    border-color: #93c5fd;
    box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.12);
}

.ct-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.ct-card p {
    font-size: 0.93rem;
    color: #475569;
    margin: 0 0 12px;
}

.ct-card p:last-child {
    margin-bottom: 0;
}

/* 서브 배지 디자인 */
.ct-badge-sub {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    width: fit-content;
}

/* ==========================================================
   [5] 하이라이트 카드 및 통계 박스 스타일
   ================================================---------- */
.ct-card-highlight {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 16px;
    padding: 30px;
}

.ct-tag {
    display: inline-block;
    background: #16a34a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.ct-card-highlight h4 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #15803d;
    margin: 0 0 10px;
}

.ct-num-lg {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 8px;
}

.ct-source-note {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 12px;
    text-align: right;
}

/* ==========================================================
   [6] 테이블 스타일 (모던 고대비 디자인)
   ================================================---------- */
.ct-card table,
.ct-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.94rem;
}

.ct-card th,
.ct-table th {
    background-color: #f8fafc;
    color: #1e3a8a;
    font-weight: 700;
    padding: 16px;
    border-bottom: 2px solid #cbd5e1;
}

.ct-card td,
.ct-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.ct-card tbody tr:hover,
.ct-table tbody tr:hover {
    background-color: #f8fafc;
}

/* ==========================================================
   [7] 소프트 배경 섹션 및 리스트
   ================================================---------- */
.ct-bg-soft {
    background-color: #f8fafc;
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid #e2e8f0;
}

.ct-list-bullet {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0 0 0;
}

.ct-list-bullet li {
    margin-bottom: 10px;
    font-size: 0.94rem;
    color: #334155;
}

.ct-list-bullet li strong {
    color: #0f172a;
}

.ct-list-bullet li a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.ct-list-bullet li a:hover {
    text-decoration: underline;
}

/* ==========================================================
   [8] 다이나믹 CTA 배너
   ================================================---------- */
.ct-cta-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.3);
    margin-top: 50px;
}

.ct-cta-text strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.ct-cta-text p {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0;
}

.ct-cta-btn {
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.ct-cta-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.6);
}

/* ==========================================================
   [9] 모바일 반응형 미디어 쿼리
   ================================================---------- */
@media (max-width: 992px) {
    .ct-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ct-grid-2,
    .ct-grid-3 {
        grid-template-columns: 1fr;
    }

    .ct-hero {
        padding: 40px 20px;
    }

    .ct-hero h2 {
        font-size: 1.7rem;
    }

    .ct-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 20px;
    }

    .ct-cta-btn {
        width: 100%;
        text-align: center;
    }

    .ct-card table,
    .ct-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
/* 2. 히어로 배너 박스 */
.sim-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #162b4d 0%, #2554e8 55%, #4f46e5 100%);
  color: #fff;
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow: 0 14px 30px rgba(37, 84, 232, 0.2);
  margin-bottom: 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sim-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(37, 84, 232, 0.26);
}

.sim-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  animation: simShimmer 5.5s ease-in-out infinite;
  pointer-events: none;
}

.sim-hero .sim-badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 12px;
  animation: simFloatSoft 3.6s ease-in-out infinite;
}

.sim-hero h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(22px, 3.5vw, 31px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #fff;
}

.sim-hero p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14.5px;
  max-width: 780px;
  margin: 0;
}
#handmade-price-tool{--hp-primary:var(--v-primary,#0f3d6e);--hp-accent:var(--v-accent,#16a3a3);--hp-ink:var(--v-ink,#1f2b39);--hp-muted:var(--v-muted,#6b7a8c);--hp-line:var(--v-line,#e2e8f0);--hp-soft:var(--v-soft,#f5f8fb);color:var(--hp-ink);margin:0 auto 64px;font-size:16px;line-height:1.65}
#handmade-price-tool .hp-hero{padding:34px 36px;border-radius:20px;background:linear-gradient(120deg,#e8f6f5,#f5f8fb 70%);margin-bottom:26px}
#handmade-price-tool .hp-eyebrow{font-size:13px;font-weight:700;letter-spacing:.1em;color:var(--hp-accent);margin:0 0 8px}
#handmade-price-tool .hp-hero p{margin:0;color:var(--hp-muted)}
#handmade-price-tool .hp-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:22px;align-items:start}
#handmade-price-tool .hp-card{border:1px solid var(--hp-line);border-radius:16px;background:#fff;padding:26px;box-shadow:0 8px 28px rgba(15,61,110,.045)}
#handmade-price-tool .hp-card h3{font-size:20px;color:var(--hp-primary);margin:0 0 20px;letter-spacing:-.02em}
#handmade-price-tool .hp-fields{display:grid;grid-template-columns:1fr 1fr;gap:17px 16px}
#handmade-price-tool .hp-field{min-width:0}.hp-field.hp-wide{grid-column:1/-1}
#handmade-price-tool label{display:block;font-size:14px;font-weight:650;margin:0 0 7px;color:var(--hp-ink)}
#handmade-price-tool .hp-hint{font-size:12px;color:var(--hp-muted);font-weight:400;margin-left:5px}
#handmade-price-tool input,#handmade-price-tool select{width:100%;height:47px;border:1px solid var(--hp-line);border-radius:9px;padding:0 13px;background:#fff;color:var(--hp-ink);font:inherit;font-size:15px;outline:none}
#handmade-price-tool input:focus,#handmade-price-tool select:focus{border-color:var(--hp-accent);box-shadow:0 0 0 3px rgba(22,163,163,.12)}
#handmade-price-tool .hp-input-suffix{position:relative}.hp-input-suffix input{padding-right:58px}.hp-input-suffix span{position:absolute;right:13px;top:50%;transform:translateY(-50%);font-size:13px;color:var(--hp-muted);pointer-events:none}
#handmade-price-tool .hp-photo{display:flex;gap:14px;align-items:center}.hp-photo input{padding:9px;height:auto;flex:1;min-width:0}.hp-photo-preview{width:82px;height:70px;border-radius:10px;border:1px dashed var(--hp-line);background:var(--hp-soft);display:grid;place-items:center;overflow:hidden;color:var(--hp-muted);font-size:12px;text-align:center;flex:none}.hp-photo-preview img{width:100%;height:100%;object-fit:cover}
#handmade-price-tool .hp-results{position:sticky;top:20px}.hp-result-main{padding:22px;border-radius:13px;background:var(--hp-primary);color:#fff;margin-bottom:15px}.hp-result-main span{display:block;color:rgba(255,255,255,.76);font-size:14px}.hp-result-main strong{display:block;font-size:34px;line-height:1.25;letter-spacing:-.04em;margin-top:5px}.hp-result-main small{color:rgba(255,255,255,.75)}
#handmade-price-tool .hp-breakdown{display:grid;gap:0}.hp-breakdown div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--hp-line);font-size:14px}.hp-breakdown div:last-child{border-bottom:0}.hp-breakdown span{color:var(--hp-muted)}.hp-breakdown b{font-weight:650;text-align:right}.hp-note{font-size:12px;color:var(--hp-muted);margin:16px 0 0;line-height:1.6}
#handmade-price-tool .hp-search{margin-top:22px}.hp-search-row{display:flex;gap:9px}.hp-search-row input{flex:1;min-width:0}.hp-button{height:47px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;background:var(--hp-accent);color:#fff;padding:0 17px;font:inherit;font-size:14px;font-weight:700;text-decoration:none;white-space:nowrap;cursor:pointer;transition:filter .15s}.hp-button:hover{filter:brightness(.94);color:#fff}.hp-search-help{font-size:12px;color:var(--hp-muted);margin:9px 0 0}
@media(max-width:800px){#handmade-price-tool .hp-grid{grid-template-columns:1fr}.hp-results{position:static}}
@media(max-width:520px){#handmade-price-tool{font-size:15px;margin-bottom:40px}#handmade-price-tool .hp-hero{padding:25px 21px;border-radius:15px}#handmade-price-tool h2{font-size:25px}#handmade-price-tool .hp-card{padding:20px 17px}.hp-fields{grid-template-columns:1fr!important}.hp-field.hp-wide{grid-column:auto!important}.hp-search-row{flex-direction:column}.hp-button{width:100%}.hp-result-main strong{font-size:30px}}
.hp-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-sizing: border-box;
}

.hp-search label {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.hp-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

#hp-keyword {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#hp-keyword::placeholder {
  color: #94a3b8;
}

#hp-keyword:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.hp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 10px;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.hp-button:active {
  transform: translateY(1px);
}

/* 아이디어스에서 검색 버튼 (포인트 컬러) */
#hp-search-link {
  color: #ffffff;
  background-color: #2563eb;
  border: 1px solid #2563eb;
}

#hp-search-link:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

/* 회원들 추천가격 알아보기 버튼 (보조 액션 버튼) */
.hp-share-button {
  width: 100%;
  color: #1e293b;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  margin-top: 4px;
}

.hp-share-button:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.hp-search-help {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #64748b;
}

/* 모바일 화면 대응 */
@media (max-width: 520px) {
  .hp-search {
    padding: 16px;
  }

  .hp-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  #hp-keyword,
  #hp-search-link {
    width: 100%;
  }
}
