/* assets/css/pages/collection.css */

/* Prevent horizontal overflow */
body[data-page="collection"],
body[data-page="collection"] .collection-page{
  overflow-x: clip;
}

/* ============================= */
/* SECTION LAYOUT                */
/* ============================= */
.collection-section{
  box-sizing: border-box;
  padding: 110px 24px 18px 24px;
  display: grid;
  gap: 12px;
  justify-items: center;
  align-content: start;
  scroll-margin-top: 96px;
}

@media (max-width: 768px){
  .collection-section{ scroll-margin-top: 72px; }
}

@media (max-width: 520px){
  .collection-section{ padding: 78px 20px 18px 20px; }
}

/* Slightly tighter top spacing for later sections */
#section-2{
  padding-top: 28px;
}

@media (max-width: 520px){
  #section-2,
  #section-3{ padding-top: 20px; }
}

/* ============================= */
/* TYPOGRAPHY                    */
/* ============================= */
.collection-title,
.collection-text{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 920px;
}

.collection-text{
  font-family: "Montserrat", sans-serif;
  font-size: clamp(16px, 4vw, 20px);
  line-height: 1.55;
  margin: 0;
  color: rgba(255,255,255,0.85);
}

.collection-title{
  font-family: "Cormorant SC", serif;
  font-weight: 700;
  font-size: clamp(30px, 6.8vw, 50px);
  line-height: 1.06;
  margin: 0;
  color: #b400ff;
  animation: collectionTitleBreath 3.6s ease-in-out infinite;
}

@keyframes collectionTitleBreath{
  0%,100%{
    color:#b400ff;
    text-shadow:
      0 0 6px rgba(180,0,255,0.4),
      0 0 14px rgba(180,0,255,0.3);
  }
  50%{
    color:#d76bff;
    text-shadow:
      0 0 10px rgba(215,107,255,0.7),
      0 0 22px rgba(215,107,255,0.5);
  }
}

/* ============================= */
/* KICKER (SCAN BAND)            */
/* ============================= */
.collection-kicker{
  font-family: "Cormorant SC", serif;
  color: #ffffff;
  text-align: center;
}


.collection-line-mid{
  display: block;
  font-size: 2em;
  letter-spacing: 0.11em;
  position: relative;
  color: #ffffff; /* force white base so it doesn't inherit black */
}


@keyframes collectionScanBand{
  0%   { background-position: 200% 0; }
  100% { background-position: 0% 0; }
}

.collection-line-mid::after,
.collection-stars::after{
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0,255,255,0) 0%,
    rgba(0,255,255,0) 42%,
    rgba(0,255,255,1) 48%,
    rgba(255,0,255,1) 52%,
    rgba(255,0,255,0) 58%,
    rgba(255,0,255,0) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: collectionScanBand 2.2s linear infinite;
}

/* ============================= */
/* DIVIDER (FULL BLEED LINE)     */
/* ============================= */
.collection-divider{
  height: 1px;
  position: relative;
  margin-top: 18px;
  width: 100%;
  justify-self: stretch;
  overflow: visible;
}

.collection-divider::before{
  content: '';
  position: absolute;
  top: 0;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary),
    var(--secondary),
    transparent
  );
  animation: glow-line 3s ease-in-out infinite;
}

/* ============================= */
/* VIDEO                         */
/* ============================= */
.collection-video{
  width: 100%;
  display: flex;
  justify-content: center;
}

.collection-video-shell{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
  /* Vertical video sizing (match Method/Story) */
  aspect-ratio: 120 / 163;
  width: min(92vw, 320px);
  max-height: calc(100svh - 260px);
}

@media (max-width: 520px){
  .collection-video-shell{
    width: min(92vw, 300px);
    max-height: calc(100svh - 240px);
  }
}

.collection-player{
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

/* ============================= */
/* CTA BUTTON                    */
/* ============================= */
@keyframes collectionGlowShift{
  0%,100%{ background-position: 0% 0%; }
  50%{ background-position: 100% 0%; }
}

.collection-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, box-shadow 220ms ease, color 220ms ease;
}

.collection-cta::before{
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(
    90deg,
    rgba(0,255,255,0.95),
    rgba(255,0,255,0.95)
  );
  background-size: 200% 100%;
  animation: collectionGlowShift 2.8s ease-in-out infinite;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.75;
  pointer-events: none;
  z-index: -1;
}

.collection-cta:hover{
  transform: translateY(-1px);
  box-shadow:
    0 0 14px rgba(0,255,255,0.20),
    0 0 20px rgba(255,0,255,0.14);
  color: #ffffff;
}

.collection-cta:active{ transform: translateY(0px); }

.collection-cta:focus-visible{
  outline: 2px solid rgba(0,255,255,0.75);
  outline-offset: 4px;
}

/* ============================= */
/* EDITION CARDS                 */
/* ============================= */
.collection-cards{
  width: 100%;
  max-width: 920px;
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.collection-card{
  /* Not a "card" anymore: keep layout, remove glass box */
  position: relative;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  overflow: visible;
  padding: 0;
  text-align: center;
}

/* Deck headings: 1st line scan-band (mid), 2nd line purple title */
.collection-deck-head{
  display: grid;
  gap: 6px;
  justify-items: center;
  margin: 0 0 10px;
}


.collection-deck-title{
  font-family: "Cormorant SC", serif;
  font-weight: 700;
  font-size: clamp(22px, 5.6vw, 34px);
  line-height: 1.06;
  margin: 0;
  color: #b400ff;
  animation: collectionTitleBreath 3.6s ease-in-out infinite;
}

.collection-bullets{
  list-style: none;
  padding: 0;
  margin: 12px auto 14px;
  display: grid;
  gap: 8px;
  max-width: 720px;
  color: rgba(255,255,255,0.86);
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
}

.collection-bullets li::before{
  content: "•";
  margin-right: 8px;
  color: rgba(0,255,255,0.85);
}


.collection-deck-image{
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 14px 0 4px;
}

.collection-deck-image img{
  width: min(100%, 720px);
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  object-fit: cover;
}

@media (max-width: 520px){
  .collection-deck-image{
    margin: 12px 0 2px;
  }

  .collection-deck-image img{
    width: min(100%, 92vw);
  }
}
