/* Custom Reddit-style animations and effects */

@keyframes vote-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.vote-animation {
    animation: vote-bounce 0.3s ease-in-out;
}

/* Loading spinner for generating posts */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Smooth hover effects for posts */
.post-card {
    transition: all 0.2s ease-in-out;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

::-webkit-scrollbar-track {
    background: #1a202c;
}

::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* Orange accent glow effect */
.orange-glow {
    box-shadow: 0 0 10px rgba(251, 146, 60, 0.3);
}

/* Button press effect */
.btn-press {
    transform: scale(0.95);
    transition: transform 0.1s ease-in-out;
}

/* Fade in animation for new posts */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-post {
    animation: fadeInDown 0.5s ease-out;
}

/* Pulse effect for auto-generate indicator */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Theme selector hover effects */
.theme-button {
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
}

.theme-button:hover {
    border-color: rgba(251, 146, 60, 0.5);
    transform: translateY(-1px);
}

.theme-button.active {
    border-color: #f97316;
}