/* Marketplace Kawaii-Cyberpunk Redesign */
/* Created by Cuserob - Visual Creation & Interface Design 🎨✨ */

/* ========================================
   MARKETPLACE CONTAINER
   ======================================== */

.quantum-marketplace-container {
  position: relative;
  min-height: 100vh;
  padding: 2rem 1rem;
  background: radial-gradient(circle at center, rgba(255, 0, 255, 0.05), transparent),
              linear-gradient(180deg, rgba(10, 0, 20, 0.95), rgba(20, 0, 40, 0.98));
  overflow: visible; /* Changed from hidden to allow close button access */
}

/* Kawaii particles background */
.quantum-marketplace-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
  animation: kawaii-float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* ========================================
   HEADER REDESIGN
   ======================================== */

.quantum-header {
  text-align: center;
  margin: 2rem auto 3rem;
  position: relative;
  z-index: 10;
}

.quantum-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.neon-text {
  background: linear-gradient(135deg, #00ffff, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
  animation: neon-pulse 2s ease-in-out infinite;
}

.holographic-text {
  background: linear-gradient(90deg, 
    #ff0080, #ff8c00, #ffd700, #00ff00, 
    #00ffff, #0080ff, #8000ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: holographic-shift 3s linear infinite;
  margin-left: 0.5rem;
}

.quantum-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* ========================================
   NAVIGATION TABS REDESIGN
   ======================================== */

.quantum-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 3rem auto;
  flex-wrap: wrap;
  max-width: 900px;
  position: relative;
  z-index: 10;
}

.quantum-nav-btn {
  background: rgba(30, 0, 60, 0.8);
  border: 2px solid rgba(0, 255, 255, 0.3);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.quantum-nav-btn i {
  font-size: 1.2rem;
  color: #00ffff;
  transition: all 0.3s ease;
}

.quantum-nav-btn:hover {
  background: rgba(255, 0, 255, 0.2);
  border-color: #ff00ff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 0, 255, 0.4);
}

.quantum-nav-btn:hover i {
  color: #ff00ff;
  transform: rotate(360deg);
}

.quantum-nav-btn.active {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(255, 0, 255, 0.3));
  border-color: #ff00ff;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
}

.btn-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 0, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.quantum-nav-btn:hover .btn-glow {
  opacity: 1;
  animation: glow-pulse 1s ease-in-out infinite;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff00ff;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

.coming-soon-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #ffff00, #ff00ff);
  color: #000;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: bold;
  animation: badge-float 2s ease-in-out infinite;
}

/* ========================================
   NFT CARDS KAWAII REDESIGN
   ======================================== */

.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1400px;
  position: relative;
  z-index: 10;
}

.quantum-nft-card {
  background: rgba(20, 0, 40, 0.9);
  border: 3px solid transparent;
  border-image: linear-gradient(135deg, #00ffff, #ff00ff) 1;
  border-radius: 25px;
  padding: 1.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.quantum-nft-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255, 0, 255, 0.1), transparent);
  animation: card-rotate 15s linear infinite;
  pointer-events: none;
}

.quantum-nft-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(255, 0, 255, 0.4),
    0 0 60px rgba(0, 255, 255, 0.3);
}

.card-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #00ffff, #ff00ff, #ffff00);
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: 25px;
}

.quantum-nft-card:hover .card-glow {
  opacity: 0.8;
  animation: glow-rotate 2s linear infinite;
}

