/* ============================================
   COLLECTIONS — Index & Detail Pages
   Palette: Rose #e94560 + Navy #0f3460
   ============================================ */

/* ---------- INDEX: HERO ---------- */
.ci-hero {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(233,69,96,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(233,69,96,.10) 0%, transparent 50%),
    linear-gradient(135deg, #0f3460 0%, #0a2748 60%, #081f3a 100%);
  padding: 84px 0 72px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.ci-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233,69,96,.5), transparent);
}
.ci-hero-eyebrow {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #e94560;
  padding: 6px 14px;
  border: 1px solid rgba(233,69,96,.45);
  border-radius: 999px;
  margin-bottom: 18px;
  background: rgba(233,69,96,.08);
}
.ci-hero-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  color: #fff;
}
.ci-hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255,255,255,.72);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ---------- INDEX: FILTER CHIPS ---------- */
.ci-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 28px 0 0;
}
.ci-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.18);
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
  font-family: inherit;
}
.ci-chip:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.ci-chip.active {
  background: #e94560;
  border-color: #e94560;
  color: #fff;
  box-shadow: 0 4px 12px rgba(233,69,96,.4);
}

/* ---------- INDEX: SECTION LABEL ---------- */
.ci-section {
  padding: 56px 0;
}
.ci-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.ci-section-label span {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: #0f3460;
  white-space: nowrap;
}
.ci-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #e5e7eb, transparent);
}

/* ---------- INDEX: COLLECTION CARDS GRID ---------- */
.ci-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* New polished collection card (editorial style) */
.ci-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #ececf0;
  text-decoration: none;
  color: inherit;
  transition: transform .35s ease, box-shadow .35s ease;
  cursor: pointer;
}
.ci-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px -12px rgba(15,52,96,.22);
}
.ci-card-imgwrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #0f3460;
  flex-shrink: 0;
}
.ci-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.ci-card:hover .ci-card-img {
  transform: scale(1.05);
}
.ci-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 5px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: #e94560;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.ci-card-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0,0,0,.55);
  color: #fff;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.15);
}
.ci-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ci-card-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: #0f3460;
  margin: 0 0 8px;
  transition: color .2s ease;
}
.ci-card:hover .ci-card-title {
  color: #e94560;
}
.ci-card-excerpt {
  font-size: 13.5px;
  color: #5b6473;
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.ci-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
}
.ci-card-curator {
  font-size: 12px;
  color: #7a8290;
}
.ci-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #e94560;
  transition: gap .2s ease;
}
.ci-card:hover .ci-card-cta {
  gap: 8px;
}

/* ---------- INDEX: PAGINATION ---------- */
.ci-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 48px 0 16px;
  flex-wrap: wrap;
}
.ci-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f3460;
  cursor: pointer;
  transition: all .18s ease;
  font-family: inherit;
}
.ci-page:hover {
  border-color: #0f3460;
  color: #0f3460;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15,52,96,.12);
}
.ci-page.active {
  background: #0f3460;
  color: #fff;
  border-color: #0f3460;
  box-shadow: 0 4px 12px rgba(15,52,96,.22);
}

/* ============================================
   DETAIL (SHOW) PAGE
   ============================================ */

/* ---------- SHOW: HERO ---------- */
.cs-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
}
.cs-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.1) 100%);
}
.cs-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px;
  z-index: 2;
  max-width: 1148px;
  margin: 0 auto;
}
.cs-hero-eyebrow {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e94560;
  padding: 4px 12px;
  border-radius: 5px;
  background: rgba(233,69,96,.15);
  border: 1px solid rgba(233,69,96,.35);
  margin-bottom: 12px;
}
.cs-hero-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 10px;
}
.cs-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,.8);
  max-width: 620px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.cs-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.cs-curator {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cs-curator-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.6);
  object-fit: cover;
}
.cs-curator-info {
  font-size: 13px;
  color: rgba(255,255,255,.8);
}
.cs-curator-name {
  font-weight: 700;
  color: #fff;
}
.cs-hero-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* ---------- SHOW: LAYOUT ---------- */
.cs-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  padding: 48px 0;
}
.cs-main {}

