/* ASCII Art Generator Advanced Styles */

.ascii-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.ascii-border {
    border: 2px solid currentColor;
    padding: 20px;
    border-radius: 8px;
}

.ascii-gradient {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ascii-mirror {
    transform: scaleX(-1);
}

/* Animation effects */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}

@keyframes wave {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rainbow {
    0% {
        color: #ff0000;
    }
    16% {
        color: #ff8000;
    }
    33% {
        color: #ffff00;
    }
    50% {
        color: #00ff00;
    }
    66% {
        color: #0080ff;
    }
    83% {
        color: #8000ff;
    }
    100% {
        color: #ff0000;
    }
}

/* Color picker active states */
.color-btn.active {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.bg-color-btn.active {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

/* Font gallery hover effects */
.font-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Scrollbar styling for ASCII output */
#asciiOutput::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#asciiOutput::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#asciiOutput::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#asciiOutput::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Performance indicators */
.performance-excellent {
    color: #22c55e;
}
.performance-good {
    color: #3b82f6;
}
.performance-fair {
    color: #eab308;
}
.performance-slow {
    color: #ef4444;
}

/* Tab content transitions */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

/* Loading states */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .ascii-output-mobile {
        font-size: 10px;
        line-height: 1.1;
    }

    .control-grid-mobile {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .font-gallery-mobile {
        grid-template-columns: 1fr;
    }
}
