/* Pretendard 폰트 import */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* 전역 스타일 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui,
    Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    sans-serif;
}

body {
  overflow-x: hidden;
  /* 가로 스크롤 방지 */
  max-width: 100vw;
}

/* 헤더 스타일 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #eee;
  z-index: 50;
  padding: 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: block;
}

.header-logo img {
  height: 42px;
  width: auto;
}

.header-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-right: 8px;
}

/* 폰트 weight 클래스 */
.font-thin {
  font-weight: 100;
}

.font-extralight {
  font-weight: 200;
}

.font-light {
  font-weight: 300;
}

.font-regular {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.font-black {
  font-weight: 900;
}

/* 메인 슬라이더 스타일 */
.main-slider {
  height: auto;
  position: relative;
  padding: 0 16px;
  margin-top: 32px;
  width: 100%;
}

.mainSwiper {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 슬라이드 줌 효과 관련 스타일 제거 */
.mainSwiper .swiper-slide {
  overflow: hidden;
}

/* .mainSwiper .swiper-slide-active .slide-content img {
  animation: zoomEffect 5s ease-in-out forwards;
} */

/* @keyframes zoomEffect {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
} */

.slide-content {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.slide-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0.8;
  /* transition: transform 1.2s ease; */
}

.slide-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  border-radius: 12px;
}

.slide-text {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  color: white;
  z-index: 10;
}

.slide-text h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  letter-spacing: -0.05em;
}

