/* ============================================================
   WELLNESS TAROT READING — Tarot With Lavanya Theme
   Body · Mind · Spirit — Holistic Wellness Check-In
   ============================================================ */

:root {
    --wtr-teal: #4b7878;
    --wtr-teal-deep: #2f5252;
    --wtr-teal-light: #6a9e9e;
    --wtr-gold: #F9C74F;
    --wtr-gold-dark: #e0a800;
    --wtr-gold-glow: rgba(249, 199, 79, 0.40);
    --wtr-cream: #fcfcf4;
    --wtr-cream-warm: #f5f0e6;
    --wtr-purple: #3a1d6e;
    --wtr-purple-soft: #5a3d8a;
    --wtr-rose: #d4a5a5;
    --wtr-rose-muted: #b8918f;
    --wtr-green: #5a8a6a;
    --wtr-green-light: #7ab88d;
    --wtr-text: #2a2a2a;
    --wtr-text-muted: #6b6b6b;
    --wtr-glass: rgba(75, 120, 120, 0.06);
    --wtr-glass-border: rgba(75, 120, 120, 0.18);
    --wtr-radius: 16px;
    --wtr-radius-sm: 10px;
    --wtr-font-display: 'Cinzel Decorative', 'Cinzel', 'Playfair Display', Georgia, serif;
    --wtr-font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
    --wtr-font-body: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
    --wtr-transition: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@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&display=swap');

/* --- Container --- */
.wtr-container {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    background: var(--wtr-cream);
    background-image:
        radial-gradient(ellipse at 15% 0%, rgba(75, 120, 120, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 100%, rgba(90, 138, 106, 0.08) 0%, transparent 50%);
    color: var(--wtr-text);
    font-family: var(--wtr-font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow: hidden;
    min-height: 520px;
    border-radius: var(--wtr-radius);
    border: 1px solid rgba(75, 120, 120, 0.12);
}

/* --- Ambient Particles --- */
.wtr-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.wtr-particles::before,
.wtr-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: wtr-float 9s ease-in-out infinite;
}
.wtr-particles::before {
    width: 4px; height: 4px;
    background: var(--wtr-gold);
    opacity: 0.22;
    top: 12%; left: 8%;
    box-shadow:
        140px 50px 0 rgba(249,199,79,0.10),
        320px -10px 0 rgba(90,138,106,0.12),
        520px 70px 0 rgba(249,199,79,0.08),
        90px 320px 0 rgba(90,138,106,0.10),
        430px 370px 0 rgba(249,199,79,0.14),
        650px 250px 0 rgba(75,120,120,0.10);
}
.wtr-particles::after {
    width: 3px; height: 3px;
    background: var(--wtr-rose);
    opacity: 0.18;
    top: 55%; right: 12%;
    animation-delay: -4.5s;
    box-shadow:
        -110px -50px 0 rgba(212,165,165,0.10),
        -270px 40px 0 rgba(212,165,165,0.13),
        -480px -30px 0 rgba(90,138,106,0.08);
}
@keyframes wtr-float {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-16px) translateX(6px); }
    66% { transform: translateY(10px) translateX(-5px); }
}

/* --- Steps --- */
.wtr-step {
    position: relative;
    z-index: 1;
    display: none;
    text-align: center;
    animation: wtr-fadeUp 0.6s ease both;
}
.wtr-step.wtr-active {
    display: block;
}
@keyframes wtr-fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Typography --- */
.wtr-title {
    font-family: var(--wtr-font-display);
    font-size: clamp(1.5rem, 4.5vw, 2.3rem);
    font-weight: 700;
    color: var(--wtr-teal-deep);
    margin: 0 0 12px;
    letter-spacing: 0.04em;
}
.wtr-subtitle {
    font-family: var(--wtr-font-body);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--wtr-text-muted);
    margin: 0 0 28px;
    font-style: italic;
}
.wtr-glyph {
    font-size: 2.8rem;
    color: var(--wtr-teal);
    opacity: 0.55;
    margin-bottom: 14px;
    animation: wtr-glyph-pulse 3.5s ease-in-out infinite;
}
@keyframes wtr-glyph-pulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.06); }
}
.wtr-intro-desc {
    max-width: 520px;
    margin: 0 auto 36px;
    color: var(--wtr-text-muted);
    font-size: 1rem;
}

