/* Mystical Logic CSS */
.tarot-card-container {
    perspective: 1000px;
    cursor: pointer;
}

.tarot-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.tarot-card-container.is-flipped .tarot-card-inner {
    transform: rotateY(180deg);
}

.tarot-card-front, .tarot-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.tarot-card-back {
    transform: rotateY(180deg);
    background-color: #12082B;
    border: 1px solid #D6B878;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.tarot-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-card-glow {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.8);
    transition: all 0.5s ease-in-out;
}
