/* Glassmorphism Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--glass-radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

/* Pill Button */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.75rem;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0.03em;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 39, 62, 0.15);
}

/* CTA "Coming soon" — gradient theo màu logo + glass + viền lấp lánh blink */
@property --cta-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.btn-cta {
  position: relative;
  isolation: isolate;
  /* Gradient lilac -> denim (logo palette), slightly translucent for the glass look */
  background: linear-gradient(
    135deg,
    rgba(190, 158, 255, 0.82) 0%,
    rgba(110, 163, 213, 0.82) 100%
  );
  color: var(--c-white);
  /* Fallback border for browsers without conic-gradient @property support */
  border: 1px solid rgba(255, 255, 255, 0.35);
  /* Glass: blur the backdrop + boost saturation */
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  /* Soft denim glow + inner top highlight (glass sheen) */
  box-shadow:
    0 4px 18px rgba(110, 163, 213, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  overflow: hidden;
}

/* Glass highlight: soft light wash across the top */
.btn-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0) 55%
  );
  pointer-events: none;
  z-index: -1;
}

/* Sparkling border: conic light sweep around the rim + blinking opacity */
.btn-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px; /* border thickness */
  background: conic-gradient(
    from var(--cta-angle),
    transparent 0deg,
    rgba(255, 255, 255, 0.95) 35deg,
    var(--c-lilac) 70deg,
    transparent 130deg,
    transparent 230deg,
    var(--c-denim) 290deg,
    rgba(255, 255, 255, 0.95) 325deg,
    transparent 360deg
  );
  /* Mask keeps only the border ring visible (hollow center) */
  -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;
  animation:
    cta-border-spin 4s linear infinite,
    cta-border-blink 1.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cta-border-spin {
  to {
    --cta-angle: 360deg;
  }
}

@keyframes cta-border-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-cta::after {
    animation: none;
    background: rgba(255, 255, 255, 0.5);
  }
}

/* Placeholder Image (gradient stand-in for real photos) */
.placeholder-img {
  background: linear-gradient(135deg, var(--c-lilac), var(--c-denim));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--glass-radius);
}

/* Decorative Fabric Textures */
.fabric-textures {
  display: none;
}

.fabric-swatch {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  opacity: 0.15;
}

.fabric-denim {
  background: repeating-linear-gradient(
    45deg, #4D6C93 0px, #4D6C93 2px, #6EA3D5 2px, #6EA3D5 4px
  );
  top: 20%;
  left: 5%;
}

.fabric-marble {
  background: radial-gradient(ellipse at 30% 50%, #f0eef5, #d4cee6, #c5bdd8);
  top: 45%;
  right: 8%;
}

.fabric-silk {
  background: linear-gradient(135deg, #BE9EFF 0%, #e8d8ff 50%, #BE9EFF 100%);
  top: 70%;
  left: 10%;
}

.fabric-knit {
  background: repeating-linear-gradient(
    0deg, #e0d0f0 0px, #e0d0f0 3px, #f5f0ff 3px, #f5f0ff 6px
  );
  top: 85%;
  right: 15%;
}
