@charset "utf-8";

/* ==========================================================
   [1] 전역 래퍼 및 기본 설정
   ================================================---------- */

.craft-tool-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-tool-wrap * {
  box-sizing: border-box;
}


/* 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;
}

.tool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 36px;
}

.tool-nav a,
.tool-nav button {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: 0.18s;
}

.tool-nav a:hover,
.tool-nav button:hover,
.tool-nav button.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: #f8f6ff;
}

.tool-nav button.is-active {
  font-weight: 800;
}

.tool-section {
  margin: 38px 0;
}

.tool-section[hidden] {
  display: none;
}

.tool-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.tool-section-head > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #f0ecff;
  color: #6747cf;
  font-weight: 800;
}

.tool-section-head h3 {
  margin: 0 0 4px;
  font-size: 23px;
}

.tool-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  display: flex;
  overflow: hidden;
  min-height: 154px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 4px 15px #28375408;
  transition: transform 0.18s, box-shadow 0.18s;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px #28375412;
}

.tool-card[hidden] {
  display: none;
}

.tool-visual {
  position: relative;
  display: flex;
  flex: 0 0 138px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(145deg, #f4f0ff, #edf8fc);
  color: #47556e;
}

.tool-visual .tool-emoji {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: #ffffffc9;
  font-size: 39px;
  box-shadow: 0 4px 14px #3b496012;
}

.tool-visual small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.tool-photo {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-attribution {
  display: none;
  position: absolute;
  right: 4px;
  bottom: 4px;
  max-width: calc(100% - 8px);
  padding: 3px 5px;
  border-radius: 5px;
  background: #fffffff0;
  color: #344054;
  font-size: 9px;
  line-height: 1.2;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-visual.has-photo .tool-photo,
.tool-visual.has-photo .tool-attribution {
  display: block;
}

.tool-visual.has-photo .tool-emoji {
  display: none;
}

.tool-visual.has-photo small {
  position: absolute;
  left: 7px;
  top: 7px;
  padding: 4px 7px;
  border-radius: 9px;
  background: #ffffffdf;
}

.tool-info {
  padding: 16px 18px;
}

.tool-category {
  color: #7559d3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.tool-info h4 {
  margin: 5px 0 7px;
  font-size: 17px;
}

.tool-info p {
  margin: 0 0 12px;
  color: #5f6a7d;
  font-size: 13px;
  line-height: 1.6;
}

.tool-info p.tool-price {
  margin: 0 0 11px;
  color: #28354a;
  font-size: 13px;
}

.tool-price strong {
  color: #684bc9;
}

.tool-image-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #684bc9;
  text-decoration: none;
}

.tool-image-link:hover {
  text-decoration: underline;
}

.tool-note {
  margin-top: 42px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #f6f7fa;
  color: #596579;
  font-size: 13px;
  line-height: 1.7;
}

.tool-note strong {
  color: var(--ink);
}

.tool-note p {
  margin: 6px 0 0;
}

.tool-sources {
  margin: 16px 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #596579;
  font-size: 13px;
  line-height: 1.8;
}

.tool-sources strong {
  color: var(--ink);
}

.tool-sources ul {
  margin: 8px 0;
  padding-left: 19px;
}

.tool-sources a {
  color: #684bc9;
}

.tool-sources p {
  margin: 6px 0 0;
}

@media (max-width: 720px) {
  .craft-tool-wrap {
    padding: 14px 13px 44px;
  }

  .tool-hero {
    padding: 38px 18px 25px;
    border-radius: 19px;
  }

  .tool-search {
    flex-wrap: wrap;
  }

  .tool-search label {
    display: none;
  }

  .tool-nav {
    gap: 6px;
  }

  .tool-nav a,
  .tool-nav button {
    padding: 7px 10px;
    font-size: 12px;
  }

  .tool-section-head h3 {
    font-size: 20px;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 145px;
  }

  .tool-visual {
    flex-basis: 112px;
  }
}

@media (max-width: 390px) {
  .tool-visual {
    flex-basis: 90px;
  }

  .tool-visual .tool-emoji {
    width: 60px;
    height: 60px;
    font-size: 32px;
  }

  .tool-info {
    padding: 13px;
  }

  .tool-info h4 {
    font-size: 15px;
  }
}
