@use "../../../styles/abstracts/mixins" as *;

.wrapper {
  @include dashPageComponent;
}

/* ================= TABS ================= */
.tabs {
  display: flex;
  background: #f6f3ef;
  border-radius: 12px;
  padding: 6px;
  width: fit-content;
  margin: 2rem 0 2rem;
}

.tab {
  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 0.88rem;
  color: #6b6b6b;
  cursor: pointer;

  &:hover {
    color: #1a1a1a;
  }
}

.active {
  color: #fff !important;
}

.indicator {
  position: absolute;
  height: calc(100% - 12px);
  background: #7a4b20;
  border-radius: 8px;
  transition: transform 0.35s ease;
}

/* ================= SLIDER ================= */
.scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  // padding-left: 0.5rem;

  &::-webkit-scrollbar {
    display: none;
  }
}

.cardWrap {
  width: 320px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(25px) scale(0.97);
  transition: all 0.6s ease;
  scroll-snap-align: start;

  @media (max-width: 768px) {
    width: 310px !important;
  }
}

.visible .cardWrap {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ================= SKELETON CARD ================= */
.skeletonCard {
  width: 100%;
  padding: 1rem;
  border-radius: 16px;
  background: #f1f1f1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* SHIMMER */
.skeletonCard * {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
}

.skeletonCard *::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: shimmer 1.3s infinite;
}

/* TOP */
.skelTop {
  display: flex;
  gap: 0.6rem;
}

.skelLogo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.skelInfo {
  flex: 1;
}

.skelName {
  height: 12px;
  width: 70%;
  border-radius: 6px;
  margin-bottom: 6px;
}

.skelMeta {
  height: 10px;
  width: 50%;
  border-radius: 6px;
}

/* DESCRIPTION */
.skelDesc {
  height: 10px;
  width: 100%;
  border-radius: 6px;
}

.skelDescSmall {
  height: 10px;
  width: 70%;
  border-radius: 6px;
}

/* DIVIDER */
.skelDivider {
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
}

/* FOOTER */
.skelFooter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skelAvatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.skelBy {
  height: 10px;
  width: 40%;
  border-radius: 6px;
}

/* ANIMATION */
@keyframes shimmer {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

/* ================= MOBILE ================= */
// @media (max-width: 768px) {
//   .cardWrap {
//     width: 100%;
//   }
// }


/* ================= TABS ================= */
.tabs {
  position: relative;
  display: flex;
  align-items: center;

  background: #f6f3ef;
  border-radius: 12px;
  padding: 4px;
  width: fit-content;
  margin: 2rem 0 2.2rem;
  padding-right: 20px;

  @media (max-width: 768px) {
    margin-top: 0rem;
  }
}

/* TAB */
.tab {
  position: relative;
  z-index: 2;

  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  border: none;
  background: transparent;

  font-weight: 600;
  font-size: 0.85rem;
  color: #6b6b6b;

  cursor: pointer;
  transition: all 0.25s ease;

  &:hover {
    color: #1a1a1a;
  }
}

/* ACTIVE */
.active {
  color: #fff !important;
}

/* INDICATOR */
.indicator {
  position: absolute;
  top: 6px;
  left: 6px;

  width: calc(50% - 6px);
  height: calc(100% - 12px);

  background: #7a4b20;
  border-radius: 8px;

  z-index: 1;

  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}