/* CyberMeme Generator - Custom Styles */
/* 🤖 Gerado por AWS Amazon Q CLI */

/* Custom animations */
@keyframes cyber-glow {
    0%, 100% {
        box-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 15px #00ffff;
    }
    50% {
        box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    }
}

@keyframes matrix-scroll {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes pulse-cyber {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes slide-in-right {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-left {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-in-up {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00ffff, #0099ff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00cccc, #0077cc);
}

/* Cyber effects */
.cyber-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(0, 153, 255, 0.1));
    background-clip: padding-box;
}

.cyber-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #0099ff, #00ffff);
    border-radius: inherit;
    z-index: -1;
    animation: cyber-glow 2s ease-in-out infinite;
}

/* Glitch effect */
.glitch {
    position: relative;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #ff0000;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch {
    0%, 74%, 76%, 100% {
        transform: translate(0);
    }
    75% {
        transform: translate(-2px, 2px);
    }
}

@keyframes glitch-1 {
    0%, 74%, 76%, 100% {
        transform: translate(0);
    }
    75% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {
    0%, 74%, 76%, 100% {
        transform: translate(0);
    }
    75% {
        transform: translate(-2px, -2px);
    }
}

/* Neon text effect */
.neon-text {
    color: #fff;
    text-shadow: 
        0 0 5px #00ffff,
        0 0 10px #00ffff,
        0 0 15px #00ffff,
        0 0 20px #00ffff;
    animation: neon-flicker 1.5s infinite alternate;
}

@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 15px #00ffff,
            0 0 20px #00ffff;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Matrix background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.05;
}

.matrix-char {
    position: absolute;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    animation: matrix-scroll 3s linear infinite;
}

/* Hover effects */
.cyber-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cyber-button:hover::before {
    left: 100%;
}

.cyber-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

/* Loading animations */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Responsive design enhancements */
@media (max-width: 768px) {
    .glitch {
        font-size: 1.5rem;
    }
    
    .cyber-border::before {
        animation-duration: 3s;
    }
    
    .neon-text {
        text-shadow: 
            0 0 3px #00ffff,
            0 0 6px #00ffff,
            0 0 9px #00ffff;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 1.2rem;
    }
    
    .matrix-char {
        font-size: 12px;
    }
}

/* Print styles */
@media print {
    .matrix-bg,
    .cyber-border::before {
        display: none;
    }
    
    .neon-text {
        text-shadow: none;
        color: #000;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .cyber-border {
        border: 2px solid #fff;
    }
    
    .neon-text {
        text-shadow: none;
        color: #fff;
        background: #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cyber-border::before,
    .glitch,
    .glitch::before,
    .glitch::after,
    .neon-text,
    .matrix-char,
    .loading-dots::after {
        animation: none;
    }
    
    .cyber-button {
        transition: none;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

/* Custom selection */
::selection {
    background: rgba(0, 255, 255, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(0, 255, 255, 0.3);
    color: white;
}
