/* ── Fortune Teller Plugin Styles ── */

.ft-wrap {
    text-align: center;
    padding: 40px 20px;
    font-family: Georgia, 'Times New Roman', serif;
    max-width: 480px;
    margin: 0 auto;
}

.ft-title {
    font-size: 1.8em;
    color: #3b1f6e;
    margin-bottom: 30px;
    letter-spacing: .05em;
}

/* ── Crystal Ball ── */
.ft-crystal-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
    cursor: pointer;
}

.ft-crystal {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 36%, #d8b4fe, #7c3aed 55%, #3b0764 90%);
    box-shadow:
        0 0 30px 8px rgba(124, 58, 237, .45),
        inset 0 0 40px rgba(255, 255, 255, .15);
    position: relative;
    overflow: hidden;
    transition: box-shadow .3s ease;
}

.ft-crystal:hover,
.ft-crystal.ft-glow {
    box-shadow:
        0 0 60px 20px rgba(167, 100, 255, .7),
        inset 0 0 60px rgba(255, 255, 255, .25);
}

/* Shimmer highlight */
.ft-crystal::after {
    content: '';
    position: absolute;
    top: 12%;
    left: 16%;
    width: 36%;
    height: 28%;
    background: radial-gradient(ellipse, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 100%);
    border-radius: 50%;
    pointer-events: none;
}

/* Floating stars inside */
.ft-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, #fff 1px, transparent 1px),
        radial-gradient(circle, #e9d5ff 1px, transparent 1px),
        radial-gradient(circle, #fff 1.5px, transparent 1.5px);
    background-size: 40px 40px, 60px 60px, 80px 80px;
    background-position: 10px 10px, 25px 20px, 5px 50px;
    opacity: .5;
    animation: ft-rotate 12s linear infinite;
}

/* Eye of the oracle */
.ft-eye {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scaleY(0);
    width: 56px; height: 34px;
    background: radial-gradient(ellipse at center, #fff 20%, #c4b5fd 55%, transparent 70%);
    border-radius: 50%;
    transition: transform .5s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 0 12px rgba(255,255,255,.6);
}

.ft-crystal.ft-glow .ft-eye {
    transform: translate(-50%, -50%) scaleY(1);
}

/* Pupil */
.ft-eye::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 14px; height: 14px;
    background: #1e1b4b;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(167,100,255,.8);
}

.ft-crystal-base {
    width: 120px;
    height: 18px;
    background: linear-gradient(to bottom, #6d28d9, #3b0764);
    margin: -4px auto 0;
    border-radius: 0 0 60px 60px;
    box-shadow: 0 6px 20px rgba(59,7,100,.5);
}

/* ── Button ── */
.ft-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1em;
    font-family: Georgia, serif;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(124,58,237,.45);
    transition: transform .2s, box-shadow .2s;
}

.ft-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124,58,237,.6);
}

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

.ft-btn:disabled {
    opacity: .6;
    cursor: default;
    transform: none;
}

/* ── Result ── */
.ft-result {
    margin-top: 28px;
    min-height: 80px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s ease, transform .6s ease;
}

.ft-result.ft-visible {
    opacity: 1;
    transform: translateY(0);
}

.ft-text {
    font-size: 1.2em;
    color: #1e1b4b;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 8px;
    position: relative;
}

.ft-text::before { content: '\201C'; margin-right: 2px; color: #7c3aed; font-size: 1.5em; vertical-align: -0.3em; }
.ft-text::after  { content: '\201D'; margin-left:  2px; color: #7c3aed; font-size: 1.5em; vertical-align: -0.3em; }

.ft-category {
    display: inline-block;
    background: #7c3aed;
    color: #fff;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: .8em;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-family: sans-serif;
}

/* ── Loader dots ── */
.ft-loading .ft-text::before,
.ft-loading .ft-text::after { content: ''; }

.ft-dots span {
    display: inline-block;
    width: 8px; height: 8px;
    margin: 0 3px;
    background: #7c3aed;
    border-radius: 50%;
    animation: ft-bounce 1s infinite;
}
.ft-dots span:nth-child(2) { animation-delay: .15s; }
.ft-dots span:nth-child(3) { animation-delay: .3s; }

/* ── Keyframes ── */
@keyframes ft-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes ft-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40%           { transform: scale(1); }
}
