/* =========================================================
   CYBER-INDEX.CSS — page-scoped cyberpunk for index.ejs
   Loads AFTER your theme + cyber-main.css
   ========================================================= */

/* -------- hero -------- */
.index-page .index-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 2px solid rgba(255, 79, 207, 0.22);
  background:
    radial-gradient(
      120% 120% at -10% -10%,
      rgba(11, 205, 244, 0.08),
      transparent 60%
    ),
    linear-gradient(135deg, rgba(20, 20, 32, 0.85), rgba(10, 10, 20, 0.85));
  box-shadow:
    0 0 22px rgba(11, 205, 244, 0.18),
    inset 0 0 40px rgba(255, 79, 207, 0.06);
}
.index-page .index-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 79, 207, 0.08),
    rgba(11, 205, 244, 0.08),
    rgba(255, 79, 207, 0.08)
  );
  mix-blend-mode: screen;
  animation: heroSweep 12s linear infinite;
}
@keyframes heroSweep {
  0% {
    transform: translateX(-30%);
  }
  100% {
    transform: translateX(30%);
  }
}
.index-page .hero-inner {
  padding: 1.75rem 1rem;
}
.index-page .hero-copy h1 {
  background: linear-gradient(90deg, #ff4fcf, #0bcdf4, #ff4fcf);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow:
    0 0 8px rgba(255, 79, 207, 0.35),
    0 0 14px rgba(11, 205, 244, 0.25);
  animation: indexTitle 4s linear infinite;
}
@keyframes indexTitle {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 220%;
  }
}
.index-page .hero-search .form-control {
  min-width: 260px;
}

/* -------- filters -------- */
.index-page .filters {
  gap: 0.5rem;
}
.index-page .filter-chip {
  position: relative;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(16, 16, 28, 0.8);
  color: #e6f7ff;
  border: 1px solid rgba(11, 205, 244, 0.35);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(11, 205, 244, 0.18);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}
.index-page .filter-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(11, 205, 244, 0.28);
}
.index-page .filter-chip.is-active {
  background: linear-gradient(90deg, #7a3cff, #ff2fb9, #0bcdf4, #7a3cff);
  background-size: 300% 100%;
  animation: chipShimmer 6s linear infinite;
  border-color: transparent;
}
@keyframes chipShimmer {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 300%;
  }
}

/* -------- map panel -------- */
.index-page .cluster-map {
  width: 100%;
  height: 420px;
  border-radius: 0.9rem;
  border: 2px solid rgba(255, 79, 207, 0.22);
  box-shadow:
    0 0 22px rgba(11, 205, 244, 0.18),
    inset 0 0 40px rgba(255, 79, 207, 0.06);
}

/* -------- grid modes -------- */
.index-page .camp-grid[data-layout="grid"] > [class^="col"] {
  display: block;
}
.index-page .camp-grid[data-layout="list"] > [class^="col"] {
  width: 100%;
}
.index-page .camp-grid[data-layout="list"] .card-camp {
  flex-direction: row;
}
.index-page .camp-grid[data-layout="list"] .camp-media {
  flex: 0 0 46%;
}
.index-page .camp-grid[data-layout="list"] .camp-img {
  height: 100%;
}

