.snake-alert {
  position: relative;
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: #1a1a1c;
  border: 1px solid #3a3a3a;
  font-family: var(--font-family);
  width: 100%;
}

/* Sizes */
.snake-alert--small {
  padding: var(--spacing-sm);
  gap: var(--spacing-sm);
}

.snake-alert--large {
  padding: var(--spacing-lg);
  gap: var(--spacing-lg);
}

/* Border positions */
.snake-alert--border-left {
  border-left-width: 4px;
}

.snake-alert--border-top {
  border-top-width: 4px;
}

.snake-alert--border-all {
  border-width: 2px;
}

/* Variants */
.snake-alert--default {
  background-color: #1a1a1c;
  border-color: #3a3a3a;
}

.snake-alert--default.snake-alert--border-left,
.snake-alert--default.snake-alert--border-top {
  border-left-color: var(--color-text-primary);
  border-top-color: var(--color-text-primary);
}

.snake-alert--success {
  background-color: rgba(80, 250, 123, 0.1);
  border-color: rgba(80, 250, 123, 0.3);
}

.snake-alert--success.snake-alert--border-left,
.snake-alert--success.snake-alert--border-top,
.snake-alert--success.snake-alert--border-all {
  border-color: var(--color-success);
}

.snake-alert--warning {
  background-color: rgba(255, 184, 108, 0.1);
  border-color: rgba(255, 184, 108, 0.3);
}

.snake-alert--warning.snake-alert--border-left,
.snake-alert--warning.snake-alert--border-top,
.snake-alert--warning.snake-alert--border-all {
  border-color: var(--color-warning);
}

.snake-alert--danger {
  background-color: rgba(255, 85, 85, 0.1);
  border-color: rgba(255, 85, 85, 0.3);
}

.snake-alert--danger.snake-alert--border-left,
.snake-alert--danger.snake-alert--border-top,
.snake-alert--danger.snake-alert--border-all {
  border-color: var(--color-danger);
}

.snake-alert--info {
  background-color: rgba(97, 218, 251, 0.1);
  border-color: rgba(97, 218, 251, 0.3);
}

.snake-alert--info.snake-alert--border-left,
.snake-alert--info.snake-alert--border-top,
.snake-alert--info.snake-alert--border-all {
  border-color: #61dafb;
}

/* Icon */
.snake-alert__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 1.2em;
}

.snake-alert--small .snake-alert__icon {
  width: 20px;
  height: 20px;
  font-size: 1em;
}

.snake-alert--large .snake-alert__icon {
  width: 32px;
  height: 32px;
  font-size: 1.5em;
}

.snake-alert--default .snake-alert__icon {
  color: var(--color-text-primary);
}

.snake-alert--success .snake-alert__icon {
  color: var(--color-success);
}

.snake-alert--warning .snake-alert__icon {
  color: var(--color-warning);
}

.snake-alert--danger .snake-alert__icon {
  color: var(--color-danger);
}

.snake-alert--info .snake-alert__icon {
  color: #61dafb;
}

/* Content */
.snake-alert__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  min-width: 0;
}

/* Title */
.snake-alert__title {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  line-height: 1.2;
}

.snake-alert--small .snake-alert__title {
  font-size: var(--font-size-sm);
}

.snake-alert--large .snake-alert__title {
  font-size: var(--font-size-lg);
}

/* Description */
.snake-alert__description {
  font-size: var(--font-size-base);
  color: #bdbdbd;
  line-height: 1.5;
}

.snake-alert--small .snake-alert__description {
  font-size: var(--font-size-sm);
}

.snake-alert--large .snake-alert__description {
  font-size: var(--font-size-base);
}

.snake-alert__description a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: var(--font-weight-medium);
}

.snake-alert__description a:hover {
  opacity: 0.8;
}

/* Actions */
.snake-alert__actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

/* Close button */
.snake-alert__close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 1px solid transparent;
  color: #8e8e90;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 16px;
  padding: 0;
}

.snake-alert__close:hover {
  background-color: rgba(31, 29, 32, 0.6);
  border-color: #3a3a3a;
  color: var(--color-text-primary);
}

.snake-alert__close:active {
  transform: scale(0.95);
}

/* Corner decorations */
.snake-alert__corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid;
  opacity: 0.6;
  pointer-events: none;
}

.snake-alert--default .snake-alert__corner {
  border-color: #8e8e90;
}

.snake-alert--success .snake-alert__corner {
  border-color: var(--color-success);
}

.snake-alert--warning .snake-alert__corner {
  border-color: var(--color-warning);
}

.snake-alert--danger .snake-alert__corner {
  border-color: var(--color-danger);
}

.snake-alert--info .snake-alert__corner {
  border-color: #61dafb;
}

.snake-alert__corner--top-left {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.snake-alert__corner--top-right {
  top: -1px;
  right: -1px;
  border-left: none;
  border-bottom: none;
}

.snake-alert__corner--bottom-left {
  bottom: -1px;
  left: -1px;
  border-right: none;
  border-top: none;
}

.snake-alert__corner--bottom-right {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

/* Animation */
@keyframes snake-alert-slide-in {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.snake-alert {
  animation: snake-alert-slide-in var(--transition-normal) ease-out;
}

/* Hover effect */
.snake-alert:hover .snake-alert__corner {
  opacity: 1;
}

/* Focus styles for close button */
.snake-alert__close:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--color-bg-base),
    0 0 0 4px rgba(189, 189, 189, 0.3);
}
