/* ===================== MARKETPLACE PAGE ===================== */

.marketplace-section {
  position: relative;
  padding: 80px 0;
  color: #fff;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  overflow: hidden;
}

/* Title and subtitle */
.marketplace-title,
.marketplace-subtitle,
.marketplace-grid {
  position: relative;
  z-index: 1;
}

.marketplace-title {
  font-family: 'Audiowide', cursive;
  font-size: 2.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #39ff14;
  text-align: center;
  margin-bottom: 15px;
}

.marketplace-subtitle {
  font-family: 'Audiowide', cursive;
  font-size: 1.05rem;
  opacity: 0.85;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

/* Grid Layout */
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .marketplace-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .marketplace-grid {
      grid-template-columns: 1fr;
  }
}

/* ===================== FIXED FLIP CARD ===================== */

.flip-card {
perspective: 1200px;
width: 100%;
height: 23rem !important;

}

.flip-inner {
width: 100%;
height: 100%;
position: relative;
transform-style: preserve-3d;
transition: transform 0.6s ease;

}

.flip-card:hover .flip-inner {
transform: rotateY(180deg);
}

/* Both faces */
.flip-front,
.flip-back {
width: 100%;
height: 100%;
position: absolute;

top: 0; left: 0;

background-image: url('/images/market-bg-22.png');
background-size: cover;
background-position: center;

border-radius: 20px;
border: 1px solid rgba(57,255,20,0.25);

padding: 20px;
text-align: center;

box-shadow:
      0 0 22px rgba(57,255,20,0.15),
      inset 0 0 12px rgba(57,255,20,0.25);

backface-visibility: hidden !important;
-webkit-backface-visibility: hidden !important;
}

/* FRONT */
.flip-front {
transform: rotateY(0deg);
z-index: 2;
backdrop-filter: blur(20px);
}

/* BACK */
.flip-back {
transform: rotateY(180deg);
z-index: 1;
position: relative;
backdrop-filter: blur(20px) !important;
}

/* ===================== CARD CONTENT ===================== */

.marketplace-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 15px;

  background: rgba(0, 0, 0, 0.949);
  border: 2px solid #39ff14;
  border-radius: 12px;
  padding: 8px;

  box-shadow: 
      0 0 6px rgba(57, 255, 20, 0.45),
      inset 0 0 8px rgba(57, 255, 20, 0.25);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flip-card:hover .marketplace-img {
  transform: scale(1.08);
  box-shadow: 
      0 0 12px rgba(57, 255, 20, 0.75),
      inset 0 0 10px rgba(57, 255, 20, 0.35);
}



