/* 사용자 공통 스타일 파일입니다. 공통으로 적용할 스타일 코드를 작성해주세요. */

/* ============================================
   Digital Art Asset Marketplace - Custom Styles
   ============================================ */

/* ------------------------------------------
   Asset Header - Sticky Navigation
   ------------------------------------------ */

.header {
  position: relative;
  background-color: #ffffff;
  transition: all 0.3s ease;
}



.asset-header__bottom-line {
  height: 1px;
  background-color: #e5e7eb;
}

/* Header Layout */
.asset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  gap: 2rem;
}

/* Logo */
.asset-header__logo {
  margin: 0;
  flex-shrink: 0;
}

.asset-header__logo-img {
  display: flex;
  align-items: center;
}

.asset-header__logo-img img {
  max-height: 40px;
  width: auto;
}

/* Main Navigation */
.asset-header__main-nav {
  display: none;
  gap: 2rem;
  flex-shrink: 0;
}

.asset-header__nav-link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.asset-header__nav-link:hover {
  color: #1f2937;
  border-bottom-color: #3b82f6;
}

.asset-header__nav-link.is-active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

/* Search */
.asset-header__search-wrapper {
  flex: 1;
  max-width: 600px;
}

.asset-header__search {
  display: flex;
  align-items: center;
  background-color: #f3f4f6;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease;
}

.asset-header__search:focus-within {
  background-color: #e5e7eb;
}

.asset-header__search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9375rem;
  color: #1f2937;
}

.asset-header__search-input::placeholder {
  color: #9ca3af;
}

.asset-header__search-btn {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s ease;
}

.asset-header__search-btn:hover {
  color: #1f2937;
}

/* User Area */
.asset-header__user-area {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.my-menu__btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  text-transform: none;
}

.my-menu__btn label {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  cursor: pointer;
}

/* Fix for header spacing */
.member__menu {
  width: auto !important;
  gap: 1.5rem !important;
}

.member {
  gap: 1.5rem !important;
}

.my-menu__btn:hover {
  background-color: #f3f4f6;
}

.my-menu__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1001;
}

.my-menu__dropdown.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.my-menu__divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 0.5rem 0;
}

.my-menu__list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.my-menu__link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1.25rem;
  color: #374151;
  text-decoration: none;
  font-size: 0.9375rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}


/* Fix for nested panel issue: Reset my-menu__list styles inside the dropdown */
.my-menu__dropdown .my-menu__list {
  position: static;
  box-shadow: none;
  background-color: transparent;
  padding: 0;
  width: 100%;
}

.my-menu__dropdown .my-menu__list::before {
  display: none;
}

/* Asset Mode Toggle Styles (Removed) */


/* Force display for My Menu List */
.my-menu__list {
  display: block;
}

/* Sign In Button */
.asset-header__signin-btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  background-color: #3b82f6;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.asset-header__signin-btn:hover {
  background-color: #2563eb;
}

/* Cart */
.asset-header__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: #374151;
  text-decoration: none;
  transition: color 0.2s ease;
}

.asset-header__cart:hover {
  color: #1f2937;
}

.asset-header__cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(25%, -25%);
}

/* Category Navigation */
.asset-header__category-nav {
  display: flex;
  align-items: center;
  padding: 0.75rem 2rem;
  gap: 1.5rem;
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.asset-header__category-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9375rem;
  color: #374151;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.asset-header__category-toggle:hover {
  background-color: #f3f4f6;
}

.asset-header__nav-categories {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.asset-header__nav-categories::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.asset-header__nav-category-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.asset-header__nav-category-item {
  flex-shrink: 0;
}

.asset-header__category-link {
  display: block;
  padding: 0.5rem 1rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: 6px;
}

.asset-header__category-link:hover {
  color: #1f2937;
  background-color: #f3f4f6;
}

/* All Category Panel */
.asset-header__all-category-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.asset-header__all-category-panel.is-active {
  max-height: 600px;
  opacity: 1;
  overflow-y: auto;
}

.asset-header__category-panel-content {
  padding: 2rem;
}

.asset-header__category-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.asset-header__category-group {
  margin: 0;
}

.asset-header__category-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.asset-header__category-title a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.2s ease;
}

.asset-header__category-title a:hover {
  color: #3b82f6;
}

.asset-header__category-items {
  margin: 0;
}

.asset-header__category-items ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.asset-header__category-items a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.asset-header__category-items a:hover {
  color: #3b82f6;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .asset-header {
    padding: 1rem 1.5rem;
    gap: 1.5rem;
  }

  .asset-header__main-nav {
    gap: 1.5rem;
  }

  .asset-header__search-wrapper {
    max-width: 400px;
  }
}

/* ============================================
   PHASE 1: CORE HOMEPAGE STRUCTURE
   ============================================ */

/* ------------------------------------------
   Hero Section
   ------------------------------------------ */

.hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 4rem 2rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  color: #ffffff;
}

