/**
 * Loading Prompts CSS
 * 
 * Styles for the mindfulness prompts shown with Stiky during AI loading operations.
 */

.loading-text {
    font-family: 'Cormorant Garamond', serif;
    color: #ffffff;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 1rem;
    max-width: 280px;
    min-height: 3.5rem;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    transition: opacity 0.5s ease-in-out;
    line-height: 1.4;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.cosmic-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        rgba(148, 0, 211, 0.6) 0%,
        rgba(128, 0, 128, 0.4) 30%,
        rgba(75, 0, 130, 0.2) 60%,
        rgba(0, 0, 0, 0) 80%
    );
    border-radius: 50%;
    opacity: 0.4;
    transition: opacity 1s ease-in-out;
    z-index: -2;
    filter: blur(15px);
    animation: cosmic-pulse 4s infinite ease-in-out;
}

@keyframes cosmic-pulse {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.05); opacity: 0.5; }
    100% { transform: scale(1); opacity: 0.4; }
}

.yoga-mat-background {
    position: absolute;
    width: 180%;
    height: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(
        to bottom,
        rgba(148, 0, 211, 0.4),
        rgba(128, 0, 128, 0.5),
        rgba(75, 0, 130, 0.4)
    );
    border-radius: 50% / 25%;
    opacity: 0.5;
    transition: opacity 1s ease-in-out, transform 0.5s ease-in-out;
    z-index: -1;
    box-shadow: 
        0 0 20px rgba(148, 0, 211, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Make loading container flex for proper alignment */
#stiky-loading-container {
    display: none; /* Initially hidden */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 300px;
    height: 300px;
}

/* Apply the pulse animation to elements with cosmic-pulse class */
.cosmic-pulse {
    animation: cosmic-pulse 3s infinite ease-in-out;
}

/* Stiky struggling animation */
@keyframes stiky-struggle {
    0% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(-5deg) translateY(-2px); }
    50% { transform: rotate(0deg) translateY(0); }
    75% { transform: rotate(5deg) translateY(-2px); }
    100% { transform: rotate(0deg) translateY(0); }
}

.stiky-struggle {
    animation: stiky-struggle 0.8s infinite ease-in-out;
    transform-origin: center center;
}

/* Show main figure with good visibility */
.stiky-figure-wrapper {
    margin-bottom: 20px;
    filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.4));
}

.stiky-figure-wrapper svg {
    display: block;
    margin: 0 auto;
}

/* Mobile device adjustments */
@media (max-width: 768px) {
    .loading-text {
        font-size: 1rem;
        max-width: 240px;
    }
    
    #stiky-loading-container {
        width: 250px;
        height: 250px;
    }
}