@charset "UTF-8";
/*  메인 페이지 스타일 파일입니다. */
.main {
  position: relative;
  min-width: 1200px;
}
.main > .main__row--full:not(:has(img)) {
  display: none;
}
.main__row {
  display: flex;
  justify-content: center;
  align-items: start;
  flex-direction: row;
  max-width: 1200px;
  width: 100%;
  height: 100%;
  margin: auto;
}
.main__row-display {
  width: 100%;
}
.main__row--full {
  min-width: 1200px;
  max-width: 100%;
  display: block;
  margin-block-end: 120px;
}
.main__row--full .swiper {
  min-width: 1200px;
}
.main__row--full .skin-banner__skeleton {
  height: 500px;
}
.main__row--banner-grid:not(:has(img)) {
  display: none;
}
.main__row--banner-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 440px 200px;
  gap: 20px 24px;
  margin-block-end: 120px;
}
.main__row--banner-single:not(:has(img)) {
  display: none;
}
.main__row--banner-single {
  width: 100%;
  display: block;
  margin-block-end: 120px;
}

.skin-banner--main-left ~ .main__row-display {
  flex: 1;
  min-width: calc(816px - 24px);
}

figure[class^=skin-banner--]:not(:has(img)) {
  display: none;
}

/* ========================================
   Featured Creators Section
   ======================================== */
.featured-creators {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.featured-creators__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.featured-creators__title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.featured-creators__view-all {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.featured-creators__view-all:hover {
  color: #1a1a1a;
}

.creators-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.creator-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: #f8f9fa;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.creator-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.creator-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
  background: #e9ecef;
}

.creator-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-card__info {
  text-align: center;
}

.creator-card__name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.creator-card__bio {
  font-size: 13px;
  color: #666;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Skeleton */
.creator-card--skeleton {
  pointer-events: none;
}

.creator-card--skeleton .skeleton__media {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  margin-bottom: 12px;
}

.creator-card--skeleton .skeleton__line {
  width: 80px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.featured-creators__empty {
  text-align: center;
  padding: 40px;
  color: #666;
}

/* ========================================
   Trending & New Arrivals Sections
   ======================================== */
.trending-assets,
.new-arrivals {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.trending-assets__header,
.new-arrivals__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.trending-assets__title,
.new-arrivals__title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.trending-assets__view-all,
.new-arrivals__view-all {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.trending-assets__view-all:hover,
.new-arrivals__view-all:hover {
  color: #1a1a1a;
}

/* Assets Grid */
.assets-grid {
  display: grid;
  gap: 24px;
}

.assets-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.assets-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Asset Card */
.asset-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.asset-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.asset-card__link {
  display: block;
  text-decoration: none;
}

.asset-card__media {
  position: relative;
  aspect-ratio: 1;
  background: #f8f9fa;
  overflow: hidden;
}

.asset-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.asset-card:hover .asset-card__media img {
  transform: scale(1.05);
}

.asset-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.asset-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.asset-card__badge--new {
  background: #4CAF50;
  color: #fff;
}

.asset-card__info {
  padding: 16px;
}

.asset-card__title {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.asset-card__creator {
  font-size: 12px;
  color: #666;
  margin: 0 0 8px;
}

.asset-card__price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.asset-card__discount {
  font-size: 14px;
  font-weight: 700;
  color: #f44336;
}

.asset-card__final-price {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.asset-card__original-price {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

/* Like Button */
.asset-card__like {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  color: #666;
  z-index: 1;
}

.asset-card__like:hover {
  background: #fff;
  transform: scale(1.1);
}

.asset-card__like.is-active {
  color: #f44336;
}

.asset-card__like.is-active svg path {
  fill: currentColor;
}

/* License Badge */
.license-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

.license-badge--personal {
  background: rgba(76, 175, 80, 0.9);
}

.license-badge--commercial {
  background: rgba(33, 150, 243, 0.9);
}

.license-badge--extended {
  background: rgba(156, 39, 176, 0.9);
}

/* Asset Card Skeleton */
.asset-card--skeleton {
  pointer-events: none;
}

.asset-card--skeleton .skeleton__media {
  aspect-ratio: 1;
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.asset-card--skeleton .skeleton__line {
  height: 16px;
  margin: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.asset-card--skeleton .skeleton__line--short {
  width: 60%;
  height: 14px;
}

.trending-assets__empty,
.new-arrivals__empty {
  text-align: center;
  padding: 40px;
  color: #666;
}

/* Skeleton Animation */
@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