.hero-headline {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subheadline {
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 2.5rem 0;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hero-cta--primary {
  background-color: #ffffff;
  color: #667eea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-cta--primary:hover {
  background-color: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero-cta--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.hero-cta--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ------------------------------------------
   Category Grid Section
   ------------------------------------------ */

.category-grid-section {
  padding: 5rem 2rem;
  background-color: #f9fafb;
}

.category-grid-container {
  max-width: 1400px;
  margin: 0 auto;
}

.category-grid-header {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 3rem 0;
  color: #1f2937;
}

.category-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

.category-grid::-webkit-scrollbar {
  height: 6px;
}

.category-grid::-webkit-scrollbar-track {
  background: transparent;
}

.category-grid::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 3px;
}

.category-grid::-webkit-scrollbar-thumb:hover {
  background-color: #9ca3af;
}

.category-tile {
  display: block;
  position: relative;
  flex-shrink: 0;
  width: 168px;
  height: 168px;
  border-radius: 12px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-tile:hover .category-icon img {
  transform: scale(1.05);
}

.category-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

.category-count {
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 0;
  text-align: center;
}

.category-coming-soon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
}

.error-message {
  color: #dc2626;
  font-size: 1.125rem;
  margin: 0 0 1.5rem 0;
}

.retry-button {
  padding: 0.875rem 2rem;
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.retry-button:hover {
  background-color: #2563eb;
}

.category-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

/* ------------------------------------------
   Premium Banner Section
   ------------------------------------------ */

.premium-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  padding: 3rem 2rem;
  margin: 0;
}

.premium-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.premium-banner__title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.premium-banner__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 400;
}

/* ------------------------------------------
   Featured Products Enhancement
   ------------------------------------------ */

/* License Badges */
.license-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: rgba(255, 255, 255, 0.95);
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.license-badge--personal {
  background-color: #dbeafe;
  color: #1e40af;
}

.license-badge--commercial {
  background-color: #d1fae5;
  color: #065f46;
}

.license-badge--extended {
  background-color: #fef3c7;
  color: #92400e;
}

/* Wishlist Button (Placeholder) */
.wishlist-button {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #9ca3af;
  transition: all 0.2s ease;
  z-index: 10;
}

.wishlist-button:hover::after {
  content: 'Coming Soon';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  background-color: #1f2937;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Product Card Enhancements */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.product-card:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.product-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: #f3f4f6;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card__creator {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1rem 0;
}

.product-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3b82f6;
  margin-top: auto;
}

/* Featured Products Grid */
.featured-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ------------------------------------------
   Responsive Design
   ------------------------------------------ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .hero-headline {
    font-size: 3rem;
  }

  .hero-subheadline {
    font-size: 1.25rem;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
  }

  .featured-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .hero-section {
    min-height: 400px;
    padding: 3rem 1.5rem;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-subheadline {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .hero-cta {
    width: 100%;
    padding: 0.875rem 2rem;
  }

  .category-grid-section {
    padding: 3rem 1.5rem;
  }

  .category-grid-header {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
  }

  .category-name {
    font-size: 0.875rem;
    padding: 0.75rem;
  }

  .featured-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 2rem 1.5rem;
  }

  .product-card__content {
    padding: 1rem;
  }

  .product-card__title {
    font-size: 0.9375rem;
  }

  .product-card__creator {
    font-size: 0.8125rem;
  }

  .product-card__price {
    font-size: 1.125rem;
  }
}

/* ------------------------------------------
   Asset Card UI Upgrade
   ------------------------------------------ */

/* Common Card Styles */
.asset-card,
.thumb-item {
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 12px !important;
  box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.asset-card:hover,
.thumb-item:hover {
  transform: translateY(-8px) !important;
  box-shadow: 10px 10px 25px rgba(0, 0, 0, 0.12) !important;
}

/* Image Container (The Inner Rounded Box) */
.asset-card__image-container,
.thumb-item__image-container,
.skeleton__media-wrapper {
  background: #f8f9fa !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  aspect-ratio: 1 !important;
  margin-bottom: 12px !important;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.05) !important;
  display: block !important;
}

/* Ensure skeleton media fits the new container */
.skeleton__media {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

/* Reset original media height/aspect if needed */
.asset-card__media,
.thumb-item__media {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  background: transparent !important;
  aspect-ratio: 1 !important;
  display: block !important;
}

/* Image Contain Strategy */
.asset-card__media img,
.thumb-item__img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transition: transform 0.5s ease !important;
  background-color: transparent !important;
}

.asset-card:hover .asset-card__media img,
.thumb-item:hover .thumb-item__img img {
  transform: scale(1.05) !important;
}

/* Card Info spacing */
.asset-card__info,
.thumb-item__info {
  padding: 4px 8px !important;
}

.asset-card__title,
.product-thumb-title {
  font-weight: 600 !important;
  margin-bottom: 4px !important;
  color: #1a1a1a !important;
}

/* Override existing shadow/border from main.css and shopby-skin-pc.css */
.asset-card {
  border: none !important;
}

.thumb-box .thumb-item__img {
  border: none !important;
  width: 100% !important;
  height: 100% !important;
}

/* Align text for List Items */
.thumb-item__info {
  text-align: left !important;
}

.product-thumb-price-info {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
}