/* -------- cards -------- */
/* Price badge to match show page */
.index-page .price-badge {
  position: relative;
  z-index: 0;
  color: #fff !important;
  border: 2px solid transparent !important;
  background: linear-gradient(90deg, #7a3cff, #ff2fb9, #0bcdf4, #7a3cff, #ff2fb9) !important;
  background-size: 320% 100% !important;
  background-repeat: no-repeat;
  animation: btn-shimmer 4s linear infinite !important;
  box-shadow: 0 6px 18px rgba(122,60,255,.35), 0 0 24px rgba(255,47,185,.28) inset;
  will-change: background-position;
}
.index-page .price-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(90deg, #ff4fcf, #0bcdf4, #ff4fcf);
  background-size: 300% 100%;
  animation: outlineShimmer 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}
/* Author badge reuse */
.index-page .author-badge {
  background: linear-gradient(180deg, rgba(160,112,255,.12), rgba(160,112,255,.08)) !important;
  border: 1px solid rgba(160,112,255,.45) !important;
  color: #c0f7ff !important;
  box-shadow: 0 0 10px rgba(160,112,255,.25);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
/* Tier lines accent under titles */
.index-page .tier-lines {
  position: relative;
  height: 8px;
  margin-bottom: .5rem;
}
.index-page .tier-lines span {
  position: absolute;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff4fcf, #0bcdf4, #ff4fcf);
  background-size: 300% 100%;
  animation: borderShimmer 6s linear infinite;
  box-shadow: 0 0 8px rgba(11,205,244,.25);
}
.index-page .tier-lines span:first-child {
  top: 0;
  width: 56%;
}
.index-page .tier-lines span:last-child {
  top: 4px;
  width: 42%;
  opacity: .8;
}
.index-page .card-camp {
  border: 1px solid rgba(160, 112, 255, 0.25);
  background: linear-gradient(
    180deg,
    rgba(18, 18, 26, 0.9),
    rgba(12, 12, 20, 0.9)
  );
  overflow: hidden;
  border-radius: 1rem;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  position: relative;
}
.index-page .card-camp .camp-media {
  display: block;
  position: relative;
  overflow: hidden;
}
.index-page .card-camp .camp-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.35s ease;
}
@media (min-width: 768px) {
  .index-page .card-camp .camp-img {
    height: 240px;
  }
}

.index-page .card-camp .card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    120% 60% at 50% -20%,
    rgba(11, 205, 244, 0.18),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}
.index-page .card-camp:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}
.index-page .card-camp:hover .camp-img {
  transform: scale(1.06);
}
.index-page .card-camp:hover .card-glow {
  opacity: 1;
}

/* -------- skeletons -------- */
.index-page .skeleton .camp-img.skeleton-box {
  height: 210px;
  background: linear-gradient(90deg, #1a1a26, #222235, #1a1a26);
  background-size: 200% 100%;
  animation: skel 1.2s ease-in-out infinite;
  border-bottom: 1px solid rgba(160, 112, 255, 0.22);
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}
@keyframes skel {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 200%;
  }
}
.index-page .skeleton-line {
  height: 14px;
  border-radius: 8px;
  background: #222235;
}
.index-page .skeleton-pill {
  width: 96px;
  height: 28px;
  border-radius: 999px;
  background: #222235;
}
.index-page .skeleton-stars {
  width: 90px;
  height: 18px;
  border-radius: 6px;
  background: #222235;
}

/* -------- utility -------- */
@media (prefers-reduced-motion: reduce) {
  .index-page .index-hero::after,
  .index-page .filter-chip.is-active,
  .index-page .card-camp .camp-img,
  .index-page .card-camp .card-glow {
    animation: none !important;
    transition: none !important;
  }
}

/* Mobile overrides to prevent overflow */
@media (max-width: 576px) {
  .index-page .hero-search .form-control {
    min-width: 0;
    width: 100%;
  }
}
/* =========================================================
   CYBERPUNK — LOCATION CHIP (index cards)
   Turns the location line into a neon pill with shimmer ring
   ========================================================= */
.index-page .location-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .5rem 0;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(20, 20, 32, 0.85);
    /* override text-muted */
    color: #e6f7ff !important;
    border: 1px solid rgba(11, 205, 244, 0.45);
    box-shadow:
            0 0 10px rgba(11, 205, 244, 0.22),
            inset 0 0 16px rgba(255, 79, 207, 0.08);
    line-height: 1.2;
    /* responsive wrapping instead of forcing overflow */
    max-width: 100%;
    width: auto;
    flex-wrap: wrap;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

/* Shimmer border ring (same mask trick as buttons/badges) */
.index-page .location-chip::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(90deg, #ff4fcf, #0bcdf4, #ff4fcf);
    background-size: 300% 100%;
    animation: outlineShimmer 4s linear infinite;
    -webkit-mask:
            linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%) content-box,
            linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-composite: xor;
    mask:
            linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%) content-box,
            linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

/* Icon glow + spacing */
.index-page .location-chip .fa-location-dot {
    filter: drop-shadow(0 0 6px rgba(11, 205, 244, 0.35));
    margin-left: 2px;
}

/* Hover: subtle lift */
.index-page .location-chip:hover {
    transform: translateY(-1px);
    box-shadow:
            0 0 14px rgba(11, 205, 244, 0.28),
            inset 0 0 18px rgba(255, 79, 207, 0.1);
    transition: transform .15s ease, box-shadow .15s ease;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .index-page .location-chip::before {
        animation: none !important;
        background-position: 0 0 !important;
    }
}
