/* jobs-layout.css — 3단 레이아웃, 광고 배너, 헤더 영역 */
/* 
 * 구인구직 페이지 스타일
 */

/* ========================================
   Main Layout
======================================== */
.main-layout {
  background-color: var(--color-gray-50);
  padding: var(--spacing-10) 0;
  min-height: calc(100vh - var(--header-height));
}

.layout-container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-12);
  display: flex;
  gap: var(--spacing-8);
}

/* ========================================
   Ad Banners
======================================== */
.left-ad, .right-ad {
  width: var(--layout-side-ad);
  flex-shrink: 0;
  align-self: flex-start; /* sticky-in-flexbox 필수: 부모 늘어남 방지 */
}

.ad-sticky {
  position: sticky;
  top: calc(var(--header-height) + var(--spacing-8));
  display: flex;
  flex-direction: column;
  gap: var(--spacing-5);
}

.ad-card {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-4);
  color: var(--color-white);
  cursor: pointer;
  transition: opacity 0.2s;
}

.ad-card:hover {
  opacity: 0.9;
}

.ad-blue {
  background: linear-gradient(135deg, var(--color-ad-blue-from) 0%, var(--color-ad-blue-to) 100%);
}

.ad-orange {
  background: linear-gradient(135deg, var(--color-ad-orange-from) 0%, var(--color-ad-orange-to) 100%);
}

.ad-cyan {
  background: linear-gradient(135deg, var(--color-ad-cyan-from) 0%, var(--color-ad-cyan-to) 100%);
}

.ad-purple {
  background: linear-gradient(135deg, #9D4EDD 0%, #7209B7 100%);
}

.ad-icon {
  margin-bottom: var(--spacing-3);
}

.ad-title {
  font-size: var(--font-size-18);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-1);
}

.ad-subtitle {
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-medium);
  opacity: 0.9;
  margin-bottom: var(--spacing-3);
}

.ad-desc {
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-regular);
  opacity: 0.8;
  text-align: center;
  line-height: 1.6;
}

.ad-cta {
  margin-top: var(--spacing-4);
  padding: 6px var(--spacing-4);
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-11);
  font-weight: var(--font-weight-semibold);
}

@media (max-width: 1279px) {
  .left-ad, .right-ad {
    display: none;
  }
  
  .layout-container {
    justify-content: center;
  }
}

/* ========================================
   Main Content
======================================== */
.main-content {
  flex: 1;
  max-width: var(--layout-main-content);
  min-height: calc(100vh - var(--header-height) - 80px); /* sticky 작동 최소 높이 */
}

/* 구직 섹션 최소 높이 (sticky 배너 정상 작동) */
#seekerSection {
  min-height: 500px;
}

.content-wrapper {
  padding: var(--spacing-10);
  background-color: var(--color-gray-100);
  border-radius: var(--radius-lg);
}

/* ========================================
   Industry Stats Dashboard
======================================== */
.industry-stats {
  margin-bottom: var(--spacing-8);
}

.stats-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-4);
}

.stats-title {
  font-size: var(--font-size-20);
  font-weight: var(--font-weight-bold);
  color: #212121;
}

.stats-grid {
  display: flex;
  justify-content: flex-start; /* 최초 좌측 정렬 */
  flex-wrap: nowrap;
  gap: 12px;                   /* 원 간격 */
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
  align-items: center;
  /* margin으로 좌우 버튼 영역(44px)을 확보 → 스크롤 뷰포트 자체가 버튼 안쪽에 위치
     (padding은 스크롤 끝단만 처리하므로 뷰포트 우측 겹침을 막지 못함) */
  margin: 0 44px;
  padding: 10px 8px;           /* 상하 패딩 + 좌우 소폭 여백 */
}

.stats-grid-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-6);
}

.stat-card {
  /* 완전한 원형 보장: flex 자식이 늘어나지 않도록 고정 */
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  min-width: 150px;
  min-height: 150px;
  max-width: 150px;
  max-height: 150px;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
  border-radius: 50%;
  border: 2px solid #E8E8E8;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.stat-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  margin-bottom: var(--spacing-2);
}

.stat-name {
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-semibold);
  color: #424242;
  margin-bottom: 6px;
}

.stat-count-wrapper {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stat-count {
  font-size: var(--font-size-24);
  font-weight: var(--font-weight-bold);
  color: #212121;
}

.stat-unit {
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-500);
}

.stat-hot-badge {
  margin-top: 6px;
  padding: 2px var(--spacing-2);
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size:13px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
}

