/* "Din dag" — Before & After Interactive */

.din-dag-section {
  padding: 4rem 0;
}

.din-dag-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.din-dag-subtitle {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.05rem;
  color: #666;
  margin-top: 0.5rem;
}

/* Phase toggling */
.din-dag-container .din-dag-phase-after {
  display: none;
}

.din-dag-container.phase-after .din-dag-phase-before {
  display: none;
}

.din-dag-container.phase-after .din-dag-phase-after {
  display: block;
}

/* Card list */
.din-dag-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* Card wrapper */
.din-dag-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

.din-dag-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Notification card */
.din-dag-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 16px 20px;
  border-left: 3px solid transparent;
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.din-dag-container.phase-after .din-dag-item[data-risk] .din-dag-card {
  border-left-color: #c53939;
}

.din-dag-container.phase-after .din-dag-item[data-safe] .din-dag-card {
  border-left-color: #4b9a42;
}

/* Card header */
.din-dag-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.din-dag-sender-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}

/* Sender colors */
.sender-swedbank {
  background: #f4a422;
}
.sender-postnord {
  background: #0077b8;
}
.sender-skatteverket {
  background: #005b82;
}
.sender-klarna {
  background: #ffb3c7;
  color: #1e1f28;
}
.sender-dhl {
  background: #d40511;
}
.sender-netflix {
  background: #e50914;
}

.din-dag-sender-name {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e1f28;
}

.din-dag-card-time {
  margin-left: auto;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.75rem;
  color: #999;
}

/* Card body */
.din-dag-card-body {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #444;
}

/* URLs in cards */
.din-dag-card-body .scam-url,
.din-dag-card-body .safe-url {
  color: #444;
  text-decoration: underline;
  transition:
    color 0.3s ease,
    text-decoration-color 0.3s ease;
}

.din-dag-container.phase-after .din-dag-item[data-risk] .scam-url {
  color: #c53939;
  text-decoration: line-through;
}

/* Verdict badge (phase 2 only) */
.din-dag-verdict {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 2rem;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out;
}

.din-dag-verdict.verdict-safe {
  background: #4b9a42;
}

.din-dag-verdict.verdict-risk {
  background: #c53939;
}

.din-dag-container.phase-after .din-dag-item.is-visible .din-dag-verdict {
  opacity: 1;
  transform: translateY(0);
}

.din-dag-verdict-reason {
  font-weight: 400;
  opacity: 0.85;
}

/* Summary */
.din-dag-summary {
  text-align: center;
  margin-top: 2.5rem;
}

.din-dag-summary-text {
  font-family: "Lexend", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e1f28;
  margin-bottom: 0.25rem;
}

.din-dag-summary-sub {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

/* Phase 2 stats */
.din-dag-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.din-dag-stat {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.din-dag-stat-safe {
  color: #4b9a42;
}
.din-dag-stat-risk {
  color: #c53939;
}

/* Replay link */
.din-dag-replay {
  display: none;
  margin-top: 1rem;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.85rem;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
}

.din-dag-replay:hover {
  color: #1e1f28;
}

.din-dag-container.phase-after .din-dag-replay {
  display: inline-block;
}

/* Responsive */
@media screen and (max-width: 479px) {
  .din-dag-section {
    padding: 3rem 0;
  }

  .din-dag-card {
    padding: 14px 16px;
  }

  .din-dag-sender-icon {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .din-dag-summary-text {
    font-size: 1.2rem;
  }
}
