* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

  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 {
  font: inherit;
  border: none;
  cursor: pointer;
}

/* =========================
   메인 영역
========================= */

.skill-analysis-main {
  width: 1380px;
  margin: 0 auto;
  padding: 28px 0 65px;
}

.page-heading {
  padding: 0 5px;
}

.page-title {
  margin: 0;

  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -1.4px;
}

.page-description {
  margin: 16px 0 25px;

  font-size: 19px;
  letter-spacing: -0.4px;
}

/* =========================
   직무 탭
========================= */

.category-tabs {
  min-height: 44px;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 17px;
}

.category-button {
  min-width: 80px;
  height: 42px;
  padding: 0 23px;

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

  border: 1px solid #d5d7dc;
  border-radius: 10px;

  font-size: 16px;
  font-weight: 500;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.category-button:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.category-button.active {
  color: var(--primary-color);
  background: #ffffff;
  border-color: var(--primary-color);
}

.category-loading {
  color: var(--light-text-color);

  font-size: 14px;
}

/* =========================
   상태 표시
========================= */

.page-state {
  margin-top: 35px;
  padding: 100px 20px;

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

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

  text-align: center;
}

.error-state {
  color: #d44d4d;
}

/* =========================
   분석 카드 영역
========================= */

.analysis-grid {
  margin-top: 35px;

  display: grid;
  grid-template-columns: 835px 515px;
  gap: 30px;
}

.analysis-card {
  height: 570px;
  padding: 30px 36px;

  background: var(--white-color);

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

.card-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-title {
  margin: 0;

  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.6px;
}

.job-count-row {
  margin-top: 18px;

  display: flex;
  align-items: center;
  gap: 32px;
}

.job-count-label {
  color: var(--sub-text-color);

  font-size: 17px;
}

.job-count-value {
  color: var(--sub-text-color);

  font-size: 17px;
  font-weight: 500;
}

/* =========================
   기술 순위
========================= */

.skill-ranking-list {
  margin-top: 23px;

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

.skill-ranking-item {
  display: grid;
  grid-template-columns:
    28px
    125px
    minmax(200px, 1fr)
    145px;

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

.skill-rank {
  color: #6d727c;

  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.skill-name {
  overflow: hidden;

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

.skill-bar-track {
  width: 100%;
  height: 9px;

  background: var(--bar-background);

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

.skill-bar-fill {
  display: block;

  width: 0;
  height: 100%;

  background: var(--bar-color);

  border-radius: inherit;

  transition: width 0.7s ease;
}

.skill-stat {
  color: #636874;

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

/* =========================
   기술 클라우드
========================= */

.cloud-card {
  position: relative;
}

.skill-cloud {
  position: relative;

  width: 100%;
  height: 420px;
  margin-top: 25px;

  overflow: hidden;
  border-bottom: 1px solid #eeeeef;
}

.cloud-word {
  position: absolute;

  display: inline-block;

  line-height: 1;
  white-space: nowrap;

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

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

.cloud-word:hover {
  z-index: 10;

  opacity: 0.75;
  transform: translate(-50%, -50%) scale(1.08);
}

/* =========================
   빈 데이터
========================= */

.empty-message {
  margin: 170px 0 0;

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

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

/* =========================
   분석 기준
========================= */

.analysis-standard {
  height: 98px;
  margin-top: 31px;
  padding: 0 30px;

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

  background: var(--notice-background);

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

.info-icon {
  width: 33px;
  height: 33px;

  flex-shrink: 0;

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

  color: var(--white-color);
  background: var(--primary-color);

  border-radius: 50%;

  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.standard-text {
  margin: 0;

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

  font-size: 18px;
}

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

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

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

  color: var(--white-color);
  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);
}