/* Giveaway Popup Styles */
.giveaway-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 60px;
  padding-bottom: 40px;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.giveaway-popup {
  width: 100%;
  max-width: 900px;
  background: #242526;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  animation: slideDown 0.4s ease;
  margin: 0 20px;
}

@keyframes slideDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.giveaway-header {
  background: linear-gradient(90deg, #ffb300, #ff7b00);
  color: white;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.giveaway-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.giveaway-close {
  font-size: 34px;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
  line-height: 1;
  padding: 0;
}

.giveaway-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.giveaway-cards {
  display: grid;
  gap: 20px;
  padding: 24px;
}

/* Dynamic grid based on number of items */
.giveaway-items-1 {
  grid-template-columns: 1fr;
  max-width: 400px;
  margin: 0 auto;
}

.giveaway-items-2 {
  grid-template-columns: repeat(2, 1fr);
}

.giveaway-items-3 {
  grid-template-columns: repeat(3, 1fr);
}

.giveaway-card {
  background: #2d2f33;
  border: 2px solid #40444b;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.giveaway-card:hover {
  transform: translateY(-6px);
  border-color: #ff9800;
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.3);
}

.giveaway-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
}

.giveaway-card h2 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.giveaway-card p {
  color: #a7a7a7;
  margin-bottom: 20px;
  font-size: 15px;
  flex-grow: 1;
}

.giveaway-join {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 14px 20px;
  border-radius: 8px;
  color: white;
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(90deg, #ffb300, #ff7700);
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(255, 119, 0, 0.3);
}

.giveaway-join:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
  box-shadow: 0 6px 16px rgba(255, 119, 0, 0.5);
}

.giveaway-join:active {
  transform: scale(0.98);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .giveaway-overlay {
    padding-top: 20px;
  }

  .giveaway-popup {
    margin: 0 16px;
  }

  .giveaway-header h1 {
    font-size: 22px;
  }

  .giveaway-cards {
    padding: 16px;
  }

  .giveaway-items-2,
  .giveaway-items-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .giveaway-card {
    padding: 24px 16px;
  }

  .giveaway-card img {
    width: 100px;
    height: 100px;
  }

  .giveaway-card h2 {
    font-size: 20px;
  }
}
