/**
 * Tarot Three-Card Spread CSS
 * 
 * Styles for the Past-Present-Future tarot card reading spread.
 * 
 * @since 1.0.0
 */

.tarot-spread-container {
    font-family: 'Arial', sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background-color: #f8f4ee;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tarot-spread-header {
    margin-bottom: 30px;
}

.tarot-spread-title {
    font-size: 24px;
    color: #3e2a5a;
    margin-bottom: 10px;
}

.tarot-spread-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tarot-spread-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .tarot-spread-cards {
        flex-direction: column;
        align-items: center;
    }
}

.tarot-card-wrapper {
    position: relative;
    width: 200px;
    height: 340px;
    perspective: 1000px;
}

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

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

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

.tarot-card-back {
    background-color: #F8F4E3;
    background-image: url('../card-back.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #D3D0C2;
}

.tarot-card-front {
    background-color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
}

.tarot-card-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    max-height: 80%;
}

.tarot-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tarot-card-name {
    padding: 10px;
    background-color: #3e2a5a;
    color: white;
    font-weight: bold;
    text-align: center;
}

.tarot-card-label {
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    text-align: center;
    font-weight: bold;
    color: #3e2a5a;
    font-size: 18px;
}

.tarot-spread-meaning {
    display: none;
    margin-top: 40px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.tarot-spread-meaning.visible {
    display: block;
}

.tarot-spread-meaning-title {
    font-size: 20px;
    color: #3e2a5a;
    margin-bottom: 15px;
    text-align: center;
}

.tarot-spread-meaning-card {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tarot-spread-meaning-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tarot-spread-meaning-card h3 {
    font-size: 18px;
    color: #3e2a5a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.tarot-spread-meaning-card h3 span {
    font-weight: normal;
    font-size: 16px;
    color: #666;
    margin-left: 10px;
}

.tarot-spread-meaning-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.tarot-draw-button {
    background-color: #6a4c93;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 20px 0;
}

.tarot-draw-button:hover {
    background-color: #593d80;
}

.tarot-reset-button {
    background-color: transparent;
    color: #6a4c93;
    border: 1px solid #6a4c93;
    border-radius: 5px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.tarot-reset-button:hover {
    background-color: #f0e6ff;
}

.tarot-button-container {
    margin-top: 30px;
}

.tarot-card-reversed {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 87, 87, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}