/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #050709;
  color: #f5f5f5;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.lg-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== HEADER ===== */
.lg-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 7, 9, 0.92);
}

.lg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.lg-logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lg-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(circle at 0% 0%, #ff6fd8, #3813c2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.lg-logo-text {
  display: flex;
  flex-direction: column;
}

.lg-logo-main {
  font-size: 14px;
  font-weight: 600;
}

.lg-logo-sub {
  font-size: 11px;
  opacity: 0.7;
}

.lg-nav {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.lg-nav-link {
  padding: 6px 10px;
  border-radius: 999px;
  opacity: 0.7;
  transition: background 0.2s, opacity 0.2s;
}

.lg-nav-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}

.lg-nav-link.is-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

/* ===== HERO ===== */

.lg-hero {
  padding: 32px 0 16px;
}

.lg-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.lg-hero-text h1 {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.lg-hero-text p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 20px;
}

.lg-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.lg-search-bar input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 7, 9, 0.8);
  color: #f5f5f5;
  font-size: 13px;
}

.lg-search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.lg-search-bar button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(135deg, #ff6fd8, #3813c2);
  color: #ffffff;
  white-space: nowrap;
}

.lg-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.lg-hero-tags span {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.8;
}

/* ===== HERO RIGHT – MODEL GALLERY ===== */

.lg-hero-preview {
  display: flex;
  justify-content: flex-end;
}

.lg-model-gallery {
  width: 100%;
  max-width: 450px;
  border-radius: 24px;
  padding: 16px 16px 20px;
  background: radial-gradient(circle at 0% 0%, rgba(255, 111, 216, 0.09), rgba(18, 22, 32, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lg-model-gallery-header h2 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.lg-model-gallery-header p {
  font-size: 12px;
  opacity: 0.8;
}

.lg-model-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* ===== MODEL ITEM (원형 프로필 + 레이블) ===== */

.model-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}

.model-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.model-name {
  font-size: 12px;
  opacity: 0.85;
}

/* ===== FILTERS ===== */

.lg-filters {
  padding: 8px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 7, 9, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 57px;
  z-index: 19;
}

.lg-filters-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.lg-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lg-filter-tab {
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f5;
  cursor: pointer;
  opacity: 0.75;
}

.lg-filter-tab.is-active {
  background: #f5f5f5;
  color: #111;
  opacity: 1;
}

.lg-filter-options {
  display: flex;
  gap: 8px;
}

.lg-filter-options select {
  background: rgba(5, 7, 9, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f5f5f5;
  padding: 6px 10px;
  font-size: 12px;
}

/* ===== GALLERY ===== */

.lg-gallery {
  padding: 18px 0 32px;
}

.lg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.lg-gallery-grid.is-3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lg-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at 0% 0%, rgba(255, 111, 216, 0.09), rgba(18, 22, 32, 0.9));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.lg-card-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center;
}

.lg-card-body {
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.lg-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lg-card h3 {
  font-size: 14px;
  font-weight: 600;
}

.lg-card-brand {
  font-size: 11px;
  opacity: 0.8;
}

.lg-card-desc {
  font-size: 11px;
  opacity: 0.85;
}

/* ===== FOOTER ===== */

.lg-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0 22px;
  font-size: 11px;
  opacity: 0.8;
}

.lg-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 960px) {
  .lg-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .lg-model-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .lg-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .lg-nav {
    display: none;
  }

  .lg-model-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .lg-model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .model-avatar {
    width: 48px;
    height: 48px;
  }

  .model-name {
    font-size: 11px;
  }

  .lg-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