/* --- Intro Pillars (Body / Mind / Spirit) --- */
.wtr-intro-pillars {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 0 auto 32px;
    max-width: 560px;
    flex-wrap: wrap;
}
.wtr-pillar {
    flex: 1;
    min-width: 140px;
    background: rgba(75, 120, 120, 0.05);
    border: 1px solid var(--wtr-glass-border);
    border-radius: var(--wtr-radius-sm);
    padding: 20px 14px;
    text-align: center;
}
.wtr-pillar-icon {
    display: block;
    font-size: 1.8rem;
    color: var(--wtr-teal);
    margin-bottom: 6px;
}
.wtr-pillar-label {
    display: block;
    font-family: var(--wtr-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--wtr-teal-deep);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}
.wtr-pillar-desc {
    display: block;
    font-size: 0.82rem;
    color: var(--wtr-text-muted);
    font-style: italic;
}

/* --- Buttons --- */
.wtr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border: none;
    border-radius: 50px;
    font-family: var(--wtr-font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--wtr-transition);
    text-decoration: none;
    line-height: 1.2;
}
.wtr-btn--gold {
    background: linear-gradient(135deg, var(--wtr-gold), var(--wtr-gold-dark));
    color: #2a1a00;
    box-shadow: 0 4px 20px rgba(249, 199, 79, 0.30);
}
.wtr-btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(249, 199, 79, 0.42);
}
.wtr-btn--gold:active { transform: translateY(0); }
.wtr-btn--outline {
    background: transparent;
    color: var(--wtr-teal);
    border: 1.5px solid var(--wtr-teal);
}
.wtr-btn--outline:hover {
    background: rgba(75, 120, 120, 0.08);
}
.wtr-btn--disabled, .wtr-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Wellness Focus Chips --- */
.wtr-wellness-focus {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 540px;
    margin: 0 auto 24px;
}
.wtr-chip {
    padding: 9px 20px;
    border: 1.5px solid var(--wtr-glass-border);
    border-radius: 50px;
    background: rgba(255,255,255,0.6);
    color: var(--wtr-teal-deep);
    font-family: var(--wtr-font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.wtr-chip:hover {
    border-color: var(--wtr-teal);
    background: rgba(75, 120, 120, 0.08);
}
.wtr-chip.wtr-chip--active {
    background: var(--wtr-teal);
    color: var(--wtr-cream);
    border-color: var(--wtr-teal);
}

/* --- Input --- */
.wtr-input-wrap {
    max-width: 480px;
    margin: 0 auto 28px;
}
.wtr-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.7);
    border: 1.5px solid var(--wtr-glass-border);
    border-radius: var(--wtr-radius-sm);
    color: var(--wtr-text);
    font-family: var(--wtr-font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}
.wtr-input::placeholder { color: var(--wtr-text-muted); opacity: 0.65; }
.wtr-input:focus {
    border-color: var(--wtr-gold);
    box-shadow: 0 0 0 3px rgba(249, 199, 79, 0.16);
}

/* ============================================================
   STEP 3: CARD SELECTION
   ============================================================ */
.wtr-select-labels {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 8px;
}
.wtr-slot-label {
    font-family: var(--wtr-font-heading);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wtr-text-muted);
    transition: color 0.3s;
}
.wtr-slot-label.wtr-slot-filled {
    color: var(--wtr-teal);
    font-weight: 700;
}
.wtr-select-count {
    font-family: var(--wtr-font-heading);
    font-size: 0.9rem;
    color: var(--wtr-text-muted);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}
.wtr-select-count span {
    color: var(--wtr-teal);
    font-weight: 700;
    font-size: 1.05rem;
}
.wtr-card-fan {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 0 auto 32px;
    padding: 16px 0 36px;
    position: relative;
    min-height: 250px;
}
.wtr-pick-card {
    width: 96px;
    height: 150px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--wtr-teal-deep), var(--wtr-purple) 70%, var(--wtr-teal-deep));
    border: 2px solid rgba(249, 199, 79, 0.20);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.wtr-pick-card::before {
    content: '✦';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--wtr-gold);
    opacity: 0.32;
    transition: opacity 0.3s;
}
.wtr-pick-card::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(249, 199, 79, 0.10);
    border-radius: 7px;
    pointer-events: none;
}
.wtr-pick-card:hover {
    transform: translateY(-16px) scale(1.05) !important;
    box-shadow: 0 10px 32px rgba(249, 199, 79, 0.28), 0 0 40px rgba(75, 120, 120, 0.10);
    border-color: var(--wtr-gold);
    z-index: 10;
}
.wtr-pick-card:hover::before { opacity: 0.65; }
.wtr-pick-card.wtr-selected {
    border-color: var(--wtr-gold);
    box-shadow: 0 0 22px rgba(249, 199, 79, 0.32), inset 0 0 16px rgba(249, 199, 79, 0.06);
    transform: translateY(-22px) scale(1.07) !important;
    z-index: 11;
}
.wtr-pick-card.wtr-selected::before {
    content: '★';
    opacity: 0.85;
    color: var(--wtr-gold);
}
.wtr-pick-card.wtr-pick-disabled {
    opacity: 0.30;
    cursor: default;
    pointer-events: none;
}

