/* ==================== */
/* БЛОКИ ИМЕНИННИКОВ */
/* ==================== */

/* Контейнер для элемента именинника */
.birthday-item {
  position: relative;
  background: linear-gradient(145deg, #1e276b, #bc688e);
  border-radius: 12px;
  padding: 20px 15px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  overflow: hidden;
  z-index: 1;
  margin-bottom: 30px; 
}

/* Анимация при наведении */
.birthday-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Декоративная полоса сверху */
.birthday-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #D24A4A, #FFD700);
}

/* Ленточка "ДР" */
.birthday-ribbon {
  position: absolute;
  right: 10px;
  font-size: 24px;
  animation: bounce 2s infinite;
}

/* ==================== */
/* АВАТАР ИМЕНИННИКА */
/* ==================== */

/* Контейнер для аватара */
.birthday-avatar-wrapper {
  display: inline-block;
  position: relative;
  margin-bottom: 10px;
}

/* Стили аватара */
.birthday-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #FFD700;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

/* Свечение вокруг аватара */
.birthday-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: radial-gradient(circle, rgba(255,215,0,0.4) 0%, rgba(255,215,0,0) 70%);
  border-radius: 50%;
  animation: pulse 2s infinite;
  z-index: 1;
}

/* ==================== */
/* ИНФОРМАЦИЯ ОБ ИМЕНИННИКЕ */
/* ==================== */

.birthday-info {
  margin-top: 15px;
}

/* Имя пользователя */
.birthday-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

/* Возраст */
.birthday-age {
  color: #FFD700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 15px;
}

/* Число возраста */
.age-number {
  font-weight: bold;
  font-size: 18px;
}

/* Ссылка на пользователя */
.user-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.user-link:hover {
  color: #FFD700;
  text-decoration: none;
}

/* ==================== */
/* КНОПКА ПОДАРКА */
/* ==================== */

.birthday-btn {
  background: linear-gradient(to right, #D24A4A, #FF6B6B);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.birthday-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  background: linear-gradient(to right, #FF6B6B, #D24A4A);
}

/* ==================== */
/* СООБЩЕНИЕ ОБ ОТСУТСТВИИ ИМЕНИННИКОВ */
/* ==================== */

.no-birthdays {
  color: #97a7bd;
  padding: 25px;
  text-align: center;
  font-size: 16px;
  background: rgba(30, 39, 107, 0.2);
  border-radius: 10px;
  margin: 20px auto;
  max-width: 500px;
}

/* ==================== */
/* АНИМАЦИИ */
/* ==================== */

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 0.9; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==================== */
/* МОДАЛЬНОЕ ОКНО ПОДАРКА */
/* ==================== */

.birthday-modals {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
}

.modals-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 25px;
  border-radius: 10px;
  max-width: 500px;
  position: relative;
  animation: modalFadeIn 0.3s;
}

/* Кнопка закрытия */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #ff69b4;
}

/* Контент поздравления */
.congrats-content {
  padding: 20px;
  background-color: #363232;
}

.congrats-message {
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.6;
}

/* ==================== */
/* АНИМАЦИЯ КОНФЕТТИ */
/* ==================== */

.confetti {
  width: 100%;
  height: 100px;
  margin: 20px 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="3" fill="%23ff69b4"/><circle cx="50" cy="30" r="2" fill="%23ffd700"/><circle cx="70" cy="10" r="2" fill="%2300bfff"/><circle cx="30" cy="60" r="3" fill="%23ff69b4"/><circle cx="80" cy="50" r="2" fill="%23ffd700"/><circle cx="10" cy="80" r="2" fill="%2300bfff"/></svg>');
  background-repeat: repeat;
  animation: confettiFall 5s linear infinite;
}

/* Анимация появления модального окна */
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Анимация падения конфетти */
@keyframes confettiFall {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}