/* =========================================================
   ODITJI Header
========================================================= */

:root {
  --color-bg: #1f1f23;
  --color-bg2: #26282c;
  --color-bg3: #30333a;

  --color-border: #3d4148;

  --color-white: #ffffff;
  --color-gray: #c5c8ce;
  --color-gray2: #8c919b;

  --color-point: #5ea3ff;

  /* [수정] --color-point(#5ea3ff)는 테두리·링크 등 용도로는 대비가 충분하지만,
     흰 글자를 얹는 "꽉 찬 배경"(버튼/active 상태)에서는 흰색 텍스트와의
     대비가 약 2.6:1로 WCAG 최소 기준(4.5:1)에 못 미친다.
     이런 채워진 배경 전용으로 더 진한 톤을 별도로 둔다. (대비 약 4.6:1) */
  --color-point-strong: #2f6fe4;
  --color-point-strong-hover: #2559c4;

  --header-height: 80px;

  --radius: 14px;

  --transition: 0.3s ease;
}

/* =========================================================
   Header
========================================================= */
/* 본문 바로가기 */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 8px;
  background: #ffffff;
  color: #181818;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #5ea3ff;
  outline-offset: 2px;
}

.header {
  position: sticky;

  top: 0;

  left: 0;

  width: 100%;

  height: var(--header-height);

  background: rgba(31, 31, 35, 0.95);

  backdrop-filter: blur(18px);

  border-bottom: 1px solid var(--color-border);

  z-index: 9999;

  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   Container
========================================================= */

.header-container {
  width: min(1600px, 95%);

  height: 100%;

  margin: auto;

  display: flex;

  align-items: center;

  justify-content: space-between;
}

/* =========================================================
   Left
========================================================= */

.header-left {
  display: flex;

  align-items: center;
}

/* =========================================================
   Logo
========================================================= */

.logo {
  display: flex;

  flex-direction: column;

  gap: 2px;
}

.logo-main {
  font-size: 28px;

  font-weight: 800;

  color: var(--color-white);

  letter-spacing: 1px;
}

.logo:hover .logo-main {
  color: var(--color-point);
}

/* =========================================================
   Navigation
========================================================= */

.header-nav {
  margin-left: 46px;
}

.header-nav-list {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-nav-item {
  position: relative;
}

.header-nav-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--color-gray);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}

.header-nav-link:hover,
.header-nav-link:focus-visible,
.header-nav-dropdown.open > .header-nav-trigger {
  background: var(--color-bg3);
  color: var(--color-white);
}

.header-nav-arrow {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.header-nav-dropdown.open .header-nav-arrow,
.header-nav-dropdown:hover .header-nav-arrow {
  transform: rotate(180deg);
}

.header-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 210px;
  padding: 12px;
  background: #2a2d32;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 10050;
}

.header-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.header-nav-dropdown:hover .header-submenu,
.header-nav-dropdown:focus-within .header-submenu,
.header-nav-dropdown.open .header-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.header-submenu-heading {
  padding: 6px 10px 10px;
  color: var(--color-gray2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.header-submenu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--color-gray);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

/* 수정: 1단 메뉴의 바로 아래 링크에만 적용 */
.header-submenu > a:hover,
.header-submenu > a:focus-visible,
.header-submenu > a.active {
  background: #383c42;
  color: var(--color-white);
}

/* =========================================================
   [추가] GOODS CATEGORY SECOND-LEVEL MENU
   - hover: 임시 표시
   - .pinned: 클릭 고정
========================================================= */
.header-category-menu {
  position: relative;
}

.header-category-trigger {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--color-gray);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.header-category-trigger:hover,
.header-category-trigger:focus-visible,
.header-category-menu.pinned > .header-category-trigger {
  background: #383c42;
  color: var(--color-white);
}

.header-category-arrow {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.header-category-menu:hover .header-category-arrow,
.header-category-menu:focus-within .header-category-arrow,
.header-category-menu.pinned .header-category-arrow {
  transform: translateX(2px);
}

.header-category-submenu {
  position: absolute;
  top: -12px;
  left: calc(100% + 12px);
  width: 150px;
  padding: 12px;
  background: #2a2d32;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 10060;
}

.header-category-submenu::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -14px;
  width: 14px;
}

.header-category-menu:hover .header-category-submenu,
.header-category-menu:focus-within .header-category-submenu,
.header-category-menu.pinned .header-category-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.header-category-submenu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--color-gray);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

