/* ====== Стили для страницы оповещений ====== */

.alerts-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 20px;
}

.alert-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.alert-item.show {
  opacity: 1;
  transform: translateY(0);
}

.alert-header {
  padding: 16px 20px 12px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.alert-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.3;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.unread-dot {
  width: 8px;
  height: 8px;
  background: #ff4444;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

/* Убираем обводку, оставляем только точку */

.alert-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 16px 20px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.alert-date {
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

.alert-views {
  font-size: 12px;
  color: #666;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.alert-views.updated {
  color: #43a047;
  transform: scale(1.1);
}

.alert-image {
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  background: #f8f9fa;
}

.alert-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.alert-content {
  padding: 16px 20px 20px 20px;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

.alert-content p {
  margin: 0 0 12px 0;
}

.alert-content p:last-child {
  margin-bottom: 0;
}

/* Стили для пустого состояния */
.empty-alerts-message {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #e0e0e0;
}

.empty-alerts-message div:first-child {
  font-size: 1.2em;
  margin-bottom: 12px;
  color: #495057;
  font-weight: 500;
  line-height: 1.4;
}

.empty-alerts-message div:last-child {
  font-size: 0.95em;
  color: #6c757d;
  margin-top: 8px;
}

/* Стили для ошибки */
.error-message {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border-radius: 16px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #f5c6cb;
}

.error-message div:first-child {
  font-size: 1.2em;
  margin-bottom: 12px;
  color: #721c24;
  font-weight: 500;
  line-height: 1.4;
}

.error-message div:last-child {
  font-size: 0.95em;
  color: #721c24;
  margin-top: 8px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
  .alert-header {
    padding: 14px 16px 10px 16px;
  }
  
  .alert-title {
    font-size: 16px;
  }
  
  .alert-content {
    padding: 14px 16px 16px 16px;
    font-size: 14px;
  }
  
  .alert-footer {
    padding: 10px 16px 14px 16px;
  }
  
  .alert-views {
    font-size: 11px;
  }
  
  .alert-image {
    max-height: 250px;
  }
}

/* Индикатор непрочитанных оповещений */
.nav-btn {
  position: relative;
}

.unread-indicator {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  z-index: 10;
}

.unread-indicator.hidden {
  display: none;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
}

 