/* ═══════════════════════════════════════════════════
   FEELINGS TAROT READING — Romantic Theme CSS
   tarotwithlavanya.com
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ── Tokens ── */
:root {
  --ft-teal-deep: #2f5252;
  --ft-teal: #4b7878;
  --ft-gold: #F9C74F;
  --ft-gold-dark: #e0a800;
  --ft-cream: #fcfcf4;
  --ft-purple: #3a1d6e;
  --ft-rose-deep: #b5585a;
  --ft-rose: #d4a5a5;
  --ft-rose-muted: #b8918f;
  --ft-rose-pale: #f0dede;
  --ft-green: #5a8a6a;
  --ft-green-light: #7aad8a;
  --ft-amber: #d4940a;
  --ft-white: #ffffff;
  --ft-text: #3a3232;
  --ft-font-display: 'Cinzel Decorative', serif;
  --ft-font-heading: 'Cinzel', serif;
  --ft-font-body: 'Cormorant Garamond', serif;
  --ft-radius: 16px;
  --ft-radius-sm: 10px;
  --ft-shadow: 0 4px 24px rgba(181,88,90,0.10);
  --ft-shadow-glow: 0 0 24px rgba(181,88,90,0.25);
}

/* ── Reset & Container ── */
.feelings-tarot, .feelings-tarot * { box-sizing: border-box; margin: 0; padding: 0; }

.feelings-tarot {
  position: relative;
  max-width: 960px;
  margin: 2rem auto;
  padding: 2.5rem 2rem;
  background: var(--ft-cream);
  background-image: radial-gradient(ellipse at 15% 10%, rgba(212,165,165,0.13) 0%, transparent 55%),
                     radial-gradient(ellipse at 85% 90%, rgba(75,120,120,0.08) 0%, transparent 55%);
  border: 1px solid var(--ft-rose-pale);
  border-radius: var(--ft-radius);
  font-family: var(--ft-font-body);
  color: var(--ft-text);
  overflow: hidden;
  line-height: 1.6;
  font-size: 18px;
}

/* ── Ambient Particles ── */
.ft-particles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.ft-particles::before, .ft-particles::after {
  content: '';
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  animation: ftFloat 14s infinite linear;
  opacity: 0;
}
.ft-particles::before {
  box-shadow:
    60px 80px 0 var(--ft-rose), 200px 150px 0 var(--ft-gold),
    400px 60px 0 var(--ft-rose), 700px 200px 0 var(--ft-gold),
    150px 300px 0 var(--ft-rose-pale), 500px 350px 0 var(--ft-gold),
    50px 450px 0 var(--ft-rose), 350px 500px 0 var(--ft-gold),
    650px 100px 0 var(--ft-rose-pale), 800px 400px 0 var(--ft-rose);
  animation-duration: 18s;
}
.ft-particles::after {
  box-shadow:
    120px 40px 0 var(--ft-gold), 300px 250px 0 var(--ft-rose),
    550px 120px 0 var(--ft-gold), 80px 350px 0 var(--ft-rose),
    450px 450px 0 var(--ft-gold), 250px 180px 0 var(--ft-rose-pale),
    700px 300px 0 var(--ft-rose), 600px 500px 0 var(--ft-gold);
  animation-duration: 22s; animation-delay: -7s;
}
@keyframes ftFloat {
  0%, 100% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.5; }
  50% { opacity: 0.3; }
  90% { opacity: 0.5; }
  95% { opacity: 0; }
  99% { transform: translateY(-60px); }
}