.slide-text p {
  font-size: 16px;
  margin-bottom: 8px;
  opacity: 0.9;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.slide-info {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.slide-info span {
  font-size: 12px;
  padding: 3px 8px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-weight: 500;
}

.salary {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}

/* Swiper 페이지네이션 커스텀 스타일 */
.swiper-pagination {
  position: absolute;
  text-align: right;
  padding-right: 16px;
  bottom: 16px !important;
  top: auto;
  left: auto;
  right: 0;
  z-index: 20;
  width: auto;
}

.swiper-pagination-fraction {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.swiper-pagination-current {
  color: #fff;
}

.swiper-pagination-total {
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  padding-left: 2px;
}

.swiper-pagination-total::before {
  content: "";
  position: absolute;
  left: 4px;
  color: rgba(255, 255, 255, 0.7);
}

/* 기존 after 가상요소 제거 */
.swiper-pagination-current::after {
  display: none;
}

/* 아이콘 래퍼 스타일 */
.icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.icon-wrapper img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* 퀵메뉴 스타일 */
.quick-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px 16px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.quick-item span {
  font-size: 15px;
  color: #333;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* VIP Zone */
.vip-zone {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.vipSwiper {
  overflow: hidden;
  transition: all 0.3s ease;
}

.vipSwiper .swiper-slide {
  transition: transform 0.8s ease;
  opacity: 1;
}

.vipSwiper .swiper-slide-active {
  opacity: 1;
}

.vip-items {
  width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
}

.vip-nav-prev,
.vip-nav-next {
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 20;
}

.vip-nav-prev {
  left: 4px;
  height: 32px;
  width: 32px;
}

.vip-nav-next {
  right: 4px;
  height: 32px;
  width: 32px;
}

.vip-nav-prev:hover,
.vip-nav-next:hover {
  background-color: #f3f4f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vip-nav-prev svg,
.vip-nav-next svg {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 특별히 next 버튼 문제 해결을 위한 스타일 */
.vip-nav-next::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  bottom: -5px;
  left: -5px;
  z-index: -1;
}

.vip-item {
  background-color: #fff;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.vip-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.logo-wrapper {
  transition: all 0.3s ease;
}

.logo-wrapper img {
  object-fit: contain;
  transition: transform 0.3s ease;
  border-radius: 50%;
  border: 2px solid #f0f0f0;
  width: 100%;
  height: 100%;
  background-color: #fff;
}

.vip-item:hover .logo-wrapper img {
  transform: scale(1.05);
  border-color: #e0e0e0;
}

.vip-pagination {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  padding-right: 10px;
  margin-right: 5px;
  display: inline-block;
}

.clinic-info {
  width: 100%;
  text-align: center;
}

.clinic-info p.text-sm {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  padding: 0 2px;
  box-sizing: border-box;
}

/* 채용 정보 제목 두 줄 스타일 */
.title-line-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.title-line-wrapper .line-1 {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-line-wrapper .line-2 {
  display: block;
  margin-top: 2px;
  color: #333;
}

/* 최신 채용 정보 */
.recent-jobs {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.job-item {
  transition: all 0.3s ease;
}

.job-item:hover {
  background-color: #f8f9fa;
}

.job-item:last-child {
  border-bottom: none;
}

.job-item .text-md {
  font-size: 0.925rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
  max-width: calc(100% - 20px);
}

.logo-sm {
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.logo-sm img {
  object-fit: contain;
  transition: transform 0.3s ease;
  border-radius: 50%;
  border: 2px solid #f0f0f0;
  width: 100%;
  height: 100%;
  background-color: #fff;
}

.job-item:hover .logo-sm img {
  transform: scale(1.05);
  border-color: #e0e0e0;
}

/* 채용 유형 배지 스타일 */
.job-type {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 500;
  color: #666;
  position: relative;
  vertical-align: baseline;
}

.job-type::before {
  content: "/";
  margin-right: 6px;
  color: #ccc;
  font-weight: 400;
}

.job-type.highlight {
  color: white;
  font-weight: 600;
  background-color: #ffb700;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 8px;
}

.job-type.highlight::before {
  content: "";
  margin-right: 0;
}

/* 주말알바, 급구, 단기 빨간색 뱃지 스타일 */
.job-type.highlight-red {
  color: white;
  font-weight: 600;
  background-color: #ff3b30;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 8px;
}

.job-type.highlight-red::before {
  content: "";
  margin-right: 0;
}

/* New 뱃지 스타일 */
.badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  padding: 1px 6px;
  height: 16px;
  font-size: 10px;
  font-weight: 600;
  color: white;
  background-color: #ffb700;
  border-radius: 8px;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(255, 183, 0, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 183, 0, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(255, 183, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 183, 0, 0);
  }
}

/* 광고 배너 */
.ad-banner {
  position: relative;
  width: 100%;
  height: 80px;
  background: linear-gradient(90deg, #fff9e6 0%, #ffefcc 100%);
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ad-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.ad-content::before {
  content: "";
  width: 40px;
  height: 40px;
  background: url("../image/asset/sub-banner.webp") no-repeat center;
  background-size: contain;
}

.ad-content p {
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

.ad-content img {
  transition: transform 0.3s ease;
  border-radius: 50%;
  border: 2px solid #f0f0f0;
  background-color: #fff;
  width: 100%;
  height: 100%;
}

.ad-content:hover img {
  transform: scale(1.05);
  border-color: #e0e0e0;
}

/* 사이드 메뉴 스타일 */
.side-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: white;
  z-index: 1000;
  transition: right 0.3s ease-in-out;
}

.side-menu.active {
  right: 0;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.menu-overlay.active {
  display: block;
}

.side-menu-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e5e7eb;
}

/* user-avatar::before 가상 요소 제거 (주석 처리) */
.user-avatar::before {
  display: none;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info span {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.close-menu {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  font-size: 24px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-list {
  list-style: none;
  padding: 12px 0;
}

.menu-list li a {
  display: block;
  padding: 4px 20px;
  color: #333;
  text-decoration: none;
  font-size: 12px;
  transition: background-color 0.2s;
}

.menu-list li a:hover {
  background-color: #f5f5f5;
}

/* 버튼 스타일 */
button {
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
}

button:hover {
  opacity: 0.8;
}

.header-notice {
  position: relative;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-right: 4px;
}

.header-notice::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 23px;
  height: 23px;
  background: url("../image/asset/notice.svg") no-repeat center;
  background-size: contain;
  opacity: 0.7;
}

.header-notice::after {
  content: "1";
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  background: #ff4b4b;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.header-notice:hover::before {
  opacity: 1;
}

.header-menu {
  position: relative;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-right: 4px;
}

.header-menu::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 23px;
  height: 23px;
  background: url("../image/asset/menu.svg") no-repeat center;
  background-size: contain;
}

/* 상단 이동 버튼 */
#topButton {
  opacity: 0;
  visibility: visible;
  box-shadow: 0 2px 10px rgba(255, 193, 7, 0.3);
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  background-color: #ffc107;
}

#topButton:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
  background-color: #ffb300;
}

@media (max-width: 640px) {
  #topButton {
    bottom: 100px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  #topButton svg {
    width: 20px;
    height: 20px;
  }
}

/* 채용정보 카드 스타일 */
.job-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background-color: white;
  transition: all 0.2s ease;
}

.job-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border-color: #d1d5db;
}

.user-profile {
  background-color: #f3f4f6;
}

.job-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 3px 6px;
  border-radius: 4px;
  margin-right: 5px;
  font-weight: 500;
}

.badge-vip {
  background-color: #fff4e5;
  color: #ff9500;
}

.badge-new {
  background-color: #e6f7ff;
  color: #0094ff;
}

.badge-hot {
  background-color: #ffe5e5;
  color: #ff3b30;
}

/* 검색 영역 스타일 */
.search-area {
  background-color: #f9fafb;
  border-radius: 12px;
  margin-bottom: 16px;
}

.filter-button {
  border: 1px solid #e5e7eb;
  background-color: white;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-button svg {
  width: 16px;
  height: 16px;
}

/* 검색 입력창 */
.search-input {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 10px 16px;
  width: 100%;
  background-color: white;
}

.search-button {
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* 정렬 버튼 스타일 */
.sort-button {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #6b7280;
  padding: 6px 10px;
  border-radius: 6px;
  background-color: transparent;
  border: none;
  transition: all 0.2s ease;
}

.sort-button:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.sort-button.active {
  color: var(--primary-color);
  font-weight: 500;
  background-color: #e6f0ff;
}

.sort-button svg {
  opacity: 0.7;
}

/* 헤더 프로필 버튼 스타일 */
.header-profile {
  position: relative;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-profile:hover {
  opacity: 0.9;
}

/* 프로필 드롭다운 스타일 */
.profile-dropdown {
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-dropdown.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.profile-dropdown:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

/* 프로필 모달 스타일 */
.profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modalZoomIn 0.3s ease;
}

.profile-modal.hidden {
  display: none;
}

.profile-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.profile-modal-content {
  position: relative;
  z-index: 2;
  background-color: transparent;
  max-width: 90%;
  text-align: center;
}

.profile-image-container {
  position: relative;
  display: inline-block;
}

.profile-modal-image {
  max-width: 300px;
  max-height: 300px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border: 4px solid white;
}

.profile-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.profile-modal-close:hover {
  transform: scale(1.1);
}

.profile-edit-button {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: white;
  color: #0066ff;
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.profile-edit-button:hover {
  background-color: #f3f4f6;
  transform: translateY(-2px);
}

/* 프로필 편집 모달 스타일 */
.profile-edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.profile-edit-modal.hidden {
  display: none;
}

.profile-edit-content {
  position: relative;
  z-index: 2;
  background-color: white;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.edit-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.profile-preview-container {
  width: 200px;
  height: 200px;
  margin-bottom: 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #f3f4f6;
}

.profile-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-upload-container {
  width: 100%;
  margin-bottom: 20px;
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  color: #333;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.file-upload-label:hover {
  background-color: #e5e7eb;
}

.edit-buttons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 12px;
}

.cancel-button,
.save-button {
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-button {
  background-color: #f3f4f6;
  color: #333;
  border: none;
}

.cancel-button:hover {
  background-color: #e5e7eb;
}

.save-button {
  background-color: #0066ff;
  color: white;
  border: none;
}

.save-button:hover {
  background-color: #0052cc;
}

@keyframes modalZoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
