/* ====================
   Tarot Service Styles - Premium Dark Gold Theme
   ==================== */

#tarotSelectionView,
#tarotResultArea {
    background-color: #1a1a2e;
    color: #d4af37;
    padding: 40px 20px;
    border-radius: 20px;
}

.tarot-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.tarot-header h3 {
    margin: 0;
    color: #d4af37;
    font-size: 2.2rem;
    font-family: 'Noto Serif KR', serif;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.tarot-header p {
    margin: 15px 0 0;
    color: #c5a059;
    font-size: 1.1rem;
}

.tarot-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 400px;
    margin-bottom: 40px;
}

.tarot-card-container {
    aspect-ratio: 1 / 1.7;
    perspective: 1200px;
    cursor: pointer;
}

.tarot-card-container.single-pick {
    width: 250px;
    max-width: 80%;
}

.tarot-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

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

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    border: 3px solid #d4af37;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
}

/* Card Back: Mystical Night Sky Pattern */
.card-back.mystical-back {
    background-image: url('images/card_tarotback.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back.mystical-back::after {
    display: none;
}

.card-front {
    background: #000;
    transform: rotateY(180deg);
}

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

.pick-instruction {
    margin-top: 30px;
    color: #d4af37;
    font-size: 1.2rem;
    font-family: 'Noto Serif KR', serif;
    animation: tarotPulse 2.5s infinite ease-in-out;
    text-align: center;
    font-weight: 500;
}

@keyframes tarotPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

/* Result Area - Premium Dark Theme */
.tarot-result-area {
    background: #161625;
    border-radius: 24px;
    padding: 40px;
    border: 2px solid #d4af37;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    margin: 40px auto;
    max-width: 800px;
    animation: tarotFadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: #fdfaf5;
    position: relative;
    overflow: hidden;
}

.tarot-result-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.result-card-display {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    align-items: center;
}

@media (max-width: 768px) {
    .result-card-display {
        flex-direction: column;
        text-align: center;
    }
}

.result-card-wrapper {
    width: 240px;
    aspect-ratio: 1 / 1.7;
    border-radius: 15px;
    border: 2px solid #d4af37;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    flex-shrink: 0;
}

.result-card-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-card-info {
    flex: 1;
}

.result-card-info h4 {
    font-size: 2.4rem;
    color: #d4af37;
    margin: 0 0 15px;
    font-family: 'Noto Serif KR', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.result-summary {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e4dccb;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 20px;
    margin-bottom: 20px;
    display: block;
}

.result-detail {
    line-height: 1.9;
    color: #e0e0e0;
    font-size: 1.15rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    font-family: 'Noto Sans KR', sans-serif;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.daily-status-msg {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    font-size: 1.3rem;
    color: #d4af37;
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    border-top: 1px dashed rgba(212, 175, 55, 0.3);
}

@keyframes tarotFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}