/* ================================================
   TAROT READING RESULT - Refined Mystical Design
   ================================================ */

/* === Design Tokens === */
.modalText {
    --result-bg: var(--bg-primary, #0a0a12);
    --result-surface: rgba(255, 255, 255, 0.02);
    --result-border: rgba(212, 175, 55, 0.15);
    --result-gold: var(--gold-primary, #d4af37);
    --result-gold-light: var(--gold-light, #f4e4bc);
    --result-gold-glow: rgba(212, 175, 55, 0.25);
    --result-text: var(--text-primary, #f5f5f5);
    --result-text-muted: var(--text-muted, rgba(255, 255, 255, 0.6));
    --result-accent: var(--gold-dark, #b8962e);
    --font-display: 'Cinzel', 'Times New Roman', serif;
    --font-body: 'Noto Serif KR', Georgia, serif;
}

/* === Result Header === */
.result-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--result-border);
    animation: fadeSlideDown 0.6s ease-out both;
}

.result-header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.deco-line {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--result-gold), transparent);
}

.deco-symbol {
    font-size: 1.2rem;
    color: var(--result-gold);
    animation: gentlePulse 3s ease-in-out infinite;
}

.result-main-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.25em;
    color: var(--result-gold-light);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
}

.result-sub-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--result-text-muted);
    margin: 0;
    letter-spacing: 0.1em;
}

/* === Meta Information === */
.result-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--result-surface);
    border: 1px solid var(--result-border);
    border-radius: 8px;
    animation: fadeSlideDown 0.6s ease-out 0.1s both;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.meta-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--result-gold);
}

.meta-value {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--result-text);
    text-align: center;
}

.meta-value.cards-value {
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 280px;
}

.meta-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--result-border), transparent);
}

/* === Result Content === */
.result-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* === Result Cards === */
.result-card {
    background: linear-gradient(135deg, rgba(20, 20, 28, 0.8) 0%, rgba(12, 12, 18, 0.9) 100%);
    border: 1px solid var(--result-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeSlideUp 0.5s ease-out both;
}

.result-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px var(--result-gold-glow);
}

.result-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    color: var(--result-gold);
    background: radial-gradient(circle, rgba(201, 162, 39, 0.12) 0%, transparent 70%);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 50%;
    flex-shrink: 0;
}

.result-titles {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.result-eng-title {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--result-gold);
    opacity: 0.8;
}

.result-kor-title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--result-text);
    margin: 0;
}

.result-card-body {
    padding: 1.25rem;
}

.result-card-body p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--result-text-muted);
    margin: 0;
    text-align: left;
    word-break: keep-all;
}

/* === Action Buttons === */
.result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--result-border);
    animation: fadeSlideUp 0.5s ease-out 0.5s both;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--result-border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: var(--result-text-muted);
}

.action-btn .btn-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.action-btn:hover .btn-icon {
    transform: scale(1.1);
}

.action-btn:active {
    transform: translateY(0);
}

/* Primary Button */
.action-btn.primary {
    background: linear-gradient(135deg, var(--result-gold) 0%, #a68523 100%);
    border-color: var(--result-gold);
    color: #0d0d14;
}

.action-btn.primary:hover {
    box-shadow: 0 4px 20px var(--result-gold-glow);
}

/* Secondary Button */
.action-btn.secondary {
    background: rgba(255, 255, 255, 0.03);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--result-text);
}

/* === Animations === */
@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentlePulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* === Responsive === */
@media screen and (max-width: 600px) {
    .result-meta {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .meta-divider {
        width: 60px;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--result-border), transparent);
    }

    .meta-value.cards-value {
        max-width: 100%;
    }

    .result-card-header {
        padding: 0.9rem 1rem;
    }

    .result-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .result-kor-title {
        font-size: 0.95rem;
    }

    .result-card-body {
        padding: 1rem;
    }

    .result-card-body p {
        font-size: 0.9rem;
        line-height: 1.75;
    }

    .result-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .action-btn {
        width: 100%;
        padding: 0.9rem 1.25rem;
    }
}

/* === Scrollbar for result content === */
.result-content::-webkit-scrollbar {
    width: 4px;
}

.result-content::-webkit-scrollbar-track {
    background: transparent;
}

.result-content::-webkit-scrollbar-thumb {
    background: rgba(201, 162, 39, 0.3);
    border-radius: 2px;
}

.result-content::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 162, 39, 0.5);
}
