/* ===========================================================
   CosmicPulls Theme
   =========================================================== */

* { box-sizing: border-box; }

html, body {
  background: #050507;
  color: #fff;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===========================================================
   STARFIELD BACKGROUND
   =========================================================== */
.starfield {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at top, #1a0a3a 0%, #050507 50%, #000 100%);
  z-index: 0;
}

.stars, .stars2, .stars3 {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.stars {
  background-image:
    radial-gradient(1px 1px at 20% 30%, white, transparent),
    radial-gradient(1px 1px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(2px 2px at 80% 20%, #fff, transparent),
    radial-gradient(1px 1px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 15% 80%, white, transparent),
    radial-gradient(2px 2px at 40% 90%, #c084fc, transparent),
    radial-gradient(1px 1px at 70% 10%, #22d3ee, transparent);
  background-size: 200% 200%;
  animation: drift 200s linear infinite;
  opacity: 0.5;
}

.stars2 {
  background-image:
    radial-gradient(1px 1px at 10% 60%, white, transparent),
    radial-gradient(2px 2px at 30% 20%, #c084fc, transparent),
    radial-gradient(1px 1px at 50% 80%, white, transparent),
    radial-gradient(1px 1px at 75% 40%, #22d3ee, transparent),
    radial-gradient(1px 1px at 95% 90%, white, transparent);
  background-size: 250% 250%;
  animation: drift 150s linear infinite reverse;
  opacity: 0.3;
}

.stars3 {
  background-image:
    radial-gradient(1px 1px at 5% 20%, #fbbf24, transparent),
    radial-gradient(1px 1px at 65% 35%, #fbbf24, transparent),
    radial-gradient(1px 1px at 85% 75%, #fff, transparent);
  background-size: 300% 300%;
  animation: drift 250s linear infinite;
  opacity: 0.4;
}

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

/* ===========================================================
   NAV / LAYOUT
   =========================================================== */
.nav-blur {
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.hex-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #a855f7, #22d3ee);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  color: #050507;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 22px;
  flex-shrink: 0;
}

/* ===========================================================
   BUTTONS / EFFECTS
   =========================================================== */
.glow-btn {
  background: linear-gradient(135deg, #a855f7 0%, #22d3ee 100%);
  box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.5),
              0 10px 30px -10px rgba(168, 85, 247, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.glow-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}
.glow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px 0 rgba(168, 85, 247, 0.6),
              0 15px 40px -10px rgba(34, 211, 238, 0.5);
}
.glow-btn:hover::before { left: 100%; }

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-live 1.5s infinite;
}
@keyframes pulse-live {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.shimmer-text {
  background: linear-gradient(90deg, #a855f7 0%, #22d3ee 25%, #ec4899 50%, #fbbf24 75%, #a855f7 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ===========================================================
   CARDS / SLABS
   =========================================================== */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-4px) scale(1.02);
}

.slab {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.slab::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.card-art {
  aspect-ratio: 2.5 / 3.5;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.slab-grade {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0a0a0f;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: inline-block;
}
.grade-bgs {
  background: linear-gradient(135deg, #c084fc, #a855f7);
  color: #fff;
}
.grade-cgc {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: #fff;
}

/* ===========================================================
   PACK TIER STYLES
   =========================================================== */
.pack-common {
  background: linear-gradient(145deg, rgba(156, 163, 175, 0.08), rgba(156, 163, 175, 0.02));
  border-color: rgba(156, 163, 175, 0.2);
}
.pack-rare {
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.12), rgba(168, 85, 247, 0.03));
  border-color: rgba(168, 85, 247, 0.3);
}
.pack-epic {
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.12), rgba(34, 211, 238, 0.03));
  border-color: rgba(34, 211, 238, 0.3);
}
.pack-legend {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.03));
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 0 30px -10px rgba(251, 191, 36, 0.3);
}
.pack-mythic {
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.15), rgba(168, 85, 247, 0.05));
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 0 40px -10px rgba(236, 72, 153, 0.4);
}

/* ===========================================================
   MARQUEE
   =========================================================== */
.marquee-mask {
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

@keyframes scroll-x {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-scroll-x {
  animation: scroll-x 50s linear infinite;
}
.animate-scroll-x:hover {
  animation-play-state: paused;
}

/* ===========================================================
   MOBILE MENU
   =========================================================== */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.mobile-menu a {
  display: block;
  padding: 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
}
.mobile-menu a:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

/* ===========================================================
   PACK MODAL
   =========================================================== */
#cpPackModal.is-open {
  display: flex;
}

/* ===========================================================
   WORDPRESS NAV MENU OVERRIDES
   =========================================================== */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav ul li {
  list-style: none;
}
nav ul li a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}
nav ul li a:hover {
  color: #fff;
}

/* ===========================================================
   FOOTER MENU LIST FIX
   =========================================================== */
footer ul.space-y-2 li a {
  padding: 0;
  display: inline;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
footer ul.space-y-2 li a:hover {
  color: #fff;
}

/* ===========================================================
   PROSE STYLES FOR PAGES / POSTS
   =========================================================== */
.prose-cosmic h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 2rem 0 1rem;
}
.prose-cosmic h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 1.5rem 0 0.75rem;
}
.prose-cosmic p {
  margin: 0 0 1rem;
  line-height: 1.75;
}
.prose-cosmic a {
  color: #c084fc;
  text-decoration: underline;
}
.prose-cosmic a:hover {
  color: #22d3ee;
}
.prose-cosmic ul, .prose-cosmic ol {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}
.prose-cosmic li {
  margin-bottom: 0.5rem;
}
.prose-cosmic strong { color: #fff; font-weight: 700; }
.prose-cosmic code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.875em;
}
