/* ==========================================
   인재정보 페이지 - Toss-Inspired Design
   ========================================== */

/* 메인 컨테이너 */
.talent-main {
  min-height: calc(100vh - 200px);
  background: #f5f5f5;
  padding: 48px 0 80px;
}

.talent-main .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   페이지 헤더
   ========================================== */
.page-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: #191f28;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.page-description {
  font-size: 16px;
  color: #6b7684;
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

/* ==========================================
   검색 영역
   ========================================== */
.search-section {
  margin-bottom: 32px;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-row {
  display: flex;
  gap: 12px;
}

.search-wrapper {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b95a1;
  font-size: 18px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 56px;
  padding: 0 20px 0 52px;
  border: 1px solid #e5e8eb;
  border-radius: 12px;
  font-size: 15px;
  color: #191f28;
  background: #ffffff;
  transition: all 0.2s ease;
  outline: none;
}

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

.search-input:focus {
  border-color: var(--brand-color, #E84545);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.btn-search {
  height: 56px;
  padding: 0 32px;
  background: var(--brand-color, #E84545);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-search:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 필터 행 */
.filter-row {
  display: flex;
  gap: 12px;
}

.filter-select {
  height: 48px;
  padding: 0 40px 0 16px;
  border: 1px solid #e5e8eb;
  border-radius: 10px;
  font-size: 14px;
  color: #4e5968;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b95a1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.filter-select:hover {
  border-color: #d1d6db;
}

.btn-register {
  height: 48px;
  padding: 0 24px;
  background: var(--brand-color, #E84545);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-left: auto;
}

.btn-register:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

/* ==========================================
   결과 정보
   ========================================== */
.result-info {
  font-size: 15px;
  color: #191f28;
  margin-bottom: 24px;
  font-weight: 400;
}

.result-info strong {
  color: var(--brand-color, #E84545);
  font-weight: 700;
}

/* ==========================================
   메인 콘텐츠 레이아웃
   ========================================== */
.content-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* ==========================================
   프리미엄 사이드바 - 큰 이미지 배너 스타일
   ========================================== */
.premium-board {
  width: 380px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  background: #ffffff;
  border: 1px solid #e8ebf3;
  border-radius: 10px;
  padding: 12px;
}

.board-header {
  margin-bottom: 10px;
}

.board-header h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #222;
}

/* 배너 타일 리스트 */
.premium-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.premium-tile {
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.premium-tile:hover {
  transform: translateY(-2px);
}

.tile-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid #e8ebf3;
  background: linear-gradient(180deg, #e9eef7, #dbe3f3);
  object-fit: cover;
  transition: all 0.2s ease;
}

.premium-tile:hover .tile-image {
  border-color: #d6e7ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   이력서 목록 - 스크린샷 디자인 100% 재현
   ========================================== */
.resume-list-wrapper {
  flex: 1;
  min-width: 0;
}

.resume-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.resume-card {
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 12px;
  padding: 20px 24px;
  transition: all 0.2s ease;
  position: relative;
}

.resume-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* 이력서 헤더 */
.resume-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.resume-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.badge-new {
  background: var(--brand-color, #E84545);
  color: #ffffff;
}

.badge-career {
  background: var(--brand-color, #E84545);
  color: #ffffff;
}

.badge-region {
  background: transparent;
  color: #6b7684;
  border: none;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-region i {
  color: #6b7684;
  font-size: 12px;
}

.badge-location {
  background: transparent;
  color: #6b7684;
  border: none;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-location i {
  color: #6b7684;
  font-size: 11px;
}

.badge-new-label {
  background: var(--brand-color, #E84545);
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  padding: 3px 8px;
}

.resume-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9ca3af;
}

.resume-id {
  font-weight: 500;
  color: #9ca3af;
}

.divider {
  color: #d1d6db;
}

.resume-date,
.resume-views {
  color: #9ca3af;
  font-size: 12px;
}

/* 이력서 타이틀 */
.resume-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.resume-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.resume-card:hover .resume-title a {
  color: var(--brand-color, #E84545);
}

/* 이력서 설명 */
.resume-description {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

/* 이력서 푸터 */
.resume-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 0;
  border-top: none;
}

.btn-detail-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--brand-color, #E84545);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-detail-view:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-detail-view i {
  font-size: 14px;
  font-weight: 700;
}

/* 빈 상태 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state i {
  font-size: 64px;
  color: #d1d6db;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 16px;
  color: #8b95a1;
  margin: 0;
}

/* ==========================================
   페이지네이션
   ========================================== */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e8eb;
  border-radius: 10px;
  background: #ffffff;
  color: #4e5968;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
}

.page-btn:hover:not(:disabled) {
  background: #f2f4f6;
  border-color: #d1d6db;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 4px;
}

.page-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #4e5968;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-num:hover {
  background: #f2f4f6;
}

.page-num.active {
  background: #191f28;
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================
   반응형 디자인
   ========================================== */
@media (max-width: 1024px) {
  .content-layout {
    flex-direction: column;
  }

  .premium-board {
    width: 100%;
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .talent-main {
    padding: 40px 0 60px;
  }

  .talent-main .container {
    padding: 0 16px;
  }

  .page-header {
    margin-bottom: 32px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-description {
    font-size: 15px;
  }

  .search-row {
    flex-direction: column;
  }

  .btn-search {
    width: 100%;
    justify-content: center;
  }

  .filter-row {
    flex-wrap: wrap;
  }

  .filter-select {
    flex: 1;
    min-width: calc(50% - 6px);
  }

  .btn-register {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .resume-card {
    padding: 20px;
    border-radius: 12px;
  }

  .resume-title {
    font-size: 16px;
  }

  .page-btn,
  .page-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 24px;
  }

  .filter-select {
    min-width: 100%;
  }

  .pagination-wrapper {
    gap: 6px;
  }

  .page-btn,
  .page-num {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .btn-detail-view {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================
   애니메이션
   ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.resume-card {
  animation: fadeInUp 0.5s ease backwards;
}

.resume-card:nth-child(1) { animation-delay: 0.05s; }
.resume-card:nth-child(2) { animation-delay: 0.1s; }
.resume-card:nth-child(3) { animation-delay: 0.15s; }
.resume-card:nth-child(4) { animation-delay: 0.2s; }
.resume-card:nth-child(5) { animation-delay: 0.25s; }
.resume-card:nth-child(6) { animation-delay: 0.3s; }
.resume-card:nth-child(7) { animation-delay: 0.35s; }
.resume-card:nth-child(8) { animation-delay: 0.4s; }

/* ==========================================
   상세보기 페이지 스타일
   ========================================== */

/* 브레드크럼 */
.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 14px;
  color: #8b95a1;
}

.detail-breadcrumb a {
  color: #8b95a1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.detail-breadcrumb a:hover {
  color: var(--brand-color, #E84545);
}

.detail-breadcrumb i {
  font-size: 12px;
}

.detail-breadcrumb span {
  color: #191f28;
  font-weight: 600;
}

/* 상세 레이아웃 */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

/* 메인 콘텐츠 */
.detail-main {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e8eb;
  overflow: hidden;
}

/* 헤더 */
.detail-header {
  padding: 32px;
  border-bottom: 1px solid #f2f4f6;
}

.detail-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.detail-title {
  font-size: 28px;
  font-weight: 700;
  color: #191f28;
  margin: 0 0 16px 0;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #8b95a1;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item i {
  font-size: 14px;
}

/* 정보 섹션 */
.detail-info-section {
  padding: 32px;
  border-bottom: 1px solid #f2f4f6;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #191f28;
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-label {
  font-size: 13px;
  font-weight: 600;
  color: #8b95a1;
}

.info-value {
  font-size: 15px;
  font-weight: 600;
  color: #191f28;
}

/* 상세 내용 섹션 */
.detail-content-section {
  padding: 32px;
  border-bottom: 1px solid #f2f4f6;
}

.detail-content {
  font-size: 15px;
  line-height: 1.8;
  color: #4e5968;
  white-space: pre-wrap;
}

/* 네비게이션 */
.detail-navigation {
  padding: 24px 32px;
  text-align: center;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #f9fafb;
  border: 1px solid #e5e8eb;
  border-radius: 10px;
  color: #4e5968;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: #ffffff;
  border-color: #d1d6db;
  color: #191f28;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 사이드바 */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}

/* 연락처 카드 */
.contact-card {
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 16px;
  padding: 24px;
}

.contact-title {
  font-size: 18px;
  font-weight: 700;
  color: #191f28;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.contact-title i {
  color: var(--brand-color, #E84545);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f2f4f6;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-label {
  font-size: 14px;
  color: #8b95a1;
  font-weight: 500;
}

.contact-value {
  font-size: 14px;
  color: #191f28;
  font-weight: 600;
}

.btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--brand-color, #E84545);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-contact:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

/* 연락처 열람 버튼 스타일 */
.btn-view-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 12px;
}

.btn-view-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-view-contact i {
  font-size: 13px;
}

/* 민감정보 숨김 처리 */
.hidden-text {
  color: #999;
  font-weight: 500;
  letter-spacing: 1px;
}

.info-hidden {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 열람 후 연락 가능 버튼 (비활성화 상태) */
.btn-view-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #999 !important;
}

.btn-view-disabled:hover {
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

/* 상세보기 페이지 프리미엄 보드 스타일 */
.detail-premium {
  width: 100%;
  position: static;
}

/* 반응형 - 상세보기 */
@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .detail-header {
    padding: 24px;
  }

  .detail-title {
    font-size: 22px;
  }

  .detail-info-section,
  .detail-content-section {
    padding: 24px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .detail-navigation {
    padding: 20px 24px;
  }
}

/* ==========================================
   Footer 스타일 오버라이드 방지
   ========================================== */
/* talent 페이지에서 footer 텍스트가 제대로 보이도록 보장 */
.footer-new {
  background: #3d3d3d !important;
  color: #b3b3b3 !important;
}

.footer-new .footer-nav-link {
  color: #e0e0e0 !important;
}

.footer-new .cs-title {
  color: #999 !important;
}

.footer-new .cs-number {
  color: #fff !important;
}

.footer-new .info-label {
  color: #999 !important;
}

.footer-new .info-value {
  color: #b3b3b3 !important;
}

.footer-new .company-name {
  color: #e0e0e0 !important;
}

.footer-new .company-details {
  color: #999 !important;
}

.footer-new .copyright {
  color: #777 !important;
}
