@import "./common.css";

header.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0 12px;
  margin: 0 15px;
}

.header .logo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.header .logo h1,
.header .logo h2 {
  color: var(--color-black);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.header .logo h1 {
  cursor: pointer;
}

.header .logo h2 {
  color: var(--color-dark-gray);
}

.header .menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header .menu .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px;
  cursor: pointer;
}

.nav {
  position: sticky;
  top: 0;
  background: var(--color-white);
  backdrop-filter: blur(25px);
  z-index: 10;
  overflow: hidden;
}

.nav .list {
  padding: 8px 15px !important;
}

.nav .list .item {
  display: flex !important;
  width: auto !important;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background-color: var(--background-color);
  border-radius: 8px;
  cursor: pointer;
}

.nav .list .item p {
  color: var(--color-black);
  font-size: 12px;
  font-weight: 700;
}

.nav .list .item img {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 16px;
  object-fit: contain;
}

.nav .list .item:active,
.nav .list .item.active {
  background-color: var(--color-black);
}

.nav .list .item:active p,
.nav .list .item.active p {
  color: var(--color-white);
}

.nav .list .item:active img,
.nav .list .item.active img {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(29deg) brightness(102%) contrast(105%);
}

.nav__ad {
  padding: 0 15px 4px 15px;
}

.ad__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  cursor: pointer;
}

.ad__item p {
  font-size: 18px;
  font-weight: 800;
}

.content__wrap {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--background-color) 100%);
  padding: 36px 15px;
}

.content__wrap.top {
  padding: 28px 15px 36px 15px;
}

.content__wrap.editors {
  padding: 0;
}

.content__title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  align-self: stretch;
}

.main__title {
  font-family: "Oswald", "Pretendard", sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.56px;
  text-transform: uppercase;
  margin-top: -1px;
  margin-bottom: 16px;
}

.main__button__more {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  margin: 0 -8px -8px 0;
  padding: 8px;
}

.main__button__more p {
  color: var(--color-black);
  font-size: 14px;
  font-weight: 700;
  line-height: 0.8;
  text-align: right;
}

main .content__wrap .list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Editors' pick */
#editorsPick.content__wrap {
  padding: 0;
}

.editors__pick__wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 36px 0;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--background-color) 100%);
  z-index: 1;
}

.editors__pick__wrap .content__title {
  position: sticky;
  top: 133px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  line-height: 1;
  z-index: -1;
}

.editors__pick__wrap .content__title h2,
.editors__pick__wrap .content__title h3 {
  color: var(--color-black);
  text-align: center;
}

.editors__pick__wrap .content__title h2 {
  font-family: "Oswald", sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.68px;
  line-height: 1;
  text-transform: uppercase;
}

.editors__pick__wrap .content__title h3 {
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  margin: 0;
}

.editors__pick__wrap .card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: calc(100% - 30px);
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0px 2px 8px 0px var(--border-color);
  cursor: pointer;
  z-index: 1;
}

.editors__pick__wrap .card::after {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.editors__pick__wrap .card__background {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  z-index: -10;
}

.editors__pick__wrap .card__img {
  position: relative;
  width: 100%;
}

.editors__pick__wrap .thumbnail {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px 8px 0 0;
  margin: 0;
  overflow: hidden;
}

.editors__pick__wrap .thumbnail img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: var(--color-light-gray);
  margin: 0;
}

.editors__pick__wrap .background {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: calc(100% + 30px);
  height: 100%;
  margin: 0 -15px;
  overflow: hidden;
  z-index: -1;
}

.editors__pick__wrap .background img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    var(--color-black) 50%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: linear-gradient(180deg, transparent 0%, var(--color-black) 50%, transparent 100%);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  filter: brightness(90%);
}

/* 뉴스레터 marquee 효과 */
.marquee {
  display: flex;
  overflow: hidden;
  position: relative;
}

.marquee_box {
  padding-right: 16px;
  white-space: nowrap;
}

.marquee.active .marquee_box {
  will-change: transform;
  animation: marquee 10s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateZ(0);
  }
  to {
    transform: translate3d(-100%, 0, 0);
  }
}

/* 다크모드 */
@media (prefers-color-scheme: dark) {
  .header .menu button img {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(29deg) brightness(102%) contrast(105%);
  }

  .nav .list .item:active img,
  .nav .list .item.active img {
    filter: unset;
  }

  .nav .list .item img {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(29deg) brightness(102%) contrast(105%);
  }

  .nav .nav__ad button img {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(29deg) brightness(102%) contrast(105%);
  }
}

/* pwa */
#pwa_install_info_icon {
  filter: brightness(0) saturate(100%) invert(58%) sepia(0%) saturate(61%) hue-rotate(191deg)
    brightness(95%) contrast(86%);
}
#pwa_modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#pwa_modal_Wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 80%;
  max-width: 290px;
}
#pwa_top_close_container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 8px;
}

#pwa_top_close_today_not_showing {
  background: inherit;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  cursor: pointer;
  outline: none;
  font-size: 12px;
  color: #cccccc;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

#pwa_top_close_check_icon {
  height: 20px;
  width: 20px;
  object-fit: contain;
  cursor: pointer;
  transform: translate(0px, 1px);
  margin-right: 6px;
}

#pwa_top_close_pwa_modal_icon {
  font-size: 12px;
  color: #cccccc;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#pwa_modal_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-light-gray);
  color: var(--color-black);
  width: 100%;
  padding: 30px 20px;
  box-shadow: rgb(149 157 165 / 10%) 0px 4px 4px;
  border-radius: 12px;
  cursor: pointer;
  /* height: 180px; */
}

#pwa_install_title_container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

#pwa_cmt_container {
  display: flex;
  flex-direction: column;
}

#pwa_install_title_first {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
}
#pwa_install_title_second {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
}

#pwa_install_title_third {
  color: var(--color-gray);
  font-size: 14px;
}

#highlight_cmt {
  display: inline;
  color: var(--color-black);
  font-weight: 700;
}

#pwa_modal_container_img {
  width: 60px;
  margin-top: -7px;
}

#pwa_install_img_container {
  display: flex;
  width: 100%;
  max-height: 200px;
  padding-bottom: 20px;
}

#pwa_install_img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#pwa_install_button_container {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}

#pwa_install_button {
  background: inherit;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  cursor: pointer;
  outline: none;
  color: var(--color-black);
  font-size: 14px;
  font-weight: 700;
}
