* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;

  color: var(--main-text-color);
  background: var(--background-color);

  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans KR",
    sans-serif;
}

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

button,
input {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blind {
  position: absolute;

  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);
  white-space: nowrap;

  border: 0;
}

/* =========================
   메인
========================= */

.dashboard-main {
  width: min(calc(100% - 40px), 1460px);
  margin: 0 auto;
  padding: 40px 0 100px;
}

/* =========================
   메인 소개 영역
========================= */

.hero-section {
  min-height: 220px;
  padding: 20px 80px 0;

  display: grid;
  grid-template-columns:
    minmax(420px, 1fr)
    minmax(500px, 700px);

  align-items: center;
  gap: 60px;
}

.hero-title {
  margin: 0;

  font-size: clamp(36px, 3vw, 48px);
  line-height: 1.28;
  letter-spacing: -2.3px;
  word-break: keep-all;
}

.hero-description {
  margin: 24px 0 32px;

  color: var(--sub-text-color);

  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.6px;
}

.search-form {
  width: min(100%, 510px);

  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 10px;
}

.search-input {
  width: 100%;
  height: 56px;
  padding: 0 22px;

  color: var(--main-text-color);
  background: #ffffff;

  border: 1px solid #bfc2ca;
  border-radius: 11px;

  font-size: 16px;

  outline: none;
}

.search-input::placeholder {
  color: #b3b6be;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(36, 81, 209, 0.12);
}

.search-button {
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  background: var(--primary-color);

  border-radius: 11px;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.search-button:hover {
  background: var(--primary-hover-color);
  transform: translateY(-1px);
}

.search-button svg {
  width: 30px;
  height: 30px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-image {
  display: block;

  width: 100%;
  max-width: 700px;
  height: auto;

  justify-self: center;

  object-fit: contain;
   transform: translateX(-20px);
}

.hero-image-placeholder {
  color: #999999;

  font-size: 15px;
  font-weight: 600;
}

/* =========================
   요약 카드
========================= */

.summary-section {
  margin-top: 10px;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.summary-card {
  min-height: 164px;
  padding: 26px 22px;

  display: flex;
  align-items: center;
  gap: 20px;

  background: var(--card-background);

  border: 1px solid var(--border-color);
  border-radius: 20px;

  cursor: pointer;
}

.summary-icon {
  width: 72px;
  height: 72px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
}

.summary-icon svg {
  width: 32px;
  height: 32px;

  fill: none;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-icon-blue {
  background: var(--blue-color);
}

.summary-icon-green {
  background: var(--green-color);
}

.summary-icon-yellow {
  background: var(--yellow-color);
}

.summary-icon-red {
  background: var(--red-color);
}

.summary-content {
  min-width: 0;
}

.summary-title {
  margin: 0 0 3px;

  color: #686d76;

  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
}

.summary-value-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.summary-value {
  font-size: clamp(31px, 2.5vw, 42px);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.summary-unit {
  padding-bottom: 5px;

  font-size: 15px;
  font-weight: 600;
}

.summary-description {
  margin: 18px 0 0;

  color: var(--sub-text-color);

  font-size: 16px;
  white-space: nowrap;
}

/* =========================
   분석 영역
========================= */

.analysis-section {
  margin-top: 38px;

  display: grid;
  grid-template-columns:
    minmax(0, 2.45fr)
    minmax(360px, 1fr);

  gap: 30px;
}

.analysis-card {
  min-height: 290px;
  padding: 30px 34px;

  background: var(--card-background);

  border: 1px solid var(--border-color);
  border-radius: 20px;
}

.analysis-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.analysis-title {
  margin: 0;

  font-size: 21px;
  letter-spacing: -0.7px;
}

.more-link {
  padding: 8px 13px;

  color: var(--primary-color);
  background: #edf2ff;

  border-radius: 8px;

  font-size: 13px;
  font-weight: 700;
}

/* =========================
   인기 기술
========================= */

.skill-ranking {
  margin-top: 28px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 55px;
  row-gap: 18px;
}

.skill-item {
  display: grid;
  grid-template-columns:
    25px
    85px
    minmax(80px, 1fr)
    52px;

  align-items: center;
  gap: 7px;

  font-size: 13px;
}

.skill-rank {
  color: #686d78;

  font-weight: 700;
  text-align: right;
}

.skill-name {
  overflow: hidden;

  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.skill-bar {
  height: 7px;

  background: #e5e9f3;

  border-radius: 20px;
  overflow: hidden;
}

.skill-bar-fill {
  display: block;

  width: 0;
  height: 100%;

  background: linear-gradient(
    90deg,
    #1753d8,
    #4c82e9
  );

  border-radius: inherit;

  transition: width 0.8s ease;
}

.skill-count {
  color: #5e626b;

  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

/* =========================
   지역별 공고
========================= */

.region-content {
  min-height: 220px;
  margin-top: 10px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.region-chart-wrapper {
  position: relative;

  width: 155px;
  height: 155px;

  flex-shrink: 0;
}

.region-chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

.region-list {
  min-width: 185px;

  display: flex;
  flex-direction: column;
  gap: 13px;
}

.region-item {
  display: grid;
  grid-template-columns:
    9px
    minmax(35px, 1fr)
    auto
    auto;

  align-items: center;
  gap: 8px;

  font-size: 12px;
}

.region-color {
  width: 8px;
  height: 8px;

  border-radius: 50%;
}

.region-name {
  font-weight: 600;
}

.region-count {
  font-weight: 700;
  text-align: right;
}

.region-rate {
  color: var(--sub-text-color);

  text-align: right;
}

/* =========================
   공통 상태
========================= */

.empty-message {
  grid-column: 1 / -1;

  margin: 50px 0;

  color: var(--light-text-color);

  font-size: 14px;
  text-align: center;
}

.error-message {
  grid-column: 1 / -1;

  margin: 50px 0;

  color: #d74c4c;

  font-size: 14px;
  text-align: center;
}

/* =========================
   토스트
========================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: 35px;
  z-index: 200;

  max-width: calc(100% - 40px);
  padding: 13px 22px;

  color: #ffffff;
  background: rgba(20, 22, 27, 0.92);

  border-radius: 10px;

  font-size: 14px;
  font-weight: 600;

  opacity: 0;
  visibility: hidden;

  transform: translate(-50%, 20px);

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;

  transform: translate(-50%, 0);
}