/**
 * Crystal Ball Fortune Teller - Styles
 * @package Crystal_Ball
 */

.crystal-ball-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, #2c3e50, #1a1a2e);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    margin: 30px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: visible;
}

.crystal-ball {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(173, 216, 230, 0.3) 40%, rgba(0, 0, 139, 0.1) 60%);
    box-shadow:
        inset 0 0 50px rgba(255, 255, 255, 0.6),
        inset 0 0 100px rgba(176, 224, 230, 0.4),
        0 0 30px rgba(0, 0, 255, 0.3);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.crystal-ball-stand {
    width: 120px;
    height: 20px;
    background: linear-gradient(to right, #d4af37, #f9d423, #d4af37);
    border-radius: 50%;
    margin-top: -10px;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.crystal-ball-base {
    width: 180px;
    height: 30px;
    background: linear-gradient(to right, #5a3921, #8b4513, #5a3921);
    border-radius: 10px;
    margin-top: -5px;
    position: relative;
    z-index: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.fortune-text {
    position: absolute;
    text-align: center;
    color: #fff;
    font-weight: bold;
    text-shadow:
        0 0 10px rgba(0, 0, 255, 0.8),
        0 0 20px rgba(138, 43, 226, 0.6);
    opacity: 0;
    max-width: 70%;
    padding: 10px;
    z-index: 10;
    font-size: 18px;
    transform: scale(0.6);
    filter: blur(8px);
    transition: opacity 1.6s ease, transform 1.6s ease, filter 1.6s ease;
}

.fortune-text.visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.get-fortune-btn {
    background: linear-gradient(to right, #6a3093, #a044ff);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.get-fortune-btn:hover,
.get-fortune-btn:focus {
    background: linear-gradient(to right, #a044ff, #6a3093);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
    outline: none;
}

.get-fortune-btn:active {
    transform: translateY(1px);
}

.shimmer {
    position: absolute;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 50%;
    top: 15%;
    left: 15%;
    opacity: 0.3;
    animation: cbf-shimmer 5s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes cbf-shimmer {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(20px, 10px) rotate(5deg); }
    50%      { transform: translate(-10px, 15px) rotate(-5deg); }
    75%      { transform: translate(5px, -10px) rotate(3deg); }
}

.small-glows {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.small-glow {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    filter: blur(5px);
    animation: cbf-glow-pulse 3s infinite alternate;
}

@keyframes cbf-glow-pulse {
    0%   { opacity: 0.2; transform: scale(0.8); }
    100% { opacity: 0.7; transform: scale(1.2); }
}

.mystic-smoke {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle at center,
        rgba(200, 220, 255, 0.35) 0%,
        rgba(150, 180, 255, 0.25) 30%,
        rgba(100, 120, 255, 0.15) 50%,
        transparent 70%);
    filter: blur(25px);
    opacity: 0.6;
    animation: cbf-smoke-swirl 12s infinite linear;
    pointer-events: none;
    z-index: 0;
}

@keyframes cbf-smoke-swirl {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

@media (max-width: 600px) {
    .crystal-ball {
        width: 250px;
        height: 250px;
    }
    .crystal-ball-container {
        padding: 15px;
    }
    .fortune-text {
        font-size: 16px;
    }
}