.marketplace-img1 {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 15px;

  background: rgba(0, 0, 0, 0.949);
  border: 2px solid grey;
  border-radius: 12px;
  padding: 8px;

  box-shadow: 
      0 0 6px rgba(128, 128, 128, 0.5),
      inset 0 0 8px rgba(128, 128, 128, 0.159);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flip-card:hover .marketplace-img1 {
  transform: scale(1.08);
  box-shadow: 
      0 0 12px rgba(128, 128, 128, 0.707),
      inset 0 0 10px rgba(128, 128, 128, 0.218);
}



.marketplace-img2 {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 15px;

  background: rgba(0, 0, 0, 0.949);
  border: 2px solid #fe1717;
  border-radius: 12px;
  padding: 8px;

  box-shadow: 
      0 0 6px #fe17177b,
      inset 0 0 8px #fe171727;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flip-card:hover .marketplace-img2 {
  transform: scale(1.08);
  box-shadow: 
      0 0 12px #fe171732,
      inset 0 0 10px #fe171727;
}



.marketplace-img3 {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 15px;

  background: rgba(0, 0, 0, 0.949);
  border: 2px solid #2196f3;
  border-radius: 12px;
  padding: 8px;

  box-shadow: 
      0 0 6px #2195f37d,
      inset 0 0 8px #2195f325;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flip-card:hover .marketplace-img3 {
  transform: scale(1.08);
  box-shadow: 
      0 0 12px #2195f328,
      inset 0 0 10px #2195f320;
}



.marketplace-img4 {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 15px;

  background: rgba(0, 0, 0, 0.949);
  border: 2px solid #9c27b0;
  border-radius: 12px;
  padding: 8px;

  box-shadow: 
      0 0 6px #9b27b07c,
      inset 0 0 8px #9b27b030;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flip-card:hover .marketplace-img4 {
  transform: scale(1.08);
  box-shadow: 
      0 0 12px #9b27b028,
      inset 0 0 10px #9b27b017;
}




.marketplace-img5 {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 15px;

  background: rgba(0, 0, 0, 0.949);
  border: 2px solid orange;
  border-radius: 12px;
  padding: 8px;

  box-shadow: 
      0 0 6px rgba(255, 166, 0, 0.481),
      inset 0 0 8px rgba(255, 166, 0, 0.162);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flip-card:hover .marketplace-img5 {
  transform: scale(1.08);
  box-shadow: 
      0 0 12px rgba(255, 166, 0, 0.14),
      inset 0 0 10px rgba(255, 166, 0, 0.078);
}

/* Headings & text */


.flip-front p {
  font-family: 'Audiowide', cursive;
  opacity: 0.85;
  margin-bottom: 5px;
}

/* Buttons */
.card-buttons {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.card-btn {
  padding: 8px 18px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Audiowide', cursive;
  font-size: 0.85rem;

  border: 1px solid rgba(57,255,20,0.55);
  background: rgba(57,255,20,0.12);
  color: #39ff14;
  transition: 0.3s ease;
}

.card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(57,255,20,0.55);
}

/* Rarity */
.rarity-text {
  font-family: 'Audiowide', cursive;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 6px;
  color: #39ff14;
}

.rarity-bar {
  height: 6px;
  border-radius: 50px;
  margin: 10px 0 15px 0;
}

.rarity-common { background: grey; }
.rarity-rare { background: #fe1717; }
.rarity-epic { background: #2196f3; }
.rarity-legendary { background: #9c27b0; }
.rarity-mythic { background: orange; }

.flip-front .head1,
.flip-back .head1 {
  font-family: 'Audiowide', cursive;
  color: rgb(179, 179, 179);
  margin-bottom: 10px;
}


.flip-front .head2,
.flip-back .head2 {
  font-family: 'Audiowide', cursive;
  color: #fd4848;
  margin-bottom: 10px;
}


.flip-front .head3,
.flip-back .head3 {
  font-family: 'Audiowide', cursive;
  color: #66baff;
  margin-bottom: 10px;
}

.flip-front .head4,
.flip-back .head4 {
  font-family: 'Audiowide', cursive;
  color: #e975fd;
  margin-bottom: 10px;
}


.flip-front .head5,
.flip-back .head5 {
  font-family: 'Audiowide', cursive;
  color: rgb(251, 188, 71);
  margin-bottom: 10px;
}






.rarity-text1 {
  font-family: 'Audiowide', cursive;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 6px;
  color: #fd4848;
}




.rarity-text2 {
  font-family: 'Audiowide', cursive;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 6px;
  color: rgb(179, 179, 179);
}

.rarity-text3 {
  font-family: 'Audiowide', cursive;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 6px;
  color: #66baff;
}

.rarity-text4 {
  font-family: 'Audiowide', cursive;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 6px;
  color: #e975fd;
}


.rarity-text5 {
  font-family: 'Audiowide', cursive;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 6px;
  color: rgb(251, 188, 71);
}


/* Flip Card Container */
.flip-card1 {
  width: 100%;
  height: 250px;
  perspective: 1000px;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip-card1:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Front & Back Faces */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; 
  left: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.236);
  border: 1px solid rgba(57, 255, 20, 0.4);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
/* backdrop-filter: blur(20px) !important; */
  /* Safari (WebKit) and Firefox support for backdrop-filter */
  -webkit-backdrop-filter: blur(20px) !important;
  backdrop-filter: blur(20px) !important;

  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

/* FRONT */
.flip-card-front {
  transform: rotateY(0deg);
  z-index: 2;
}

/* BACK */
.flip-card-back {
  transform: rotateY(180deg);
  z-index: 1;
}

/* Icon Style */
.flip-card-front i {
  color: #39ff14;
  margin-bottom: 10px;
}

.flip-card-front h3 {
  font-family: 'Audiowide', cursive;
  color: #39ff14;
}

/* Back Text */
.flip-card-back p {
  font-family: 'Audiowide', cursive;
  color: #39ff14;
  opacity: 0.9;
  font-size: 0.95rem;
}