/* 수정: 마우스를 올린 세부 카테고리만 색상 변경 */
.header-category-submenu a:hover,
.header-category-submenu a:focus-visible {
  background: #383c42;
  color: var(--color-white);
}

.header-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 10px;
  color: var(--color-white);
}

.header-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: var(--transition);
}

/* =========================================================
   Search
========================================================= */

.header-search {
  flex: 1;

  display: flex;

  justify-content: center;
}

.header-search form {
  width: 430px;

  height: 46px;

  display: flex;

  align-items: center;

  background: var(--color-bg3);

  border: 1px solid transparent;

  border-radius: 999px;

  overflow: hidden;

  transition: var(--transition);
}

.header-search form:hover {
  border-color: var(--color-border);
}

.header-search form:focus-within {
  border-color: var(--color-point);

  box-shadow: 0 0 18px rgba(94, 163, 255, 0.25);
}

.header-search input {
  flex: 1;

  height: 100%;

  padding: 0 20px;

  background: none;

  border: none;

  color: var(--color-white);

  font-size: 15px;
}

.header-search input::placeholder {
  color: var(--color-gray2);
}

.header-search button {
  width: 54px;

  height: 46px;

  display: flex;

  justify-content: center;

  align-items: center;

  color: var(--color-gray);

  transition: var(--transition);
}

.header-search button:hover {
  color: var(--color-point);
}

/* =========================================================
   Mobile Search Toggle
   (768px 이하에서만 아이콘 버튼으로 노출되며,
   클릭 시 .header-search가 헤더 아래로 펼쳐진다)
========================================================= */

/* [수정] .icon-btn(display:flex)과 클래스 우선순위가 같아서 소스 순서상
   .icon-btn에 덮어써지던 문제 → 클래스 두 개를 함께 지정해 우선순위를
   .icon-btn보다 높여서 확실히 숨긴다. */
.icon-btn.header-search-toggle {
  display: none;
}

/* =========================================================
   Right Area
========================================================= */

.header-right {
  display: flex;

  align-items: center;

  gap: 16px;

  margin-left: 35px;
}

/* =========================================================
   Login / Join Button
========================================================= */

.join-btn {
  color: var(--color-gray);

  font-size: 15px;

  font-weight: 500;

  transition: var(--transition);
}

.join-btn:hover {
  color: var(--color-white);
}

.login-btn {
  display: flex;

  justify-content: center;

  align-items: center;

  width: 92px;

  height: 40px;

  border-radius: 999px;

  /* [수정] --color-point 원색 + 흰 글자는 대비 약 2.6:1로 부족해 --color-point-strong으로 교체 */
  background: var(--color-point-strong);

  color: #fff;

  font-weight: 700;

  transition: var(--transition);
}

.login-btn:hover {
  transform: translateY(-2px);

  box-shadow: 0 10px 25px rgba(94, 163, 255, 0.35);
}

/* =========================================================
   Icon Button
========================================================= */

.icon-btn {
  width: 42px;

  height: 42px;

  display: flex;

  justify-content: center;

  align-items: center;

  border-radius: 50%;

  background: transparent;

  color: var(--color-gray);

  font-size: 20px;

  transition: var(--transition);
}

.icon-btn:hover {
  background: var(--color-bg3);

  color: var(--color-white);

  transform: translateY(-2px);
}

/* =========================================================
   Profile
========================================================= */

.profile-menu {
  position: relative;
}

.profile-btn {
  display: flex;

  align-items: center;

  gap: 10px;

  padding: 8px 15px;

  border-radius: 999px;

  background: var(--color-bg3);

  color: var(--color-white);

  transition: var(--transition);
}

.profile-btn:hover {
  background: #3a3e46;
}

.profile-btn-avatar {
  width: 26px;
  height: 26px;

  border-radius: 50%;

  object-fit: cover;

  flex-shrink: 0;
}

.profile-btn span {
  font-size: 14px;

  font-weight: 600;
}

