/* AI Speech Generator - Custom Styles */

/* Speech card animation */
.speech-card {
    animation: cardFadeIn 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Speech text styling */
.speech-text {
    font-family: 'Georgia', serif;
    line-height: 1.9;
    font-size: 1.05rem;
    white-space: pre-wrap;
}

/* Speech metadata badges */
.speech-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Copy button pulse */
.copy-btn:active {
    transform: scale(0.92);
}

.copy-btn.copied {
    background-color: #166534;
    color: #fff;
}

/* Result section entrance */
.results-appear {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing effect for speech display */
.speech-loading {
    position: relative;
    overflow: hidden;
}

.speech-loading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2px;
    height: 1.2em;
    background: currentColor;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
