.giveaways-section {
  margin-bottom: 2rem;
}

.giveaways-header {
  margin-bottom: 1.5rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.section-title svg {
  color: var(--primary);
}

.giveaways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .giveaways-grid {
    grid-template-columns: 1fr;
  }
}

.giveaway-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.giveaway-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.giveaway-card-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.giveaway-type-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.giveaway-type-badge.skin {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.giveaway-type-badge.balance {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.giveaway-type-badge.vip {
  background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
  color: white;
}

.giveaway-prize-image {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.giveaway-prize-image::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

.giveaway-prize-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 1;
}

.balance-icon,
.vip-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.balance-icon svg,
.vip-icon svg {
  width: 64px;
  height: 64px;
  fill: var(--primary);
}

.balance-amount,
.vip-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.giveaway-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-top: 0.5rem;
}

.giveaway-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.giveaway-info {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: auto 0 0 0;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.info-item svg {
  opacity: 0.7;
}

.giveaway-action {
  margin-top: auto;
}

.btn-participate {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
}

.btn-participate:not(.participated):not(.auth-required) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-participate:not(.participated):not(.auth-required):hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-participate.auth-required {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.btn-participate.auth-required:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}

.btn-participate.participated {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  cursor: not-allowed;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.btn-participate:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.countdown {
  font-weight: 600;
  color: var(--text-primary);
}

/* Анимация при загрузке */
.giveaway-card {
  animation: fadeInUp 0.5s ease;
}

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

/* Пульсация для времени */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.time-left.urgent .countdown {
  animation: pulse 1.5s ease-in-out infinite;
  color: #f5576c;
}