/* =========================================================
   Dropdown
========================================================= */

.profile-dropdown {
  position: absolute;

  top: 62px;

  right: 0;

  width: 220px;

  background: #2a2d32;

  border: 1px solid var(--color-border);

  border-radius: 14px;

  overflow: hidden;

  opacity: 0;

  visibility: hidden;

  transform: translateY(10px);

  transition: var(--transition);

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);

  z-index: 999;
}

/* JS에서 open 클래스 추가 */

.profile-dropdown.open {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);

  animation: fadeUp 0.25s ease;
}

.profile-dropdown a {
  display: block;

  padding: 14px 20px;

  color: var(--color-gray);

  font-size: 15px;

  transition: var(--transition);
}

.profile-dropdown a:hover {
  background: #383c42;

  color: #fff;
}

.profile-dropdown hr {
  border: none;

  border-top: 1px solid var(--color-border);
}

.logout-link {
  color: #ff7c7c !important;
}

.logout-link:hover {
  background: #4a2d2d !important;

  color: #ffb3b3 !important;
}

/* =========================================================
   Scroll Effect
========================================================= */

.header.hide {
  transform: translateY(-100%);
}

.header.show {
  transform: translateY(0);
}

/* =========================================================
   Active Menu
========================================================= */

.header-nav-link.active,
.header-nav-trigger.active {
  color: var(--color-white);

  font-weight: 700;
}

/* =========================================================
   Focus
========================================================= */

.header-nav a:focus-visible,
.join-btn:focus-visible,
.login-btn:focus-visible,
.icon-btn:focus-visible,
.profile-btn:focus-visible {
  outline: 2px solid var(--color-point);

  outline-offset: 3px;
}

.header-search input:focus-visible {
  outline: none;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1400px) {
  .header-nav {
    margin-left: 30px;
  }

  .header-nav ul {
    gap: 24px;
  }

  .header-search form {
    width: 360px;
  }
}

@media (max-width: 1200px) {
  .header-container {
    width: 96%;
  }

  .header-search {
    margin: 0 20px;
  }

  .header-search form {
    width: 300px;
  }
}

@media (max-width: 992px) {
  .header-container {
    position: relative;
  }

  /* [수정] 모바일에서 삼선 버튼 → 로고 → 나머지(검색/알림/장바구니/프로필) 순서로 배치 */
  .header-nav-toggle {
    display: flex;
    order: -2;
    margin-left: 0;
    margin-right: 12px;
  }

  .header-left {
    order: -1;
  }

  .header-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 2%;
    right: 2%;
    margin-left: 0;
    padding: 12px;
    background: #23262b;
    border: 1px solid var(--color-border);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.36);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
  }

  .header-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header-nav-list {
    display: block;
  }

  .header-nav-item + .header-nav-item {
    margin-top: 4px;
  }

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

  .header-submenu {
    position: static;
    width: 100%;
    margin-top: 4px;
    padding: 0 8px;
    max-height: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    background: #1f2227;
    transition:
      max-height 0.25s ease,
      padding 0.25s ease;
  }

  .header-nav-dropdown:hover .header-submenu,
  .header-nav-dropdown:focus-within .header-submenu {
    transform: none;
  }

  .header-nav-dropdown.open .header-submenu {
    max-height: 360px;
    padding: 8px;
  }

  .header-submenu::before {
    display: none;
  }

  /* [추가] 모바일에서는 2단 메뉴를 오른쪽 플라이아웃이 아닌 내부 목록으로 표시합니다. */
  .header-category-submenu {
    position: static;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 0 8px;
    max-height: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    background: #191c20;
    transition:
      max-height 0.25s ease,
      padding 0.25s ease;
  }

  .header-category-menu:hover .header-category-submenu,
  .header-category-menu:focus-within .header-category-submenu {
    max-height: 220px;
    padding: 8px;
    transform: none;
  }

  .header-category-menu.pinned .header-category-submenu {
    max-height: 220px;
    padding: 8px;
  }

  .header-category-submenu::before {
    display: none;
  }

  .header-search {
    flex: 1;
    margin-left: 18px;
  }

  .header-search form {
    width: 100%;
    max-width: 330px;
  }
}

