/**
 * Gospin WD Ticker — experimental mobile notification
 * Namespace: .gsp-wd-*
 * Default interval: 10s (same as legacy snackbar)
 */

.gsp-wd-host {
  position: fixed;
  left: 10px;
  right: auto;
  bottom: 52px;
  width: auto;
  max-width: calc(100vw - 20px);
  z-index: 9990;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.gsp-wd-card {
  pointer-events: auto;
  display: flex;
  align-items: center;
  align-self: flex-start;
  width: auto;
  max-width: min(320px, calc(100vw - 24px));
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background:
    linear-gradient(135deg, rgba(20, 16, 8, 0.94), rgba(40, 28, 8, 0.92));
  border: 1px solid rgba(237, 176, 0, 0.45);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 220, 120, 0.12);
  color: #fff7e0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  opacity: 0;
  transform: translateX(-110%);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.gsp-wd-card.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.gsp-wd-card.is-visible:hover {
  border-color: rgba(237, 176, 0, 0.72);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 220, 120, 0.16);
}

.gsp-wd-card.is-visible:active {
  transform: translateX(0) scale(0.98);
}

.gsp-wd-card.is-leaving {
  opacity: 0;
  transform: translateX(18%);
}

.gsp-wd-logo-wrap {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.gsp-wd-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.gsp-wd-logo-fallback {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1a1200;
  text-align: center;
  line-height: 1.1;
  padding: 2px;
}

.gsp-wd-body {
  min-width: 0;
  flex: 1 1 auto;
}

.gsp-wd-title {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.gsp-wd-title strong {
  color: #ffd76a;
  font-weight: 800;
}

.gsp-wd-meta {
  margin: 2px 0 0;
  font-size: 11px;
  color: rgba(255, 236, 190, 0.78);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gsp-wd-badge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1200;
  background: linear-gradient(180deg, #ffe08a, #edb000);
  border-radius: 999px;
  padding: 4px 8px;
}

@media (min-width: 480px) and (min-height: 480px) {
  .gsp-wd-host {
    top: 16px;
    bottom: auto;
    left: 16px;
    right: auto;
    width: auto;
    max-width: 420px;
    z-index: 100100;
  }

  .gsp-wd-card {
    width: auto;
    min-width: 280px;
    max-width: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gsp-wd-card {
    transition: opacity 0.2s ease;
  }
}
