/**
 * 구인구직(job) — 모집상태·프로필 썸네일 뱃지
 */

.job-profile-thumb {
  position: relative;
}

.job-profile-thumb__media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(145deg, #f5f3ff, #ede9fe);
}

.job-profile-thumb__media--profile {
  background: linear-gradient(145deg, #faf5ff, #e9d5ff);
}

.job-profile-thumb__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-profile-thumb__initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  font-size: 2rem;
  font-weight: 800;
  color: #6d28d9;
  background: linear-gradient(145deg, #faf5ff, #ddd6fe);
}

.job-recruit-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.job-recruit-badge--thumb {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.job-recruit-badge--recruiting {
  background: rgba(124, 58, 237, 0.92);
}

.job-recruit-badge--completed {
  background: rgba(100, 116, 139, 0.92);
}

.job-soldout-ribbon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%) rotate(-12deg);
  padding: 6px 11px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.24);
  pointer-events: none;
}

.job-profile-thumb__badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 3;
  line-height: 0;
}

.job-profile-thumb__badge .community-login-box__badge-icon {
  width: 28px;
  height: 28px;
  font-size: 14px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  border: 2px solid #fff;
}

.community-post--job .community-badge.job-recruit-badge--recruiting {
  background: #ede9fe;
  color: #6d28d9;
}

.community-post--job .community-badge.job-recruit-badge--completed {
  background: #f1f5f9;
  color: #475569;
}

.job-recruit-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
}

.job-recruit-panel__label {
  font-size: 13px;
  font-weight: 700;
  color: #5b21b6;
}

.job-recruit-panel__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.job-recruit-panel__btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.job-recruit-panel__btn.is-active {
  border-color: #7c3aed;
  background: #ede9fe;
  color: #5b21b6;
}

.job-recruit-panel__btn[data-job-recruit-status="completed"].is-active {
  border-color: #64748b;
  background: #f1f5f9;
  color: #475569;
}

.community-view-page__job-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.community-view-page__job-profile .job-profile-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
}

.community-view-page__job-profile .job-profile-thumb__media {
  border-radius: 50%;
}

.community-view-page__job-profile .job-profile-thumb__initial {
  min-height: 56px;
  font-size: 1.25rem;
}

.job-recruit-badge--view {
  font-size: 12px;
  padding: 4px 10px;
}

.community-post__shop-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.community-post__shop-link:hover {
  background: #dbeafe;
}

.job-shop-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 1rem;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
}

.job-shop-panel__thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: #dbeafe;
}

.job-shop-panel__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.job-shop-panel__eyebrow {
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
}

.job-shop-panel__name {
  overflow: hidden;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-shop-panel__meta {
  color: #64748b;
  font-size: 12px;
}

.job-shop-panel__link,
.job-detail-panel__shop-link {
  color: #1d4ed8;
  font-weight: 900;
  text-decoration: none;
}

.job-shop-panel__link {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-size: 12px;
}

.job-detail-panel__shop-link:hover,
.job-shop-panel__link:hover {
  text-decoration: underline;
}

/* 구인구직 상세 — 템플릿 정보 패널 */
.job-detail-panel {
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid #ddd6fe;
  border-radius: 16px;
  background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
}

.job-detail-panel__block + .job-detail-panel__block {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid #ede9fe;
}

.job-detail-panel__title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #ede9fe;
  font-size: 0.98rem;
  font-weight: 800;
  color: #5b21b6;
  letter-spacing: -0.01em;
}

.job-detail-panel__list {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.job-detail-panel__item {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7rem) minmax(0, 1fr);
  gap: 0.45rem 1rem;
  align-items: start;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #ede9fe;
  font-size: 0.9rem;
  line-height: 1.55;
}

.job-detail-panel__item--block,
.job-detail-panel__item--solo {
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 0.85rem 0.95rem;
}

.job-detail-panel__item--block dt {
  display: block;
  margin: 0 0 0.15rem;
  font-size: 0.74rem;
  font-weight: 800;
  color: #7c3aed;
}

.job-detail-panel__item dt {
  margin: 0;
  padding-top: 0.1rem;
  font-size: 0.74rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.01em;
}

.job-detail-panel__item dd,
.job-detail-panel__value {
  margin: 0;
  color: #0f172a;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.job-detail-panel__value--multiline {
  white-space: pre-line;
  font-weight: 500;
  line-height: 1.75;
  color: #1e293b;
}

.job-detail-panel__shop-link {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.job-detail-panel__shop-link:hover {
  color: #6d28d9;
  text-decoration: underline;
}

.job-location-panel {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
}

.job-location-panel__title {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #1d4ed8;
}

.job-location-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.job-location-panel__item {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #dbeafe;
}

.job-location-panel__item dt {
  margin: 0 0 0.2rem;
  font-size: 0.76rem;
  font-weight: 800;
  color: #64748b;
}

@media (max-width: 640px) {
  .job-shop-panel {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .job-shop-panel__link {
    width: 100%;
    text-align: center;
  }
}

.job-location-panel__item dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.job-location-panel__map {
  margin-top: 0.9rem;
}

@media (max-width: 640px) {
  .job-detail-panel__item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .job-detail-panel__item dt {
    padding-top: 0;
  }

  .job-location-panel__grid {
    grid-template-columns: 1fr;
  }
}

/* 구인구직 상세 — 우측 요약·지도·액션 (중고장터 패턴) */
.community-view-page__aside-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
  position: sticky;
  top: calc(var(--eottae-header-h, 64px) + 12px);
}

.community-view-page__aside-column .community-sidebar {
  position: static;
  top: auto;
}

.job-view-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.job-view-aside__summary {
  margin: 0;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--eottae-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.06));
}

.job-view-aside__badges {
  margin-bottom: 0.65rem;
}

.job-view-aside__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
  color: #0f172a;
}

.job-view-aside__meta {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.job-view-aside__meta > div {
  display: grid;
  gap: 0.12rem;
}

.job-view-aside__meta dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
}

.job-view-aside__meta dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.45;
  word-break: break-word;
}

.job-view-aside .shop-detail-map {
  margin: 0;
}

.job-view-aside .shop-detail-map.is-live .shop-detail-map__canvas,
.job-view-aside .shop-detail-map__map {
  min-height: 180px;
}

.job-view-aside .shop-detail-map__embed {
  height: 180px;
}

.job-view-aside .inquiry-button--detail {
  margin: 0;
}

@media (max-width: 960px) {
  .community-view-page__aside-column {
    display: contents;
  }

  .community-view-page .job-view-aside {
    order: 3;
    width: 100%;
    max-width: none;
    align-self: stretch;
    box-sizing: border-box;
  }

  .community-view-page .community-sidebar__card,
  .community-view-page .community-sidebar__ad,
  .community-view-page .community-ad-carousel {
    order: 4;
  }
}
