/* games/true_false_swipe/true_false_swipe.css */

.tfs-card {
  --tfs-choice-card-height: clamp(92px, 12vh, 108px);
  --tfs-choices-gap: 18px;
  --tfs-statement-choices-gap: clamp(24px, 7vh, 68px);
  --tfs-footer-dock-height: 84px;

  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  min-height: 100%;
  color: #1c2342;
  padding-bottom: 96px; /* 84 + 12 */
}

.tfs-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #6b6f76;
}

.tfs-topic {
  font-weight: 600;
}

.tfs-counter {
  opacity: 0.85;
}

/* Statement-Wrapper: relative für Badge-Positionierung */
.tfs-statement-wrapper {
  position: relative;
  margin-top: 12px;
}

/* Statement-Box – analog zu sc-question / mc-question */
.tfs-statement-card {
  border-radius: 16px;
  background: linear-gradient(135deg, #f7f7fb, #eef0f7);
  border: 1px solid rgba(28, 35, 66, 0.08);
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  color: #1c2342;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition:
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.tfs-statement-card--answered {
  border-color: #1c2342;
}

.tfs-result-badge {
  position: absolute;
  top: -16px;
  right: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-6px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tfs-result-badge--true {
  background: #2e7d32;
  color: #ffffff;
}

.tfs-result-badge--false {
  background: #c62828;
  color: #ffffff;
}

.tfs-result-badge--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Antwort-Buttons – nach unten schieben */
.tfs-choices-row {
  display: flex;
  flex-direction: column;
  gap: var(--tfs-choices-gap);
  margin-top: auto;
  padding-top: var(--tfs-statement-choices-gap);
}

.tfs-choice {
  width: 100%;
  min-height: var(--tfs-choice-card-height);
  height: var(--tfs-choice-card-height);
  padding: 18px 22px;
  border-radius: 28px;
  border: 2px solid rgba(28, 35, 66, 0.14);
  background: linear-gradient(180deg, #fffaf3 0%, #f3e6cb 100%);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow:
    0 12px 26px rgba(28, 35, 66, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.06s ease,
    filter 0.15s ease;
}

.tfs-choice--false {
  color: #c62828;
  border-color: rgba(198, 40, 40, 0.18);
}

.tfs-choice--true {
  color: #2e7d32;
  border-color: rgba(46, 125, 50, 0.18);
}

.tfs-choice:hover:not(.tfs-choice--disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(28, 35, 66, 0.14);
  filter: brightness(1.01);
}

.tfs-choice--selected {
  border-color: #1c2342;
  background: linear-gradient(180deg, #eef1ff 0%, #e4e9ff 100%);
  box-shadow: 0 14px 30px rgba(28, 35, 66, 0.18);
}

.tfs-choice--pressed {
  animation: tfs-choice-pop 0.26s ease-out;
}

.tfs-choice--disabled {
  cursor: default;
  opacity: 0.9;
}

.tfs-footer-row {
  --gm-dock-height: 84px;
  --gm-dock-bg: #1c2342;
}

.tfs-next-btn {
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0 20px 3px;
}

/* Hover-Transform auf Touch deaktivieren */
@media (hover: none) {
  .tfs-choice:hover:not(.tfs-choice--disabled) {
    transform: none;
    box-shadow: none;
  }
}

/* ==============================
   Mobile Feintuning
   ============================== */

@media (max-width: 600px) {
  .tfs-card {
    --tfs-choice-card-height: clamp(88px, 11.2vh, 100px);
    width: 100%;
    max-width: 100%;
    gap: 8px;
    padding-top: 13px;
    padding-bottom: 100px; /* 84 + 16 */
  }

  .tfs-meta-row {
    font-size: 0.85rem;
    flex-wrap: wrap;
  }

  .tfs-statement-wrapper {
    margin-top: 8px;
  }

  .tfs-statement-card {
    font-size: 1rem;
    padding: 14px 12px;
  }

  .tfs-result-badge {
    font-size: 0.8rem;
  }

  .tfs-choices-row {
    margin-top: auto;
    gap: 16px;
    padding-top: var(--tfs-statement-choices-gap);
  }

  .tfs-choice {
    font-size: 1.2rem;
    padding: 16px 14px;
    border-radius: 24px;
  }
}

@keyframes tfs-choice-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
