/* 기본 설정 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'IBM Plex Sans KR', sans-serif;
}

body {
  background-color: #ffffff;
  color: #333;
  -ms-overflow-style: none;
}
::-webkit-scrollbar {
  display: none;
}
/* 
body.index-page {
  background: radial-gradient(circle 300px, #383e4f, #0b0f1a);
} */

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* 컨테이너 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 헤더 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  background-color: #0b0f1a;
  padding: 0 20px;
  transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

header:not(.main-header) {
  border-bottom: 1px solid #eee;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 15px;
  font-size: 15px;
  font-weight: 500;
  color: #666;
}

.nav-links li.active {
  color: #7476d4;
  font-weight: bold;
  position: relative;
}

.nav-links li.active::after {
  content: '';
  position: absolute;
  bottom: -25px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #7476d4;
}

.mypage-link {
  width: 20px;
  height: 20px;
  /* border-radius: 50%; */
  /* overflow: hidden; */
}

.mypage-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-link {
  font-size: 14px;
  color: #666;
  border-left: 1px solid #666;
  padding-left: 15px;
}

.login {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 10px;
  background-color: #7476d4;
  color: #0b0f1a;
  font-size: 14px;
}

body.main-page .login {
  color: #ffffff;
}

body.main-page .mypage-link.member-only img {
  filter: brightness(0) saturate(100%);
}

.login-container {
  margin: 170px auto;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 10px;
  border: 2px solid #f5f5f5;
  width: 400px;
}

.login-button {
  background-color: #7476d4;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px;
  cursor: pointer;
}

.password-field {
  position: relative;
}

.password-field .input {
  width: 100%;
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  cursor: pointer;
}

.password-toggle:focus {
  outline: none;
}

.login-container .input {
  color: #000;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#sign-link:hover {
  color: #7476d4;
}

/* 탭 메뉴 */
.tabs {
  display: flex;
  gap: 20px;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
}

.tabs span {
  color: #111;
}

.tabs span.inactive {
  color: #bbb;
}

/* ----------- 검색창 ----------- */
.search-container {
  margin-bottom: 30px;
}

.search-input {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  font-size: 15px;
  background-color: #fafafa;
}

/* ----------- 메인 레이아웃 ----------- */
.main-content {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
}

.top-tittle {
  display: flex;
}

/* 버튼 기본 스타일 초기화 */
.btn-back {
  background: none;
  border: none;
  padding: 8px; /* 터치 영역 확보 */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 뒤로가기 화살표 아이콘 */
.icon-back {
  width: 24px; /* 화살표 너비 */
  height: 24px; /* 화살표 높이 */
  background-color: #0b0f1a;

  /* 마스크 경로 설정 */
  -webkit-mask-image: url('../../assets/left-chevron.png');
  mask-image: url('../../assets/left-chevron.png');

  /* 마스크 속성 최적화 */
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* ----------- 사이드바 필터 ----------- */
.sidebar {
  width: 220px;
  flex-shrink: 0;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.filter-reset {
  font-size: 12px;
  color: #888;
  font-weight: normal;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group h4 {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

.filter-item input[type='checkbox'] {
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ----------- 카드 리스트 영역 ----------- */
.content-area {
  flex-grow: 1;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.content-header h2 {
  font-size: 18px;
}

.content-header h2 span {
  color: #888;
  font-weight: normal;
}

.sort-select {
  padding: 6px 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: 13px;
}

footer {
  margin-top: 80px;
  padding: 40px;
  border-top: 1px solid #eee;
  text-align: center;
  color: #aaa;
  /* max-height: 100px; */
}

/* ===== 모바일 대응 ===== */
@media (max-width: 768px) {
  .main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .sidebar {
    width: 100%;
  }

  .content-area {
    width: 100%;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 10px;
    padding: 10px 15px;
  }

  .header-left {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    width: 100%;
    justify-content: space-around;
    font-size: 14px;
  }

  .header-right {
    width: 100%;
    justify-content: flex-end;
  }

  .team-link {
    border: none;
    padding-left: 0;
  }
}
