:root {
  --deep-purple: #2D1B4E;
  --cosmic-pink: #FF6B9D;
  --lavender: #E8D5F2;
  --gold: #FFD700;
  --starlight: #FFFFFF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--deep-purple);
  color: var(--starlight);
  overflow-x: hidden;
}

.font-display {
  font-family: 'Playfair Display', serif;
}

.font-serif {
  font-family: 'Cormorant Garamond', serif;
}

.font-sans {
  font-family: 'Space Grotesk', sans-serif;
}

.bg-gradient-cosmic {
  background: linear-gradient(135deg, #1a0f2e 0%, #2D1B4E 30%, #3d2066 60%, #2D1B4E 100%);
  min-height: 100vh;
}

.bg-deep-purple { background-color: var(--deep-purple); }
.text-cosmic-pink { color: var(--cosmic-pink); }
.text-lavender { color: var(--lavender); }
.text-gold { color: var(--gold); }
.border-gold { border-color: var(--gold); }

.glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 
    0 8px 32px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.glass-button {
  background: linear-gradient(135deg, rgba(255,107,157,0.3) 0%, rgba(138,43,226,0.3) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  transition: all 0.3s ease;
}

.glass-button:hover {
  background: linear-gradient(135deg, rgba(255,107,157,0.5) 0%, rgba(138,43,226,0.5) 100%);
  box-shadow: 0 0 30px rgba(255,107,157,0.4);
}

.glass-badge {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--lavender);
}

.trait-badge {
  background: linear-gradient(135deg, rgba(255,215,0,0.2) 0%, rgba(255,107,157,0.2) 100%);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--gold);
}

.profile-card {
  touch-action: pan-y;
  user-select: none;
}

.swipe-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.swipe-button.reject {
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(255,68,68,0.4);
}

.swipe-button.reject:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(255,68,68,0.6);
}

.swipe-button.accept {
  background: linear-gradient(135deg, #FF6B9D 0%, #ff4488 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(255,107,157,0.4);
}

.swipe-button.accept:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(255,107,157,0.6);
}

.nft-certificate {
  background: linear-gradient(135deg, #2D1B4E 0%, #1a0f2e 50%, #2D1B4E 100%);
  border: 3px solid;
  border-image: linear-gradient(135deg, #FFD700, #FF6B9D, #FFD700) 1;
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.nft-certificate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255,215,0,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,107,157,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.destiny-thread {
  height: 4px;
  background: linear-gradient(90deg, #FFD700, #FF6B9D, #FFD700);
  border-radius: 2px;
  animation: thread-pulse 2s ease-in-out infinite;
}

.cosmic-loader {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255,215,0,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

.gallery-card {
  cursor: pointer;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes thread-pulse {
  0%, 100% { opacity: 0.5; transform: scaleX(0.8); }
  50% { opacity: 1; transform: scaleX(1); }
}

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

.animate-shimmer {
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; text-shadow: 0 0 10px var(--gold); }
}

.animate-sparkle {
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes bounce-in {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.animate-bounce-in {
  animation: bounce-in 0.4s ease-out forwards;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
}

@keyframes explosion {
  0% { transform: scale(0) rotate(0deg); opacity: 0; }
  50% { transform: scale(1.5) rotate(180deg); opacity: 1; }
  100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

.animate-explosion {
  animation: explosion 1s ease-out forwards;
}

@keyframes reveal {
  0% { 
    transform: perspective(1000px) rotateY(90deg) scale(0.5);
    opacity: 0;
  }
  100% { 
    transform: perspective(1000px) rotateY(0deg) scale(1);
    opacity: 1;
  }
}

.animate-reveal {
  animation: reveal 0.8s ease-out forwards;
}

@keyframes pulse-slow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.animate-pulse-slow {
  animation: pulse-slow 2s ease-in-out infinite;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .profile-card {
    max-width: calc(100vw - 32px);
  }
  
  .nft-certificate {
    margin: 16px;
    padding: 16px;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--cosmic-pink), var(--gold));
  border-radius: 4px;
}