/*
 * Alerts - Subtle & Clean
 */

.alert {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid;
  margin-bottom: var(--space-6);
  font-size: 0.9375rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.alert-info {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: #67e8f9;
}

.alert-heading {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.alert-dismissible .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.6;
}

.alert-dismissible .btn-close:hover {
  opacity: 1;
}

.flash-messages-container {
  position: fixed;
  top: calc(72px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 1050;
  pointer-events: none;
}

.flash-alert {
  pointer-events: auto;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(10px);
}

.flash-alert-success {
  background-color: rgba(25, 135, 84, 0.95);
  border-color: rgba(25, 135, 84, 0.3);
}

.flash-alert-danger {
  background-color: rgba(220, 53, 69, 0.95);
  border-color: rgba(220, 53, 69, 0.3);
}

.flash-alert-info {
  background-color: rgba(13, 110, 253, 0.95);
  border-color: rgba(13, 110, 253, 0.3);
}

/* Daily login bonus: full-width tap target; inherits alert text color (no Bootstrap .alert-link blue). */
.daily-login-bonus-link {
  color: inherit;
  display: block;
  text-decoration: none;
  padding-right: 2.25rem;
}

.daily-login-bonus-link:hover {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Coarse pointer (touch): "tap"; fine/none default: "click" */
.daily-bonus-action-tap {
  display: none;
}

.daily-bonus-action-click {
  display: inline;
}

@media (pointer: coarse) {
  .daily-bonus-action-tap {
    display: inline;
  }

  .daily-bonus-action-click {
    display: none;
  }
}

/* Left-border accent variant */
.alert-with-border {
  border-left-width: 4px;
}
.alert-info.alert-with-border {
  border-left-color: var(--info);
}
.alert-warning.alert-with-border {
  border-left-color: var(--warning);
}

/* Icon emoji inside alert heading */
.alert-icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* Mobile alerts */
@media (max-width: 768px) {
  .alert {
    padding: var(--space-3) var(--space-4);
  }
}
