@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes spin {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1.2); }
}

@keyframes glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

* {
    scrollbar-width: thin;
    scrollbar-color: #ff00ff40 #0a0a12;
}

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

*::-webkit-scrollbar-track {
    background: #0a0a12;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff00ff40, #00ffff40);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff00ff60, #00ffff60);
}

.newspaper-preview {
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.2),
        0 0 40px rgba(0, 255, 255, 0.1),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
}

.newspaper-preview img {
    transition: all 0.3s ease;
}

.newspaper-preview img:hover {
    filter: brightness(1.1) saturate(1.2);
}

input, textarea, select {
    font-family: 'Roboto Mono', monospace;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

button {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .newspaper-preview {
        font-size: 0.85em;
    }
}

/* Loading animation for images */
.loading-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 0, 255, 0.1) 0%,
        rgba(0, 255, 255, 0.2) 50%,
        rgba(255, 0, 255, 0.1) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Neon border effect */
.neon-border {
    position: relative;
}

.neon-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff);
    border-radius: inherit;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Glass effect enhancement */
.glass {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Text selection styling */
::selection {
    background: #ff00ff60;
    color: white;
}

/* Focus states */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

/* Button hover effects */
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.3);
}

button:active {
    transform: translateY(0);
}

/* Animate on load */
.newspaper-preview {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}