/* Chore Insight - Custom Styles */

/* Crystal Ball Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.crystal-ball {
    animation: float 4s ease-in-out infinite;
    box-shadow: 
        0 0 60px rgba(138, 43, 226, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Oracle Card Hover Effects */
.oracle-card {
    position: relative;
    overflow: hidden;
}

.oracle-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.oracle-card:hover::before {
    opacity: 1;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Mystical Text Glow */
.text-glow {
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3),
        0 0 30px rgba(255, 215, 0, 0.2);
}

/* Star Background Animation */
@keyframes twinkle {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.star {
    animation: twinkle 3s infinite;
    animation-delay: var(--delay);
}

/* Card Flip Animation */
.flip-card {
    perspective: 1000px;
    width: 100%;
    height: 100%;
}

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

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

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Tarot Card Style */
.tarot-card {
    width: 200px;
    height: 320px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a0033 0%, #2d3561 50%, #6b46c1 100%);
    border: 3px solid #ffd700;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tarot-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.5);
}

/* Fortune Wheel */
.fortune-wheel {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 50px rgba(107, 70, 193, 0.5),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: bottom right;
}

.spinning {
    animation: spin 3s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(calc(360deg * 5 + var(--rotation)));
    }
}

/* Mystical Button */
.mystical-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a0033;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.mystical-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.mystical-button:hover::before {
    width: 300px;
    height: 300px;
}

.mystical-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* Fortune Text Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fortune-text {
    animation: fadeInUp 1s ease-out;
}

/* Glowing Orb */
.glowing-orb {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #ffd700, #6b46c1);
    box-shadow: 
        0 0 50px rgba(255, 215, 0, 0.5),
        0 0 100px rgba(107, 70, 193, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 50px rgba(255, 215, 0, 0.5),
            0 0 100px rgba(107, 70, 193, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 
            0 0 70px rgba(255, 215, 0, 0.7),
            0 0 120px rgba(107, 70, 193, 0.5);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tarot-card {
        width: 150px;
        height: 240px;
    }
    
    .fortune-wheel {
        width: 250px;
        height: 250px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a0033;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #6b46c1, #2d3561);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ffd700, #6b46c1);
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffd700;
    margin: 0 3px;
    animation: loading-bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

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