/* ── Step Visibility ── */
.ft-step { display: none; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; }
.ft-step.ft-active { display: flex; animation: ftFadeUp 0.6s ease both; }
@keyframes ftFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Glyph ── */
.ft-glyph {
  font-size: 3rem;
  color: var(--ft-rose-deep);
  animation: ftPulseGlyph 3s ease-in-out infinite;
  margin-bottom: 0.5rem;
  user-select: none;
}
@keyframes ftPulseGlyph {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* ── Typography ── */
.ft-title {
  font-family: var(--ft-font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--ft-teal-deep);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
  font-weight: 700;
}
.ft-subtitle {
  font-family: var(--ft-font-heading);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--ft-rose-deep);
  margin-bottom: 1rem;
  font-weight: 600;
}
.ft-desc {
  max-width: 620px;
  font-size: 1.05rem;
  color: var(--ft-text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.ft-label {
  font-family: var(--ft-font-heading);
  font-size: 0.95rem;
  color: var(--ft-teal-deep);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}
.ft-optional { font-family: var(--ft-font-body); font-weight: 400; color: var(--ft-rose-muted); font-size: 0.85rem; }

/* ── Buttons ── */
.ft-btn {
  font-family: var(--ft-font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.ft-btn--primary {
  background: linear-gradient(135deg, var(--ft-gold), var(--ft-gold-dark));
  color: var(--ft-teal-deep);
  box-shadow: 0 4px 16px rgba(249,199,79,0.3);
}
.ft-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(249,199,79,0.45); }
.ft-btn--primary.ft-btn--disabled, .ft-btn--primary:disabled {
  opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important;
}
.ft-btn--secondary {
  background: transparent;
  color: var(--ft-rose-deep);
  border: 1.5px solid var(--ft-rose);
  margin-top: 0.75rem;
}
.ft-btn--secondary:hover { background: var(--ft-rose-pale); }

/* ── Positions Preview (Step 1) ── */
.ft-positions-preview {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
  max-width: 700px;
}
.ft-pos-card {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--ft-rose-pale);
  border-radius: var(--ft-radius-sm);
  padding: 1rem 0.75rem;
  width: 120px;
  backdrop-filter: blur(4px);
  transition: transform 0.3s;
}
.ft-pos-card:hover { transform: translateY(-4px); }
.ft-pos-icon { font-size: 1.6rem; margin-bottom: 0.3rem; }
.ft-pos-label { font-family: var(--ft-font-heading); font-size: 0.72rem; color: var(--ft-teal-deep); font-weight: 600; }
.ft-pos-sub { font-size: 0.68rem; color: var(--ft-rose-muted); margin-top: 0.2rem; }

/* ── Chips ── */
.ft-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.2rem; }
.ft-chip {
  font-family: var(--ft-font-body);
  font-size: 0.95rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 1.5px solid var(--ft-rose);
  background: transparent;
  color: var(--ft-text);
  cursor: pointer;
  transition: all 0.25s;
  font-weight: 500;
}
.ft-chip:hover { background: var(--ft-rose-pale); border-color: var(--ft-rose-deep); }
.ft-chip.ft-active {
  background: var(--ft-rose-deep); color: var(--ft-white); border-color: var(--ft-rose-deep);
}
.ft-chip--sm { font-size: 0.85rem; padding: 0.4rem 1rem; }

/* ── Input ── */
.ft-input {
  font-family: var(--ft-font-body);
  font-size: 1.05rem;
  padding: 0.7rem 1.2rem;
  border: 1.5px solid var(--ft-rose-pale);
  border-radius: var(--ft-radius-sm);
  background: rgba(255,255,255,0.7);
  color: var(--ft-text);
  width: 100%;
  max-width: 320px;
  text-align: center;
  outline: none;
  transition: border-color 0.3s;
}
.ft-input:focus { border-color: var(--ft-rose-deep); }
.ft-field-group { margin-bottom: 1.4rem; width: 100%; max-width: 560px; }

/* ── Counter & Slots (Step 3) ── */
.ft-counter {
  font-family: var(--ft-font-heading);
  font-size: 1rem;
  color: var(--ft-rose-deep);
  margin-bottom: 0.8rem;
  font-weight: 600;
}
.ft-slots {
  display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
  margin-bottom: 1.5rem;
}
.ft-slot {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  border: 1.5px dashed var(--ft-rose);
  font-family: var(--ft-font-heading);
  font-size: 0.72rem;
  color: var(--ft-rose-muted);
  transition: all 0.3s;
  min-width: 90px;
  justify-content: center;
}
.ft-slot.ft-filled {
  border-style: solid;
  border-color: var(--ft-rose-deep);
  background: var(--ft-rose-deep);
  color: var(--ft-white);
}
.ft-slot-icon { font-size: 0.85rem; }

/* ── Card Fan ── */
.ft-fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 30px 0 10px;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 750px;
  flex-wrap: nowrap;
}
.ft-fan-card {
  width: 72px; height: 112px;
  min-width: 72px;
  background: linear-gradient(160deg, var(--ft-teal-deep), var(--ft-purple));
  border: 2px solid var(--ft-teal);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.3s, border-color 0.3s, margin 0.3s;
  transform-origin: bottom center;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.15);
  user-select: none;
  position: relative;
  margin-left: -18px;
  flex-shrink: 0;
}
.ft-fan-card:first-child { margin-left: 0; }
.ft-fan-card::after {
  content: '♡';
  font-size: 1.8rem;
  color: rgba(255,255,255,0.15);
  pointer-events: none;
}
.ft-fan-card:hover:not(.ft-selected):not(.ft-disabled) {
  transform: translateY(-18px) scale(1.08);
  box-shadow: var(--ft-shadow-glow);
  border-color: var(--ft-rose);
  z-index: 10;
}
.ft-fan-card.ft-selected {
  transform: translateY(-22px) scale(1.08);
  border-color: var(--ft-rose-deep);
  box-shadow: 0 0 20px rgba(181,88,90,0.4);
  z-index: 10;
}
.ft-fan-card.ft-selected::after {
  content: '♥';
  color: var(--ft-rose-deep);
  opacity: 1;
  font-size: 1.8rem;
}
.ft-fan-card.ft-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Shuffle Animation (Step 4) ── */
.ft-step--shuffle { min-height: 280px; justify-content: center; }
.ft-hearts-anim { position: relative; width: 120px; height: 80px; margin-bottom: 1.5rem; }
.ft-heart {
  position: absolute;
  font-size: 3rem;
  color: var(--ft-rose-deep);
  top: 50%; transform: translateY(-50%);
}
.ft-heart--left { left: 10px; animation: ftBeatL 1.4s ease-in-out infinite; }
.ft-heart--right { right: 10px; animation: ftBeatR 1.4s ease-in-out infinite 0.2s; }
@keyframes ftBeatL {
  0%, 100% { transform: translateY(-50%) scale(1) rotate(-8deg); }
  50% { transform: translateY(-50%) scale(1.2) rotate(0deg); }
}
@keyframes ftBeatR {
  0%, 100% { transform: translateY(-50%) scale(1) rotate(8deg); }
  50% { transform: translateY(-50%) scale(1.2) rotate(0deg); }
}
.ft-shuffle-msg {
  font-family: var(--ft-font-body);
  font-size: 1.1rem;
  color: var(--ft-teal-deep);
  font-style: italic;
  min-height: 1.6em;
}
.ft-loading-dots { display: flex; gap: 6px; margin-top: 1rem; }
.ft-loading-dots span {
  width: 8px; height: 8px;
  background: var(--ft-rose);
  border-radius: 50%;
  animation: ftDotBounce 1.4s ease-in-out infinite;
}
.ft-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.ft-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ftDotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* ── Results Grid ── */
.ft-results-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
}
.ft-rcard {
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--ft-rose-pale);
  border-radius: var(--ft-radius-sm);
  padding: 1rem 0.75rem;
  backdrop-filter: blur(6px);
  text-align: center;
  perspective: 800px;
  opacity: 0;
  animation: ftCardReveal 0.8s ease forwards;
}
.ft-rcard:nth-child(1) { animation-delay: 0.1s; }
.ft-rcard:nth-child(2) { animation-delay: 0.55s; }
.ft-rcard:nth-child(3) { animation-delay: 1.0s; }
.ft-rcard:nth-child(4) { animation-delay: 1.45s; }
.ft-rcard:nth-child(5) { animation-delay: 1.9s; }

