/* ============================================
   СТИЛИ СТРАНИЦЫ ОТДЕЛЬНОГО РОЗЫГРЫША
   ============================================ */

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
.giveaway-item {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

/* ===== КНОПКА НАЗАД ===== */
.giveaway-item__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.giveaway-item__back:hover {
  color: var(--color-primary-start);
}

/* ===== ЗАГОЛОВОК ===== */
.giveaway-item__header {
  margin-bottom: 24px;
}

.giveaway-item__status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.giveaway-item__status--active {
  background: rgba(100, 255, 218, 0.15);
  color: #64ffda;
}

.giveaway-item__status--ended {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}

.giveaway-item__status--upcoming {
  background: rgba(255, 217, 61, 0.15);
  color: #ffd93d;
}

.giveaway-item__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-white);
  margin: 0 0 16px;
  line-height: 1.3;
}

/* ===== ИЗОБРАЖЕНИЕ ===== */
.giveaway-item__image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
}

/* ===== МЕТА-ИНФОРМАЦИЯ (ДАТЫ, УЧАСТНИКИ) ===== */
.giveaway-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 24px;
}

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

.giveaway-item__meta-label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.giveaway-item__meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-white);
}

/* ===== БЛОК ПРИЗА ===== */
.giveaway-item__prize {
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.08), rgba(100, 255, 218, 0.02));
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.giveaway-item__prize-icon {
  font-size: 1.8rem;
  color: #ffd700;
  flex-shrink: 0;
}

.giveaway-item__prize-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-white);
}

.giveaway-item__prize-name {
  color: #ffd700;
}

/* ===== ОПИСАНИЕ ===== */
.giveaway-item__description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

.giveaway-item__description p {
  margin: 0 0 12px;
}

.giveaway-item__description img {
  max-width: 100%;
  border-radius: 8px;
}

/* ===== БЛОК ДЕЙСТВИЙ ===== */
.giveaway-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  align-items: center;
}

/* Кнопка «Участвовать» */
.giveaway-item__btn-participate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
  background: linear-gradient(135deg, #64ffda, #48c9b0);
  color: #0a192f;
  font-family: inherit;
  line-height: 1.5;
}

.giveaway-item__btn-participate:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

.giveaway-item__btn-participate:active {
  transform: translateY(0);
}

.giveaway-item__btn-participate--joined {
  background: rgba(100, 255, 218, 0.15);
  color: #64ffda;
  cursor: default;
}

.giveaway-item__btn-participate--joined:hover {
  transform: none;
  box-shadow: none;
}

.giveaway-item__btn-participate:disabled {
  opacity: 0.7;
  cursor: default;
}

/* Кнопка «Войти, чтобы участвовать» */
.giveaway-item__btn-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
  background: var(--color-primary-start);
  color: #0a192f;
  font-family: inherit;
  line-height: 1.5;
}

.giveaway-item__btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* ===== КНОПКИ ДЕЙСТВИЙ (ЛАЙК, ИЗБРАННОЕ, ПОДЕЛИТЬСЯ) ===== */
/* Используются единые стили из action-buttons.css (классы .action-btn, .action-btn--like, .action-btn--favorite, .action-btn--share) */
/* Здесь только локальные переопределения для giveaway-item */

.giveaway-item__actions .action-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* ===== БЛОК СТАТИСТИКИ ===== */
.giveaway-item__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
}

.giveaway-item__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 80px;
}

.giveaway-item__stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-white);
}

.giveaway-item__stat-label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* ===== БЛОК ПОБЕДИТЕЛЯ ===== */
.giveaway-item__winner {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.03));
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 28px;
  text-align: center;
}

.giveaway-item__winner-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffd700;
  margin-bottom: 10px;
  font-weight: 600;
}

.giveaway-item__winner-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-white);
}

.giveaway-item__winner-name a {
  color: #ffd700;
  text-decoration: none;
}

.giveaway-item__winner-name a:hover {
  text-decoration: underline;
}

/* ===== РАЗДЕЛ КОММЕНТАРИЕВ ===== */
.giveaway-item__comments {
  margin-top: 32px;
}

.giveaway-item__comments-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 768px) {
  .giveaway-item__title {
    font-size: 1.5rem;
  }

  .giveaway-item__actions {
    flex-direction: column;
  }

  .giveaway-item__actions .giveaway-item__btn-participate,
  .giveaway-item__actions .giveaway-item__btn-login {
    width: 100%;
    justify-content: center;
  }

  .giveaway-item__actions .action-buttons {
    width: 100%;
    justify-content: center;
  }

  .giveaway-item__meta {
    flex-direction: column;
    gap: 12px;
  }

  .giveaway-item__stats {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .giveaway-item {
    padding: 12px 12px 40px;
  }

  .giveaway-item__title {
    font-size: 1.3rem;
  }

  .giveaway-item__image {
    max-height: 250px;
  }

  .giveaway-item__stat {
    min-width: 60px;
  }

  .giveaway-item__stat-value {
    font-size: 1.1rem;
  }
}