/**
 * Animations Stylesheet
 * All animation keyframes and animated element styles
 */

/* Star Icon Breathing Animation */
@keyframes breathe {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

.star-breathe {
    animation: breathe 3s ease-in-out infinite;
}

/* AI Message Star Animations */
@keyframes starBreathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.75;
    }

    50% {
        transform: scale(1.18);
        opacity: 1;
    }
}

.star-generating {
    animation: starBreathe 1.6s ease-in-out infinite;
}

@keyframes starClick {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(0.7);
    }

    100% {
        transform: scale(1);
    }
}

.message-star-container {
    position: absolute;
    bottom: -28px;
    left: 0;
    width: 28px;
    height: 28px;
    pointer-events: auto;
}

.message-star-container>svg {
    width: 28px;
    height: 28px;
}

.star-tooltip {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 11px;
    background: transparent;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

html.dark .star-tooltip {
    color: rgba(255, 255, 255, 0.5);
}

html:not(.dark) .star-tooltip {
    color: rgba(0, 0, 0, 0.5);
}

.message-star-container:hover .star-tooltip {
    opacity: 1;
}

/* Thinking animation dots */
@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: currentColor;
    border-radius: 50%;
    margin-right: 4px;
    animation: typing 1.4s infinite ease-in-out both;
}

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

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