@keyframes ftCardReveal {
  0% { opacity: 0; transform: rotateY(90deg) scale(0.9); }
  60% { opacity: 1; transform: rotateY(-5deg) scale(1.02); }
  100% { opacity: 1; transform: rotateY(0) scale(1); }
}

.ft-rcard-pos {
  font-family: var(--ft-font-heading);
  font-size: 0.7rem;
  color: var(--ft-rose-deep);
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.ft-rcard-img-wrap {
  width: 100%;
  aspect-ratio: 2/3.4;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid var(--ft-rose-pale);
  margin-bottom: 0.6rem;
  position: relative;
  background: var(--ft-cream);
}
.ft-rcard-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ft-rcard-img-wrap.ft-reversed img { transform: rotate(180deg); }
.ft-rcard-name {
  font-family: var(--ft-font-heading);
  font-size: 0.82rem;
  color: var(--ft-teal-deep);
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.ft-rcard-orient {
  font-size: 0.72rem;
  color: var(--ft-rose-muted);
  font-style: italic;
  margin-bottom: 0.3rem;
}
.ft-rcard-kw {
  font-size: 0.75rem;
  color: var(--ft-teal);
  margin-bottom: 0.5rem;
  font-style: italic;
}
.ft-rcard-interp {
  font-size: 0.88rem;
  color: var(--ft-text);
  line-height: 1.55;
  text-align: left;
}

/* ── Meter ── */
.ft-meter {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.ft-meter-hearts { display: flex; gap: 0.25rem; }
.ft-meter-heart { font-size: 1.5rem; }
.ft-meter-heart--filled { color: var(--ft-rose-deep); }
.ft-meter-heart--empty { color: var(--ft-rose-pale); }
.ft-meter-score {
  font-family: var(--ft-font-heading);
  font-size: 1rem;
  color: var(--ft-teal-deep);
  font-weight: 700;
  margin-left: 0.5rem;
}

/* ── Verdict ── */
.ft-verdict { margin-bottom: 1.5rem; }
.ft-verdict-badge {
  display: inline-block;
  font-family: var(--ft-font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 1.5rem;
  border-radius: 50px;
  color: var(--ft-white);
  letter-spacing: 0.03em;
}
.ft-verdict--strong { background: var(--ft-green); }
.ft-verdict--warm { background: var(--ft-green-light); }
.ft-verdict--mixed { background: var(--ft-amber); }
.ft-verdict--guarded { background: var(--ft-rose-muted); }
.ft-verdict--challenging { background: var(--ft-rose-deep); }

/* ── Summary & Guidance ── */
.ft-summary, .ft-guidance {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--ft-rose-pale);
  border-radius: var(--ft-radius-sm);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(6px);
  text-align: left;
  width: 100%;
}
.ft-summary h3, .ft-guidance h3 {
  font-family: var(--ft-font-heading);
  font-size: 1.1rem;
  color: var(--ft-teal-deep);
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.ft-summary p, .ft-guidance p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
.ft-guidance {
  border-color: var(--ft-rose);
  background: rgba(212,165,165,0.08);
}

/* ── CTA Box ── */
.ft-cta-box {
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.5);
  border-radius: var(--ft-radius-sm);
  border: 1px solid var(--ft-rose-pale);
}
.ft-cta-text {
  font-family: var(--ft-font-heading);
  font-size: 1rem;
  color: var(--ft-teal-deep);
  margin-bottom: 1rem;
}

/* ── SEO Content ── */
.ft-seo-content {
  text-align: left;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ft-rose-pale);
}
.ft-seo-content h3 {
  font-family: var(--ft-font-heading);
  font-size: 1.05rem;
  color: var(--ft-teal-deep);
  margin: 1.5rem 0 0.6rem;
  font-weight: 700;
}
.ft-seo-content p, .ft-seo-content li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ft-text);
}
.ft-seo-content ul { padding-left: 1.2rem; margin-bottom: 0.8rem; }

/* ═══════ RESPONSIVE ═══════ */

@media (max-width: 900px) {
  .ft-results-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .feelings-tarot { padding: 1.5rem 1rem; margin: 1rem; }
  .ft-results-grid { grid-template-columns: repeat(2, 1fr); }
  .ft-positions-preview { gap: 0.5rem; }
  .ft-pos-card { width: 100px; padding: 0.7rem 0.5rem; }
  .ft-pos-label { font-size: 0.65rem; }
  .ft-fan-card { width: 56px; height: 88px; min-width: 56px; margin-left: -14px; }
  .ft-fan-card::after { font-size: 1.3rem; }
  .ft-slot { min-width: 72px; font-size: 0.62rem; padding: 0.3rem 0.5rem; }
  .ft-slot-icon { font-size: 0.7rem; }
}
@media (max-width: 480px) {
  .ft-results-grid { grid-template-columns: 1fr; max-width: 280px; margin-left: auto; margin-right: auto; }
  .ft-positions-preview { flex-direction: column; align-items: center; }
  .ft-pos-card { width: 85%; }
  .ft-chip { font-size: 0.85rem; padding: 0.4rem 1rem; }
}
