/**
 * Flip-to-scan AI share card for disaster pages
 * @see public/finance/js/disaster-ai-scan-card.js
 */

.dasc-wrap {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}

.dasc-flip-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  perspective: 900px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  display: block;
  text-align: left;
}

.dasc-flip-card:focus-visible {
  outline: 2px solid var(--zen-primary, #4a90a4);
  outline-offset: 4px;
  border-radius: 14px;
}

.dasc-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
}

.dasc-flip-card.is-flipped .dasc-flip-inner {
  transform: rotateY(180deg);
}

.dasc-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  border: 1px solid rgba(74, 144, 164, 0.28);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dasc-face--front {
  background: linear-gradient(145deg, #0f2744 0%, #1e3a5f 55%, #2980b9 100%);
  color: #fff;
}

.dasc-face--back {
  background: #fff;
  transform: rotateY(180deg);
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
}

.dasc-front-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem 0.25rem;
  min-height: 0;
}

.dasc-front-art img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.dasc-front-icon {
  font-size: 3.25rem;
  color: #93c5fd;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.dasc-front-body {
  padding: 0.65rem 0.85rem 0.85rem;
}

.dasc-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 0.25rem;
}

.dasc-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.dasc-hint {
  font-size: 0.72rem;
  opacity: 0.9;
  margin: 0;
}

.dasc-open-ai {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.dasc-open-ai:hover {
  background: rgba(255, 255, 255, 0.22);
}

.dasc-back-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zen-primary, #4a90a4);
  margin-bottom: 0.35rem;
}

.dasc-qr-shell {
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 0.5rem;
}

.dasc-qr-shell img {
  width: 118px;
  height: 118px;
  display: block;
}

.dasc-scan-url {
  font-size: 0.62rem;
  color: var(--text-muted, #6b7280);
  word-break: break-all;
  line-height: 1.35;
  margin: 0;
}