@media (max-width: 768px) {
  .header {
    height: 70px;
  }

  .header-container {
    gap: 15px;
  }

  /* 모바일에서는 좌측 삼선 버튼 폭과 우측 아이콘/로그인 버튼 폭이
     서로 달라 로고가 가운데가 아닌 삼선 버튼 바로 옆에 붙어
     보였습니다. 로고를 절대 위치로 헤더 중앙에 고정해 좌/우
     버튼 폭과 무관하게 항상 가운데 정렬되도록 합니다.
     (데스크톱/태블릿 레이아웃은 그대로 유지) */
  .header-left {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  /* 로그인 상태에서 장바구니 아이콘까지 뜨면 아이콘 개수가 늘어나
     로고가 가운데에서 밀리며 레이아웃이 깨졌습니다. 장바구니는
     모바일에서는 아예 숨기고(마이페이지에서 접근 가능),
     데스크톱에는 영향 없습니다. */
  .cart-btn {
    display: none;
  }

  /* 검색/알림 아이콘이 로고 바로 옆에 붙어 보이던 문제 →
     header-right를 항상 오른쪽 끝으로 밀착시키고, 화면 가장
     자리와는 약간의 여백만 남도록 합니다. 로고는 그대로 두고
     검색/알림 아이콘만 프로필 쪽으로 더 붙입니다(간격 축소). */
  .header-right {
    margin-left: auto;
    margin-right: 4px;
    gap: 6px;
  }

  /* 모바일 검색 토글 버튼: 768px 이하에서만 노출 */
  .icon-btn.header-search-toggle {
    display: flex;
  }

  /* 헤더 아래로 펼쳐지는 모바일 검색창.
     display:none 대신 opacity/visibility로 숨겨야
     .open 클래스가 붙었을 때 JS 토글이 정상 동작한다. */
  .header-search {
    position: absolute;
    top: calc(100% + 1px);
    left: 2%;
    right: 2%;
    z-index: 10040;
    margin: 0;
    padding: 12px;
    background: #23262b;
    border: 1px solid var(--color-border);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.36);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: var(--transition);
  }

  .header-search.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header-search form {
    width: 100%;
    max-width: none;
  }

  .profile-btn span {
    display: none;
  }

  /* 모바일에서는 버튼의 둥근 배경(pill)을 없애고
     프로필 사진만 아이콘처럼 보이도록 합니다. */
  .profile-btn {
    padding: 0;
    background: none;
    gap: 0;
  }

  .profile-btn:hover {
    background: none;
  }

  .profile-btn-avatar {
    width: 32px;
    height: 32px;
  }

  .join-btn {
    display: none;
  }

  .login-btn {
    width: 76px;
    height: 36px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .icon-btn {
    width: 38px;

    height: 38px;

    font-size: 18px;
  }

  .logo-main {
    font-size: 22px;
  }
}

/* =========================================================
   Animation
========================================================= */

@keyframes fadeUp {
  from {
    opacity: 0;

    transform: translateY(10px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* =========================================================
   Scrollbar
========================================================= */

.profile-dropdown::-webkit-scrollbar {
  width: 6px;
}

.profile-dropdown::-webkit-scrollbar-thumb {
  background: #50545b;

  border-radius: 20px;
}

/* =========================================================
   Selection
========================================================= */

::selection {
  background: rgba(94, 163, 255, 0.35);

  color: #fff;
}

/* =========================================================
   Smooth
========================================================= */

html {
  scroll-behavior: smooth;
}

/* =========================================================
   Footer
========================================================= */

.footer {
  width: 100%;
  background-color: rgba(28, 28, 28, 1);
  border-top: 1px solid #2a2a2a;
  padding: 16px 0;
  font-size: 13px;
  color: #b5b5b5;
}

.footer-container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  flex: 1;
  text-align: left;
  font-weight: 600;
  color: #d0d0d0;
}

.footer-center {
  flex: 2;
  text-align: center;
  color: #9a9a9a;
  line-height: 1.4;
}

.footer-right {
  flex: 1;
  text-align: right;
  color: #7f7f7f;
}

/* =========================================================
   Event Period Navigation
========================================================= */

.event-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-description {
  margin-top: 8px;
  color: var(--color-gray2);
}

.event-period-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: var(--color-bg2);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.event-period-links a {
  min-width: 72px;
  padding: 9px 14px;
  border-radius: 999px;
  text-align: center;
  color: var(--color-gray);
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
}

.event-period-links a:hover,
.event-period-links a.active {
  /* [수정] --color-point 원색 + 흰 글자는 대비 약 2.6:1로 부족해 --color-point-strong으로 교체 */
  background: var(--color-point-strong);
  color: var(--color-white);
}

@media (max-width: 768px) {
  .event-list-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-period-links {
    width: 100%;
  }

  .event-period-links a {
    flex: 1;
    min-width: 0;
  }
}

/* =========================================================
   Notification Bell / Dropdown
========================================================= */

.notification-menu {
  position: relative;
  flex: 0 0 auto;
}

.notification-btn {
  position: relative;
  border: 0;
  cursor: pointer;
}

.notification-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.notification-badge {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid var(--color-bg);
  border-radius: 999px;
  /* [수정] 흰 글자 on #e53935는 대비 약 4.23:1로 부족해 더 진한 톤으로 교체 */
  background: #e32a26;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.35);
}

.notification-badge[hidden] {
  display: none !important;
}

.notification-dropdown {
  position: absolute;
  top: 62px;
  right: 0;
  z-index: 1000;
  width: 350px;
  max-height: 470px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #2a2d32;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.notification-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: fadeUp 0.25s ease;
}

.notification-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 14px;
  border-bottom: 1px solid var(--color-border);
}

.notification-dropdown-header strong {
  color: #ffffff;
  font-size: 16px;
}

.notification-dropdown-header span {
  color: var(--color-gray2);
  font-size: 12px;
}

.notification-list {
  max-height: 342px;
  overflow-y: auto;
}

.notification-item {
  display: block;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(61, 65, 72, 0.82);
  transition: background 0.2s ease;
}

.notification-item:hover,
.notification-item:focus-visible {
  background: #383c42;
}

.notification-item:focus-visible {
  outline: 2px solid var(--color-point);
  outline-offset: -2px;
}

.notification-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notification-item-title {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item-type {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #3b4654;
  color: #bcd8ff;
  font-size: 10px;
  font-weight: 700;
}

.notification-item-message {
  margin: 7px 0 0;
  color: var(--color-gray);
  font-size: 13px;
  line-height: 1.45;
}

.notification-empty {
  padding: 42px 20px;
  color: var(--color-gray2);
  font-size: 13px;
  text-align: center;
}

.notification-dropdown-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--color-border);
}

.notification-clear-all-btn {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ec8ff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.notification-clear-all-btn:hover,
.notification-clear-all-btn:focus-visible {
  background: #383c42;
  color: #ffffff;
}

.notification-clear-all-btn:focus-visible {
  outline: 2px solid var(--color-point);
  outline-offset: 1px;
}

.notification-clear-all-btn:disabled {
  color: var(--color-gray2);
  cursor: wait;
  opacity: 0.7;
}

.notification-list::-webkit-scrollbar {
  width: 7px;
}

.notification-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #4b5058;
}

@media (max-width: 768px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    text-align: center;
    flex: none;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .notification-dropdown {
    position: fixed;
    top: 72px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .notification-icon {
    width: 23px;
    height: 23px;
  }
}

/* =========================================================
   Back to Top Button
   (스크롤 중 헤더가 숨겨질 때 우측 하단에 노출되는
   맨 위로 이동 버튼. js/common.js의 initHeaderScroll 참고)
========================================================= */

.back-to-top-btn {
  position: fixed;

  right: 24px;

  bottom: 24px;

  z-index: 9998;

  width: 48px;

  height: 48px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: var(--color-bg3);

  border: 1px solid var(--color-border);

  color: var(--color-white);

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);

  opacity: 0;

  visibility: hidden;

  transform: translateY(12px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease,
    background 0.2s ease;
}

.back-to-top-btn.show {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--color-point);

  border-color: var(--color-point);
}

@media (max-width:576px){

    .back-to-top-btn{
        right:16px;
        bottom:16px;
        width:44px;
        height:44px;
    }

}
