/**
 * @file
 * Styles for WashU Alert.
 */

.washu-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background-color: #fef3c7;
  border-left: 4px solid #f59e0b;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.alert__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: #d97706;
  flex-shrink: 0;
}

.alert__icon:hover {
  color: #b45309;
}

.alert__svg {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

.alert__icon-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.alert__content {
  flex: 1;
  min-width: 0;
}

.alert__title {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  color: #78350f;
}

.alert__description {
  margin: 0;
  color: #92400e;
  line-height: 1.5;
}

.alert__button {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background-color: #d97706;
  color: white;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.alert__button:hover {
  background-color: #b45309;
  color: white;
}

/* Responsive styles */
@media (max-width: 768px) {
  .washu-alert {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .alert__icon {
    flex-direction: row;
    gap: 0.5rem;
  }

  .alert__button {
    align-self: stretch;
    text-align: center;
  }
}

/* Animation for new alerts */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.washu-alert[style*="display: flex"] {
  animation: slideDown 0.3s ease-out;
}