/* ---------- SHOW: PLACE CARDS (OVERRIDES) ---------- */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* ---------- SHOW: AFFILIATE CTA (SIDEBAR) ---------- */
.cs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cs-widget {
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 16px;
  overflow: hidden;
}
.cs-widget-header {
  padding: 16px 20px 14px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cs-widget-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0f3460;
}
.cs-widget-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e94560;
  background: rgba(233,69,96,.08);
  border: 1px solid rgba(233,69,96,.2);
  padding: 3px 8px;
  border-radius: 4px;
}
.cs-widget-body {
  padding: 18px 20px 20px;
}
.cs-widget-desc {
  font-size: 13px;
  color: #5b6473;
  line-height: 1.55;
  margin-bottom: 14px;
}
.cs-widget-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  background: #e94560;
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
  font-family: inherit;
}
.cs-widget-cta:hover {
  background: #d63a54;
  transform: translateY(-1px);
}
.cs-widget-cta-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  color: #0f3460;
  border: 1.5px solid #0f3460;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
  font-family: inherit;
  margin-top: 10px;
}
.cs-widget-cta-secondary:hover {
  background: #0f3460;
  color: #fff;
}
.cs-widget-sources {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
}
.cs-widget-source-chip {
  font-size: 11px;
  color: #9ca3af;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 3px 9px;
  border-radius: 4px;
}

/* ---------- SHOW: CURATOR CARD ---------- */
.cs-curator-card {
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 16px;
  padding: 20px;
}
.cs-curator-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cs-curator-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}
.cs-curator-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f3460;
  margin-bottom: 2px;
}
.cs-curator-card-bio {
  font-size: 12px;
  color: #7a8290;
}
.cs-curator-card-bio-text {
  font-size: 13px;
  color: #5b6473;
  line-height: 1.55;
}

/* ---------- SHOW: MORE FROM CURATOR ---------- */
.cs-more-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.cs-more-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ececf0;
  background: #fafbfc;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, background .2s ease;
}
.cs-more-item:hover {
  box-shadow: 0 4px 14px rgba(15,52,96,.1);
  background: #fff;
}
.cs-more-item-img {
  width: 72px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.cs-more-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f3460;
  line-height: 1.35;
  margin-bottom: 3px;
}
.cs-more-item:hover .cs-more-item-title {
  color: #e94560;
}
.cs-more-item-count {
  font-size: 11px;
  color: #9ca3af;
}

/* ---------- SHOW: RELATED COLLECTIONS ---------- */
.cs-related {
  border-top: 1px solid #ececf0;
  padding-top: 48px;
  margin-top: 48px;
}
.cs-related-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0f3460;
  margin-bottom: 24px;
}
.cs-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cs-related-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ececf0;
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}
.cs-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15,52,96,.14);
}
.cs-related-imgwrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0f3460;
}
.cs-related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.cs-related-card:hover .cs-related-img {
  transform: scale(1.06);
}
.cs-related-body {
  padding: 14px 16px 16px;
}
.cs-related-name {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0f3460;
  margin-bottom: 4px;
  transition: color .2s ease;
}
.cs-related-card:hover .cs-related-name {
  color: #e94560;
}
.cs-related-count {
  font-size: 12px;
  color: #9ca3af;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .ci-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cs-layout {
    grid-template-columns: 1fr;
  }
  .cs-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .cs-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ci-hero {
    padding: 60px 0 52px;
  }
  .ci-grid {
    grid-template-columns: 1fr;
  }
  .ci-section {
    padding: 36px 0;
  }
  .cs-hero {
    height: 340px;
  }
  .cs-hero-content {
    padding: 24px 20px;
  }
  .cs-grid {
    grid-template-columns: 1fr;
  }
  .cs-sidebar {
    grid-template-columns: 1fr;
  }
  .cs-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ci-hero {
    padding: 48px 0 40px;
  }
  .ci-hero-eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
  }
}
