/* ============================================
   PREMIUM MARKET CARDS - 2025 GLASSMORPHISM
   ============================================ */

/* Card Container - Glassmorphism Base */
.market-card-premium {
  background: rgba(26, 31, 40, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(154, 255, 0, 0.15);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  will-change: transform;
}

.market-card-premium:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(154, 255, 0, 0.4);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(154, 255, 0, 0.2),
    0 0 40px rgba(154, 255, 0, 0.1);
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
  .market-card-premium {
    background: rgba(26, 31, 40, 0.95);
  }
}

/* Glassmorphic Header Bar */
.card-glass-header {
  background: linear-gradient(135deg,
    rgba(154, 255, 0, 0.1) 0%,
    rgba(122, 204, 0, 0.05) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(154, 255, 0, 0.2);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-badge {
  background: rgba(10, 14, 19, 0.8);
  border: 1px solid rgba(154, 255, 0, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9aff00;
}

.hot-badge {
  font-size: 14px;
  font-weight: 700;
  color: #ff6b6b;
  animation: pulse 2s ease-in-out infinite;
}

/* Banner Section */
.card-banner {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10, 14, 19, 0.6) 50%,
    rgba(10, 14, 19, 0.9) 100%
  );
}

.market-card-premium:hover .card-banner {
  transform: scale(1.05);
  transition: transform 0.6s ease;
}

/* Profile Circle - Overlapping Banner */
.card-profile {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(154, 255, 0, 0.6);
  box-shadow: 0 0 20px rgba(154, 255, 0, 0.4);
  position: absolute;
  top: 120px;
  left: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1f28, #0d1218);
  z-index: 10;
}

.card-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-card-premium:hover .card-profile {
  border-color: rgba(154, 255, 0, 0.9);
  box-shadow:
    0 0 30px rgba(154, 255, 0, 0.6),
    0 0 60px rgba(154, 255, 0, 0.3);
}

/* Content Section */
.card-content {
  padding: 50px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Title */
.card-title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta Info */
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.card-meta span {
  padding: 6px 12px;
  background: rgba(154, 255, 0, 0.08);
  border: 1px solid rgba(154, 255, 0, 0.2);
  border-radius: 8px;
}

/* Smart Context Box */
.smart-context {
  background: linear-gradient(135deg,
    rgba(154, 255, 0, 0.08) 0%,
    rgba(154, 255, 0, 0.03) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(154, 255, 0, 0.25);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.context-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.context-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
}

.context-value {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.context-value.positive {
  color: #22c55e;
}

.context-value.negative {
  color: #ef4444;
}

/* Probability Grid - STAR OF THE SHOW */
.probability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.prob-cell {
  background: linear-gradient(135deg,
    rgba(154, 255, 0, 0.05) 0%,
    rgba(122, 204, 0, 0.02) 100%
  );
  border: 2px solid rgba(154, 255, 0, 0.2);
  border-radius: 12px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.prob-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(154, 255, 0, 0.15) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.prob-cell:hover {
  border-color: rgba(154, 255, 0, 0.5);
  transform: translateY(-4px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(154, 255, 0, 0.2);
}

.prob-cell:hover::before {
  opacity: 1;
}

.prob-label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.prob-value {
  font-size: 40px;
  font-weight: 900;
  color: #9aff00;
  text-shadow:
    0 0 16px rgba(154, 255, 0, 0.6),
    0 0 32px rgba(154, 255, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: -2px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.prob-value.neon-glow {
  animation: neonPulse 3s ease-in-out infinite;
}

.prob-percent {
  font-size: 28px;
  opacity: 0.8;
}

/* Quick Bet Button */
.quick-bet-btn {
  background: linear-gradient(135deg,
    rgba(154, 255, 0, 0.15) 0%,
    rgba(122, 204, 0, 0.1) 100%
  );
  border: 2px solid rgba(154, 255, 0, 0.4);
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 800;
  font-size: 11px;
  color: #9aff00;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 100%;
}

.quick-bet-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(154, 255, 0, 0.3) 0%,
    rgba(122, 204, 0, 0.2) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.quick-bet-btn:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 20px rgba(154, 255, 0, 0.4),
    0 0 40px rgba(154, 255, 0, 0.2);
}

.quick-bet-btn:hover::before {
  opacity: 1;
}

/* Neon Glow Animation */
@keyframes neonPulse {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(154, 255, 0, 0.4),
      0 0 20px rgba(154, 255, 0, 0.2),
      0 0 30px rgba(154, 255, 0, 0.1);
  }
  50% {
    text-shadow:
      0 0 20px rgba(154, 255, 0, 0.8),
      0 0 40px rgba(154, 255, 0, 0.5),
      0 0 60px rgba(154, 255, 0, 0.3);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

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

/* Tablet */
@media (max-width: 1023px) {
  .prob-value {
    font-size: 42px;
  }

  .card-title {
    font-size: 18px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .card-banner {
    height: 140px;
  }

  .card-profile {
    width: 60px;
    height: 60px;
    top: 110px;
  }

  .card-content {
    padding: 40px 16px 16px;
  }

  .card-title {
    font-size: 17px;
  }

  .prob-value {
    font-size: 36px;
  }

  .prob-percent {
    font-size: 22px;
  }

  .quick-bet-btn {
    padding: 10px 16px;
    font-size: 12px;
  }

  .smart-context {
    grid-template-columns: 1fr;
  }
}

/* Extra small mobile */
@media (max-width: 374px) {
  .probability-grid {
    grid-template-columns: 1fr;
  }

  .prob-cell {
    padding: 16px;
  }
}