/* ============================================================
   STEP 4: SHUFFLE — Orbiting Rings Animation
   ============================================================ */
.wtr-step[data-step-id="shuffle"] { padding-top: 50px; }
.wtr-shuffle-anim { margin-bottom: 28px; }
.wtr-shuffle-orb {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
}
.wtr-orb-ring {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 50%;
}
.wtr-ring-1 {
    border-top-color: var(--wtr-teal);
    border-bottom-color: var(--wtr-teal);
    opacity: 0.5;
    animation: wtr-orbit 2.4s linear infinite;
}
.wtr-ring-2 {
    inset: 14px;
    border-left-color: var(--wtr-gold);
    border-right-color: var(--wtr-gold);
    opacity: 0.45;
    animation: wtr-orbit 1.8s linear infinite reverse;
}
.wtr-ring-3 {
    inset: 28px;
    border-top-color: var(--wtr-rose);
    border-bottom-color: var(--wtr-rose);
    opacity: 0.4;
    animation: wtr-orbit 3s linear infinite;
}
@keyframes wtr-orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.wtr-orb-core {
    position: absolute;
    inset: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--wtr-teal);
    animation: wtr-core-pulse 2s ease-in-out infinite;
}
@keyframes wtr-core-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.1); }
}
.wtr-shuffle-msg {
    font-family: var(--wtr-font-heading);
    font-size: 1.05rem;
    color: var(--wtr-teal-deep);
    letter-spacing: 0.06em;
    animation: wtr-pulse-text 2s ease-in-out infinite;
}
@keyframes wtr-pulse-text {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}
.wtr-shuffle-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
}
.wtr-shuffle-dots span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--wtr-teal);
    opacity: 0.3;
    animation: wtr-dot-bounce 1.4s ease-in-out infinite;
}
.wtr-shuffle-dots span:nth-child(2) { animation-delay: 0.2s; }
.wtr-shuffle-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes wtr-dot-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
    40% { transform: scale(1.2); opacity: 1; }
}

/* ============================================================
   STEP 5: RESULTS
   ============================================================ */
.wtr-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 32px 0;
}
.wtr-result-card { perspective: 800px; }
.wtr-result-card-inner {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotateY(180deg);
}
.wtr-result-card-inner.wtr-flipped { transform: rotateY(0); }
.wtr-result-front, .wtr-result-back {
    backface-visibility: hidden;
    border-radius: var(--wtr-radius);
}
.wtr-result-back {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--wtr-teal-deep), var(--wtr-purple));
    border: 2px solid rgba(249, 199, 79, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--wtr-gold);
    opacity: 0.35;
}
.wtr-result-front {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid var(--wtr-glass-border);
    padding: 22px 14px 26px;
    text-align: center;
    box-shadow: 0 2px 18px rgba(75, 120, 120, 0.07);
}
.wtr-position-label {
    font-family: var(--wtr-font-heading);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--wtr-teal);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.wtr-position-label::before, .wtr-position-label::after {
    content: '';
    width: 18px;
    height: 1px;
    background: var(--wtr-teal);
    opacity: 0.30;
}
.wtr-card-img-wrap {
    width: 100%;
    max-width: 155px;
    margin: 0 auto 14px;
    aspect-ratio: 2 / 3.4;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--wtr-teal-deep), var(--wtr-purple));
    border: 1px solid rgba(249, 199, 79, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
}
.wtr-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}
.wtr-card-img-wrap.wtr-reversed { transform: rotate(180deg); }
.wtr-card-numeral {
    font-family: var(--wtr-font-display);
    font-size: 2.5rem;
    color: var(--wtr-gold);
    opacity: 0.50;
}
.wtr-card-name {
    font-family: var(--wtr-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--wtr-teal-deep);
    margin-bottom: 3px;
}
.wtr-card-orientation {
    font-family: var(--wtr-font-body);
    font-size: 0.82rem;
    color: var(--wtr-rose-muted);
    font-style: italic;
    margin-bottom: 10px;
}
.wtr-card-keywords {
    font-size: 0.78rem;
    color: var(--wtr-text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}
.wtr-card-meaning {
    font-size: 0.92rem;
    color: var(--wtr-text);
    line-height: 1.6;
    text-align: left;
}
.wtr-card-meaning strong {
    color: var(--wtr-teal);
    font-family: var(--wtr-font-heading);
    font-weight: 600;
}

/* --- Wellness Score --- */
.wtr-wellness-score {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 16px 0 28px;
    flex-wrap: wrap;
}
.wtr-score-item {
    text-align: center;
    min-width: 100px;
}
.wtr-score-label {
    font-family: var(--wtr-font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wtr-text-muted);
    margin-bottom: 6px;
    display: block;
}
.wtr-score-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(75, 120, 120, 0.10);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}
.wtr-score-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.2s ease;
}
.wtr-score-bar-fill.wtr-fill-body { background: var(--wtr-teal); }
.wtr-score-bar-fill.wtr-fill-mind { background: var(--wtr-purple-soft); }
.wtr-score-bar-fill.wtr-fill-spirit { background: var(--wtr-gold-dark); }
.wtr-score-value {
    font-family: var(--wtr-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--wtr-teal-deep);
}

