/* Стили для карточки кейса - Premium Gold Design */

.case-container {
  margin-bottom: 24px;
  width: 100%;
  padding: 0;
  animation: caseFadeIn 0.5s ease-out;
}

@keyframes caseFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* В разделе бустов кейс должен быть первым */
.boosts-panel .case-container {
  margin-top: 0;
  margin-bottom: 20px;
}

/* Основная карточка */
.case-card {
  position: relative;
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 24px;
  padding: 24px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 215, 0, 0.15),
    inset 0 0 20px rgba(255, 215, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

/* Эффект свечения на фоне */
.case-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.case-card>* {
  position: relative;
  z-index: 1;
}

/* Заголовок */
.case-card-header {
  text-align: center;
  margin-bottom: 10px;
}

.case-card-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px 0;
  background: linear-gradient(to right, #ffd700, #fff, #ffd700);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 15px rgba(255, 215, 0, 0.3);
  letter-spacing: 0.5px;
}

.case-card-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.4;
}

/* Изображение кейса */
.case-card-image {
  position: relative;
  text-align: center;
  margin: 10px 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.case-card-image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
  animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.case-card-image img {
  max-width: 220px;
  max-height: 220px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.case-card-image:hover img {
  transform: scale(1.05) rotate(2deg);
}

.case-card-placeholder {
  font-size: 100px;
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

/* Информация о цене и балансе */
.case-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.case-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.case-info-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.case-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.case-value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.case-value.price {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Список наград */
.case-card-tiers {
  margin-top: 10px;
}

.case-tiers-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
  text-align: center;
}

.case-tiers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-tier-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform 0.2s, background 0.2s;
}

.case-tier-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.case-tier-emoji {
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.case-tier-name {
  flex: 1;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.case-tier-range {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.case-tier-probability {
  color: #ffd700;
  font-weight: 700;
  font-size: 13px;
  background: rgba(255, 215, 0, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
}

/* Кнопка открытия */
.case-open-button {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  font-weight: 800;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 5px 20px rgba(255, 170, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.case-open-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.case-open-button:hover:not(.case-open-button-disabled) {
  transform: translateY(-4px);
  box-shadow:
    0 10px 30px rgba(255, 170, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.case-open-button:hover::before {
  left: 100%;
}

.case-open-button:active:not(.case-open-button-disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(255, 170, 0, 0.3);
}

.case-open-button-disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  box-shadow: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .case-card {
    padding: 20px;
    border-radius: 20px;
  }

  .case-card-title {
    font-size: 24px;
  }

  .case-card-image img {
    max-width: 180px;
    max-height: 180px;
  }

  .case-open-button {
    padding: 16px;
    font-size: 16px;
  }
}