/* Empty Fuda — swipe feed visual scaffold. Dark monochrome, JetBrains Mono. */

/* ---------- Landing page (cards/index.md) ---------- */

.fuda-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0 32px;
}

.fuda-cta-btn {
  display: inline-block;
  padding: 14px 22px;
  border: 1px solid var(--accent, #8a8);
  background: transparent;
  color: var(--accent, #8a8);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background 120ms, color 120ms, border-color 120ms;
}

.fuda-cta-btn:hover {
  background: var(--accent, #8a8);
  color: #000;
}

.fuda-cta-btn--secondary {
  border-color: #555;
  color: #999;
}
.fuda-cta-btn--secondary:hover {
  background: #555;
  color: #ddd;
}

.fuda-preview {
  margin: 24px 0 32px;
  overflow-x: auto;
}

.fuda-card-frame {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #cfc;
  background: rgba(20, 24, 20, 0.5);
  padding: 18px 14px;
  border: 1px solid #2a2;
  white-space: pre;
  margin: 0;
}

/* ---------- Feed page (cards/feed.md) ---------- */

.fuda-feed-shell {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  background: #050805;
  color: #cfc;
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
}

.fuda-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 3px,
    transparent 4px
  );
  z-index: 1;
}

.fuda-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #1a3a1a;
  z-index: 2;
  position: relative;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.fuda-topbar-back,
.fuda-topbar-deck {
  color: #6c6;
  text-decoration: none;
}

.fuda-topbar-back:hover,
.fuda-topbar-deck:hover {
  color: #cfc;
}

.fuda-topbar-title {
  color: #cfc;
  font-weight: 600;
}

.fuda-stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 24px 16px;
  min-height: 480px;
}

.fuda-card-stack {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 540px;
}

.fuda-card {
  position: absolute;
  inset: 0;
  background: #0a100a;
  border: 1px solid #3a3;
  padding: 24px 22px 22px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  cursor: grab;
  user-select: none;
  touch-action: none;
  will-change: transform;
  transition: transform 240ms cubic-bezier(.2,.8,.2,1), opacity 240ms;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.fuda-card.is-active {
  z-index: 3;
}

.fuda-card.is-next {
  z-index: 2;
  transform: scale(0.96) translateY(8px);
  opacity: 0.7;
}

.fuda-card.is-fly-left {
  transform: translateX(-140%) rotate(-22deg);
  opacity: 0;
}

.fuda-card.is-fly-right {
  transform: translateX(140%) rotate(22deg);
  opacity: 0;
}

.fuda-card.is-fly-up {
  transform: translateY(-140%) rotate(2deg);
  opacity: 0;
}

.fuda-card.is-dragging {
  transition: none;
  cursor: grabbing;
}

.fuda-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #efe;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 18px;
}

.fuda-card-pointing {
  font-size: 14px;
  line-height: 1.7;
  color: #cfc;
  white-space: pre-wrap;
  flex: 1 1 auto;
}

.fuda-card-ascii {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.4;
  color: #9c9;
  white-space: pre;
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px dashed #2a3a2a;
  border-bottom: 1px dashed #2a3a2a;
  overflow-x: auto;
}

.fuda-card-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #1a3a1a;
  font-size: 11px;
  color: #6c6;
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fuda-card-meta-source a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted #6c6;
}

.fuda-card-meta-hint {
  color: #4a4;
}

.fuda-action-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 18px 16px 28px;
  z-index: 2;
  position: relative;
}

.fuda-action {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid #3a3;
  background: #0a100a;
  color: #cfc;
  font-size: 22px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms, background 120ms, color 120ms;
}

.fuda-action:hover {
  transform: scale(1.08);
}

.fuda-action--dismiss:hover { color: #f88; border-color: #844; }
.fuda-action--share:hover   { color: #ff8; border-color: #884; }
.fuda-action--collect:hover { color: #8f8; border-color: #484; }

.fuda-empty-state {
  text-align: center;
  color: #9c9;
  font-size: 14px;
}
.fuda-empty-state a {
  color: #cfc;
}

.fuda-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #0a100a;
  border: 1px solid #3a3;
  color: #cfc;
  padding: 10px 16px;
  font-size: 13px;
  z-index: 10;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

/* ---------- Deck page (cards/deck.md) ---------- */

.fuda-deck-shell {
  position: relative;
  min-height: calc(100vh - 80px);
  background: #050805;
  color: #cfc;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  flex-direction: column;
}

.fuda-deck-stage {
  flex: 1 1 auto;
  padding: 18px;
}

.fuda-deck-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.fuda-deck-card {
  background: #0a100a;
  border: 1px solid #2a3a2a;
  padding: 14px;
}

.fuda-deck-card-title {
  font-weight: 600;
  color: #efe;
  font-size: 14px;
  margin-bottom: 8px;
}

.fuda-deck-card-pointing {
  color: #cfc;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.fuda-deck-card-meta {
  font-size: 10px;
  color: #6c6;
  letter-spacing: 0.06em;
}

.fuda-deck-empty {
  text-align: center;
  color: #9c9;
  font-size: 14px;
  padding: 40px 20px;
}

/* Mobile tighten */
@media (max-width: 640px) {
  .fuda-card-stack { height: 580px; max-width: 100%; }
  .fuda-card { padding: 20px 18px 18px; }
  .fuda-card-title { font-size: 17px; }
  .fuda-card-pointing { font-size: 13px; }
}