/* --- Summary --- */
.wtr-summary {
    background: rgba(75, 120, 120, 0.05);
    border: 1px solid var(--wtr-glass-border);
    border-radius: var(--wtr-radius);
    padding: 26px 22px;
    margin: 8px 0 28px;
    text-align: left;
}
.wtr-summary h3 {
    font-family: var(--wtr-font-heading);
    color: var(--wtr-teal-deep);
    font-size: 1.1rem;
    margin: 0 0 12px;
    text-align: center;
}
.wtr-summary p {
    margin: 0 0 10px;
    color: var(--wtr-text);
    font-size: 0.98rem;
    line-height: 1.7;
}
.wtr-summary p:last-child { margin-bottom: 0; }

/* --- Self-Care Recommendations --- */
.wtr-selfcare {
    background: rgba(90, 138, 106, 0.06);
    border: 1px solid rgba(90, 138, 106, 0.18);
    border-radius: var(--wtr-radius);
    padding: 24px 22px;
    margin: 0 0 32px;
    text-align: left;
}
.wtr-selfcare h3 {
    font-family: var(--wtr-font-heading);
    color: var(--wtr-green);
    font-size: 1.05rem;
    margin: 0 0 12px;
    text-align: center;
}
.wtr-selfcare-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}
.wtr-selfcare-item:last-child { margin-bottom: 0; }
.wtr-selfcare-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.wtr-selfcare-text {
    font-size: 0.95rem;
    color: var(--wtr-text);
    line-height: 1.6;
}

/* --- CTA Block --- */
.wtr-cta-block { text-align: center; margin: 28px 0; }
.wtr-cta-text {
    font-family: var(--wtr-font-heading);
    font-size: 0.95rem;
    color: var(--wtr-text-muted);
    margin-bottom: 14px;
}

/* --- SEO Content --- */
.wtr-seo-content {
    margin-top: 44px;
    text-align: left;
    border-top: 1px solid var(--wtr-glass-border);
    padding-top: 28px;
}
.wtr-seo-content h3 {
    font-family: var(--wtr-font-heading);
    color: var(--wtr-teal-deep);
    font-size: 1.05rem;
    margin: 24px 0 8px;
}
.wtr-seo-content h3:first-child { margin-top: 0; }
.wtr-seo-content p {
    color: var(--wtr-text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0 0 10px;
}

/* ============================================================
   RESPONSIVENESS
   ============================================================ */
@media (max-width: 768px) {
    .wtr-container { padding: 28px 16px 44px; }
    .wtr-results-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }
    .wtr-pick-card { width: 70px; height: 108px; }
    .wtr-pick-card::before { font-size: 1.3rem; }
    .wtr-card-fan { min-height: 170px; padding: 10px 0 28px; }
    .wtr-intro-pillars { gap: 12px; }
    .wtr-pillar { min-width: 100px; padding: 14px 10px; }
    .wtr-select-labels { gap: 16px; }
    .wtr-wellness-score { gap: 14px; }
}
@media (max-width: 480px) {
    .wtr-pick-card { width: 56px; height: 86px; border-radius: 7px; }
    .wtr-card-fan { min-height: 140px; }
    .wtr-btn { padding: 12px 26px; font-size: 0.88rem; }
    .wtr-chip { padding: 7px 14px; font-size: 0.85rem; }
}