/* Rarity-specific glows */
.legendary-glow {
  background: linear-gradient(135deg, #ff6600, #ffcc00);
}

.epic-glow {
  background: linear-gradient(135deg, #cc00ff, #ff00cc);
}

.rare-glow {
  background: linear-gradient(135deg, #0099ff, #00ffcc);
}

/* NFT Preview Section */
.nft-preview {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  margin: 1rem 0;
  background: rgba(0, 0, 0, 0.5);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nft-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.quantum-nft-card:hover .nft-image {
  transform: scale(1.1);
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quantum-nft-card:hover .preview-overlay {
  opacity: 1;
}

.preview-btn {
  background: rgba(255, 0, 255, 0.8);
  border: 2px solid #ff00ff;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.preview-btn:hover {
  background: #ff00ff;
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.8);
}

/* Action Buttons Kawaii Style */
.action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.quantum-btn {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.quantum-btn.primary {
  background: linear-gradient(135deg, #00ffff, #0099ff);
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.4);
}

.quantum-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 255, 255, 0.6);
}

.quantum-btn.secondary {
  background: rgba(255, 0, 255, 0.2);
  border: 2px solid #ff00ff;
  color: #ff00ff;
}

.quantum-btn.secondary:hover {
  background: #ff00ff;
  color: #fff;
  box-shadow: 0 6px 30px rgba(255, 0, 255, 0.6);
}

.btn-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.quantum-btn:hover .btn-particles::before,
.quantum-btn:hover .btn-particles::after {
  content: '✨';
  position: absolute;
  animation: particle-float 1s ease-in-out infinite;
}

.quantum-btn:hover .btn-particles::before {
  top: -10px;
  left: 20%;
}

.quantum-btn:hover .btn-particles::after {
  bottom: -10px;
  right: 20%;
  animation-delay: 0.5s;
}

/* ========================================
   PROMOCODE SECTION KAWAII STYLE
   ======================================== */

.promocode-interface {
  max-width: 800px;
  margin: 2rem auto;
  position: relative;
  z-index: 10;
}

.code-input-section {
  background: rgba(30, 0, 60, 0.8);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2);
}

.input-wrapper {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.quantum-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(0, 255, 255, 0.5);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 30px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.quantum-input:focus {
  outline: none;
  border-color: #ff00ff;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
  background: rgba(255, 0, 255, 0.1);
}

.validate-btn {
  background: linear-gradient(135deg, #ff00ff, #ff0080);
  border: none;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
}

.validate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 0, 255, 0.6);
}

/* ========================================
   MARKETPLACE LOCKED STATE
   ======================================== */

.marketplace-locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: rgba(10, 0, 20, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.locked-content {
  text-align: center;
  padding: 3rem;
  background: rgba(30, 0, 60, 0.9);
  border: 3px solid #ff00ff;
  border-radius: 30px;
  box-shadow: 0 0 60px rgba(255, 0, 255, 0.6);
  max-width: 600px;
  position: relative;
  overflow: hidden;
}

.locked-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 0, 255, 0.2), transparent);
  animation: locked-rotate 10s linear infinite;
}

.lock-icon {
  font-size: 5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #ff00ff, #00ffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lock-pulse 2s ease-in-out infinite;
}

.locked-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ff00ff;
  text-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}

.locked-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.unlock-preview {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  border: 2px dashed rgba(0, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

.preview-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.preview-item {
  background: rgba(255, 0, 255, 0.1);
  border: 2px solid rgba(255, 0, 255, 0.3);
  border-radius: 15px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.preview-item:hover {
  transform: scale(1.05);
  border-color: #ff00ff;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.preview-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.countdown-timer {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #00ffff;
  border-radius: 30px;
  padding: 1.5rem 2rem;
  display: inline-block;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.timer-label {
  font-size: 0.9rem;
  color: #00ffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.timer-display {
  font-size: 2rem;
  font-weight: bold;
  color: #ff00ff;
  text-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
  font-family: 'Monaco', 'Courier New', monospace;
}

/* Close button for lock overlay */
.close-lock-overlay {
  margin-top: 2rem;
  background: rgba(255, 0, 255, 0.2);
  border: 2px solid #ff00ff;
  color: #ff00ff;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.close-lock-overlay:hover {
  background: #ff00ff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 0, 255, 0.6);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes kawaii-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes neon-pulse {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
}

@keyframes holographic-shift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

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

@keyframes card-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes glow-rotate {
  0% {
    filter: blur(10px) hue-rotate(0deg);
  }
  100% {
    filter: blur(10px) hue-rotate(360deg);
  }
}

@keyframes badge-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes particle-float {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-30px) scale(0);
    opacity: 0;
  }
}

@keyframes locked-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .quantum-nav {
    gap: 0.5rem;
  }
  
  .quantum-nav-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .nft-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .preview-items {
    grid-template-columns: 1fr;
  }
  
  .quantum-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .quantum-marketplace-container {
    padding: 1rem 0.5rem;
  }
  
  .input-wrapper {
    flex-direction: column;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .quantum-btn {
    width: 100%;
  }
}